JavaScript Example with Source
Feb 02, 2016
Last year, I shared this example of how JavaScript can enhance your course. It came with the source files to download. I've made some updates to fix some html5 issues.
- Typing effect
- Setting variables based on URL (you can use this to start the course on any page you want, or change the states based on a variable in the URL string)
- Stopping a video and showing a lightbox message. In HTML5, you can remove the "x" on the lightbox and add your button to close it.
- Handling "score": setting a minimum and a maximum for a number. So, let's say you don't want negative scores but you also want to limit the max.
- Random numbers
- Advanced Variables (storing variables in a 0,0,1,0,1,0 fashion) instead of having six variables.
- String operations
3 Replies
Thanks so much for popping in to share your contribution with the community Zsolt :) Much appreciated.
Zsolt, this is a goldmine of ideas! Thank you so much for the JS examples.
Glad you find benefit in this share Adam :)
This discussion is closed. You can start a new discussion or contact Articulate Support.