Forum Discussion
SCORM customization to remove slide?
Hey Andrew,
Are you willing to share your json that did this? Just so I can get a gift of how something like this is done?
I don't have access to the original anymore so I started to mock-up a quick demo, but then I realized there's a way that's even easier than creating and importing a separate JavaScript/text file: the published project's user.js file.
After a project is published, navigate into its /story_content/ folder and you'll see user.js. That contains any custom JavaScript triggers your project has, and it's trivial for us to open that in regular ol' Notepad.
This means a custom trigger could fire at the first slide of your course that contains something like
// Change this to true to skip slides 2 and 12.
setVar('skipSlides', false);
The slides you want to potentially skip could each have a "Go to Next Slide when slide starts if skipSlides = True" trigger, and this trigger could be the determining factor. Once the course is published, that skipping could be initiated by just opening user.js and changing the setVar value from false to true.
I've tested something similar in SCORM Cloud just now using a course that sets the value of a number variable with such a "When the timeline starts on this slide" JavaScript trigger. The course was published with the code snippet setting the value to 0. After publish, I opened the user.js file, changed the assigned number to 12, and then saved. Then uploading and launching the course from SCORM cloud showed the value was 12. In short, user.js can act as your config file.
Let me know if I'm unclear in this at all. :)
Related Content
- 9 months ago
- 2 months ago
- 9 months ago