Forum Discussion
Fix for loss of jQuery and GSAP in new update
Hey all,
If you used to use jQuery and GSAP, it has been removed in the latest update. I've found a work around for anyone that wants to keep using it.
Simply add this code into your slide when timeline starts:
function dynamicallyLoadScript(url) {
var script = document.createElement("script");
script.src = url;
document.head.appendChild(script);
}
dynamicallyLoadScript("https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js");
dynamicallyLoadScript("https://cdnjs.cloudflare.com/ajax/libs/gsap/3.1.1/gsap.min.js");
To target elements on the page which you used to do with:
var obj = $('[aria-label= "obj"] svg');
You now can use:
var obj = $('[data-acc-text = "obj"] svg');
Cheers,
Andrew
15 Replies
- AhmadHabhab-ba6Community Member
Can someone please make a tutorial video on how we add the Jquery to our Projects.
Thanks in advance.
- PhilMayorSuper Hero
The instruction for how to do this are above, add them to a javascript trigger
- MathNotermans-9Community Member
As the question how to add jQuery pops up now and then i made a post explaining it, and a sample added to it...
https://community.articulate.com/discussions/articulate-storyline/how-to-add-jquery-or-anyother-external-javascript-library-to-storyline - HaneenIshaaq-e9Community Member
Thanks! I went through a couple how-tos and this was the one that worked!
Related Content
- 2 months ago