Picture of Bryan Butler
Index.html and grunt
by Bryan Butler - Wednesday, 14 December 2016, 2:15 PM
 

Hello, I'm semi new to the adapt framework. I'm attempting to add a function to generate a pdf with the client side JS library JSpdf. I have a function I've tested outside of adapt, I just can't get the script into the header tad of the index.html. Every time I run a grunt build, followed by grunt server. It writes its own index.html. Is there any advice to be given here? *also nice work on this framework, it's pretty nice.

Picture of Matt Leathes
Re: Index.html and grunt
by Matt Leathes - Wednesday, 14 December 2016, 3:13 PM
 

Hi Bryan

If you've got the spoor extension (handles SCORM tracking) installed, then it will replace the standard index.html with its own version - see the 'required' folder of that extension, and note that there's also index_lms.html which is what's used when the course is running on an LMS.

You'd be better off creating an extension to handle this....

Picture of Bryan Butler
Re: Index.html and grunt
by Bryan Butler - Wednesday, 14 December 2016, 4:47 PM
 

That was the answer I was looking for. Thank you very much.