How do I reset a timer on a page
September 29, 2016 12:00 AM
Hello,
This feels like a silly question but how do you reset a Lectora timer object on a page?
The timer counts up when they get to the page. If they leave the page and come back, the timer picks up where it left off. I want to have an on show action on the page to reset the time... However it seems like the time functions like a media file. I can user all the media actions, like pause, play, etc. However there is nothing to set it back to 00. Do I have to treat this as a media file and do this with Javascript? I wouldn't even know what this is considered. Is it a video file? Not sure how to reset it.
Thanks.
Discussion (3)
Two actions. First, stop it. Then, play it. It will play from the beginning. Like an mp3 file.
You can use all media-type actions Play, Pause, Stop (=Reset). The timer also supports On: Done playing.
Tim
I will give that a shot. I didn't think the stop/play reset it because the timer continues where you left off when you leave the page and come back, which is unlike every other media object. Didn't even occur to me to try that.
Thanks
Discussions have been disabled for this post