Git Product home page Git Product logo

captivate-utils's Introduction

captivate-utils

A few JavaScript snippets for Adobe Captivate HTML5 projects.

Disabling the Playbar's Slider

Captivate makes it easy enough to hide the slider, but sometimes you just want to disable it. A snippet is included to disable the playbar slider. Since users can pickup from where they dropped out, it's best to add the snippet to every slide in your project.

Marking all slides as viewed

If your movie has logic that jumps one or more slides based on some condition and the completion criteria is '100% of slides viewed', you could be asking for trouble, because users who skip slides won't be able to meet the completion criteria. So here's a one-liner for marking all slides as viewed (you could add this as an 'on-enter' action for the last slide).

Reporting all interactions to browser console

The name assigned to interactions matter if your creating an assessment and you care to view and understand your users strengths and weaknesses. Here's a simple way to generate a report of all the interactions in your project.

Preview your project in HTML5 browser, press F12 to open your browser's dev tools, switch to the console tab and paste the snippet. Note the snippet uses a console table which is only available in Chrome.

Tutorial

Disabling the Playbar's Slider

  1. Open your project in Captivate, choose Project / Advanced Actions
  2. For the Action Name, DisablePlaybarSlider
  3. To add a new action, type Ctrl-n
  4. From the dropdown, choose Execute Javascript
  5. Click the Script Window button and paste the contents of disable-playbar-slider.js
  6. Click the Select Window and choose Current
  7. To add a new action, type Ctrl-n
  8. From the dropdown, choose Continue
  9. Select every slide in your project and set the 'On Enter' action to 'Execute Advanced Actions', then choose DisablePlaybarSlider.

Mark All Slides as Viewed

After completing the initial setup as described in the prior tutorial, you can set the last slide in your project to mark all slides as viewed:

  1. Open your project in Captivate, choose Project / Advanced Actions
  2. For the Action Name, type MarkAllSlidesAsViewed
  3. To add a new action, type Ctrl-n
  4. From the dropdown, choose Execute Javascript
  5. Click the Script Window button and paste the contents of mark-all-slides-as-viewed.js
  6. Click the Select Window and choose Current
  7. To add a new action, type Ctrl-n
  8. From the dropdown, choose Continue
  9. On the last slide of your project, set the 'On Enter' action to 'Execute Advanced Actions', then choose MarkAllSlidesAsViewed.

Requirements

  • Captivate v8 or v9
  • Your project will need to be published for HTML5 playback not Flash.

captivate-utils's People

Contributors

barsh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.