Picture of Dan Jonsson
How to add script files
by Dan Jonsson - Friday, 12 August 2016, 7:04 AM
 

I need to add some jquery files and some custom code into the first menu page.

When I did this in an earlier version of adapt I added them in src/index.html and they showed up in the build/index.html file.

They don´t now!

But where can I verify that all has been loaded in this recent version of Adapt.

I´m trying to figure out what has gone wrong with my jQuery actions!

 

D

Picture of Matt Leathes
Re: How to add script files
by Matt Leathes - Friday, 12 August 2016, 10:20 AM
 

If you have the spoor extension enabled then the index.html from src/exensions/adapt-contrib-spoor/required will be added to the build instead. You'd also need to add your script tags to index_lms.html as that's the launch page when the course is run from an LMS.

It would be better to add your code within the menu's .js I would think