Forum Discussion
LanceSwigert
12 years agoCommunity Member
Timing how long an interaction takes.
So my courses have to be timed for credit. I have an interaction which include several slides and pathways. I want to be able to make sure that the participants spend a certain amount of time going ...
Bernovan-Soest
12 years agoCommunity Member
Steve,
The global functions idea is great.
I've placed my Javascript in a seperate .js file.
It allows you to experiment / test the JS code after publishing. Just alter the code and refresh your browser.
Saves a lot of time compared to publishing after every code change.
And you could edit the code in a JS savvy editor.
You have to alter your story.html file and perform some post-publish copy actions
in the story.html find the place where other JS code is included:
and add your own:
After each publish copy the altered story.html over the newly published one and copy your .js file to the story_content folder.
Have a nice weekend!