Forum Discussion
How to add jQuery or anyother external Javascript Library to Storyline
Hi Math, appreciate the reply. There is a minijs script on that link i put up above so that seems like its on the right track.
I've tried adding the script manually using browser dev tools since I am previewing everything in Review 360. I am not getting errors any more but I am also not seeing the effect. I have it setup so that when a user clicks a button it changes a variable to true and when the variable is true, it executes the java script
var player = GetPlayer();
var cf = player.GetVar("confetti");
if (cf == "true")
{
"confetti()";
}
I put this script in after the <head> tag
<script src="https://cdnjs.cloudflare.com/ajax/libs/canvas-confetti/1.5.1/confetti.min.js" integrity="sha512-jnHyUkgsWMgEENOHYzcnwB8BIs3CR9TbY0gKvnK/b0huYMV1u2HjUnbNTKxWwwKfwSBrfISUXafurOK1lqFrCA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>