30 minute timeout for SL? Nov 16, 2016 By Sam Carter Does anyone have a JavaScript I can drop in a Master slide to EXIT the course if the learner doesn't turn the page in 30 minutes?
Brian Dennis over 7 years ago11/16/16 at 9:47 pm (UTC) The following script should point you in the right direction: setTimeout(function(){ alert('Where did you go?'); }, 1000*60*30); Drop the last number "30" to "1" to try the script's effect in one minute.
Sam Carter Author over 7 years ago11/16/16 at 10:23 pm (UTC) Hi Brian, I was kinda hoping there was a Player call to exit the course from JavaScript. Not me asking for it, it's the customer. Seems like a reasonable idea however. Sam
Brian Dennis over 7 years ago11/18/16 at 7:13 pm (UTC) The Player API especially isn't officially unsupported nor documented. I'd suggest working the pure javascript solution. Good luck
Sam Carter Author over 7 years ago11/18/16 at 7:18 pm (UTC) Right... yet, doing a window.close() will involve a browser prompt for learner approval. If the learner has gone for the day it isn't much help.
4 Replies
The following script should point you in the right direction:
setTimeout(function(){ alert('Where did you go?'); }, 1000*60*30);
Drop the last number "30" to "1" to try the script's effect in one minute.
Hi Brian,
I was kinda hoping there was a Player call to exit the course from JavaScript. Not me asking for it, it's the customer. Seems like a reasonable idea however.
Sam
The Player API especially isn't officially unsupported nor documented. I'd suggest working the pure javascript solution. Good luck
Right... yet, doing a window.close() will involve a browser prompt for learner approval. If the learner has gone for the day it isn't much help.
This discussion is closed. You can start a new discussion or contact Articulate Support.