Picture of Oscar Arango
Append js asset to Header
by Oscar Arango - Thursday, 7 April 2016, 11:43 PM
 

Hi everyone,

Interesting questions here, I have an Adobe edge animation I need to add to the portal.  I was successfully able to add it using a combination of css and <iframe> but idealy I would like to make it part of the theme and in order to do that I need to some how make reference to a couple of js files in the header section.  I've searched through forums and the code but can't seem to find the place were that happens.  Any suggestions on modifying the head section are greatly appreciated.

thanks

Picture of Matt Leathes
Re: Append js asset to Header
by Matt Leathes - Friday, 8 April 2016, 8:48 AM
 

I guess you could include the file in the theme's js folder and then require it in the theme's .js file.

Alternatively you could just include it directly in the HTML. How you do this depends on whether you're using contrib-spoor or not. If you are, you need to modify index, main and index_lms.html in that extension's required folder. If you're not using spoor, just modify src/index.html