Angular2, Bootstrap and jQuery in Articulate SL

Mar 04, 2020

Hi everyone!

A question: is  possible used external libraries and frameworks for customize projects in SL after publishing? For exemple: Angular2, Bootstrap, jQuery and React.

2 Replies
OWEN HOLT

You can execute some javaScript on your opening slide at timeline start to modify the DOM and add the library to the page head.  See jquery example below:

//Check if jquery has been loaded and if not, load it
if (typeof jQuery == 'undefined') {
var head = document.getElementsByTagName("head")[0];
script = document.createElement('script');
script.onload = function() {
//jQuery is available now
};
script.id = 'jQuery';
script.type = 'text/javascript';
script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js';

head.appendChild(script);
}

This discussion is closed. You can start a new discussion or contact Articulate Support.