JavaScript Example with Source

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. 

http://bit.ly/1IjNEKs

- 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