Forum Discussion
ToniLee-Ostrows
4 years agoCommunity Member
Stop / reset JavaScript in a storyline
Hello, I have a timer that I built from a Storyline provided in another post; it uses a javascript snippet to start the timer and works great however, I am trying to add a feature to stop the timer...
ChristophKri821
Community Member
I have updated a javascript countdown/timer example I have created several years ago.
You can start, pause or reset the timer.
https://360.articulate.com/review/content/45c48644-63e2-427c-bf96-ab8f1d06360c/review
You just need to adjust the SL variable: timeINmilliseconds
MathNotermans-9
4 years agoCommunity Member
Christoph Krieger this is exact the same method Sam already uses. The Date Object in your code uses the global date to parse the time elapsed. Although this works fine it only shows the scope issue thats underlying to all triggers in Storyline. The SetInterval method in this code only works because it uses the global Date Object.