Forum Discussion
Stop / reset JavaScript in a storyline
A script can be dynamically injected and appended to the head to work across the slides and scenes. In the attached demo, the timer can be paused, continued, or reset from any slide or scene without breaking the code. It consists of a single script in the master slide and a few triggers to ensure the Play/Pause button is properly toggled, based on whether the timer is running or not.
Thank you Nedim. Could you please share your storyline file, so I can see how did you manage to reset the timer when it's finished? I used the JS code provided by Jeremy, and indeed it resets the countdown before it's finished. But once the timer reaches 00:00 I can't reset the timer... Maybe I missed something (I started using JS in storyline a week ago...)
- Nedim5 months agoCommunity Member
Attached.