Forum Discussion
MathNotermans-9
4 years agoCommunity Member
Including Javascript for repeating functionality
Up untill recently i always used Webobjects to add jQuery and GSAP because i use that for most of my work. Now Articulate included the latest version of GSAP in Storyline i notice i work without the...
PeteBrown-651d6
3 years agoCommunity Member
Just to followup, because my change to scormdriver.js was relatively small (about 20 lines) and because in my corporate environment I don't have easy access to change the Articulate 'master' files in down in Program Files, I decided to write a WORD macro (again, corporate environment means that macros are an easy way to get programming under the IT gatekeepers' radar ;-)) that:
- opens the PUBLISHED scormdriver.js file, i.e., the one in a project's published Storyline Output folder
- checks to make sure scormdriver.js looks as I expect (e.g., version number, number of lines...)
- injects my custom javascript at the appropriate spot
- zips the structure into a SCORM package.
An advantage of this approach is that even if an Articulate update overwrites the 'master' files, as long as they haven't changed too much (and hopefully scormdriver.js won't), then my process continues to work without having to remember to update the master.
Thanks again, Maths, for providing the inspiration.