Skip to main content
Known Participant
October 2, 2013
Question

Remove in-line JavaScript from Index.HTML output to seperate file

  • October 2, 2013
  • 2 replies
  • 5792 views

Currently I manually strip all the JavaScript from Index.HTML files and reference one unobtrusive JavaScript file with these scripts contained in it, among others that we have as the JavaScript callbacks from our LMS.

I'm wondering if there's some way to change the master template that generates the correct index.html file in this way for us rather than having to change the output Index.html file of every presentation after the fact.

This topic has been closed for replies.

2 replies

Participating Frequently
October 2, 2019

How do you manually strip out the js from the HTML file?  I'm being told that I need to strip out the inline js and script tags in the body.

Legend
October 2, 2013

Yes, you can modify the HTML5 template located here:

  • C:\Program Files\Adobe\Adobe Captivate 7 x64\HTML

If you're using SCORM with your LMS, you can modify the template here:

C:\Program Files\Adobe\Adobe Captivate 7 x64\Templates\Publish\LMS\Standard\SCORM\Default

** Note there are different folders/templates for SCORM 1.2 and 2004

To automatically include the .js file(s), you can drop them into this directory and Cp will include them in your published output as long as you're publishing HTML5 output:

C:\Program Files\Adobe\Adobe Captivate 7 x64\HTML\assets\js

davidevanAuthor
Known Participant
October 2, 2013

Thanks!