Forum Discussion
JimLeichliter
14 years agoCommunity Member
Best place to put JavaScript functions for publishing
I'm new to Articulate and Storyline. I have a few custom JavaScript functions that I use and would like to put them into one of the Storyline publishing templates so they're available every time I ...
JimLeichliter
14 years agoCommunity Member
Thanks Phil! That does help. I was hoping for a way to add or alter a .js file publishing template so that I wouldn't have to make the change after every publish. I'd like to automatically include these JS functions no matter what project I'm working on. The below method requires you to alter the published output every time you publish:
If you'd like to include all your JavaScript functions in a separate JavaScript (.js) file, place your custom JavaScript file in the story_content folder of your published output, and add the following line of code to the story.html file (line 113).