Hey everybody!
I am currently using jQueryUI by simply putting it entirely into Story JavaScript. In order to keep it more tidy, I tried to append jQueryUI from a CDN using TME´s suggestion in this post.
Here is what I used:
These are the first lines of code in the StoryJavascript, everything else goes below. I get a fatal error (unexpected token). What am I doing wrong?
I am currently using jQueryUI by simply putting it entirely into Story JavaScript. In order to keep it more tidy, I tried to append jQueryUI from a CDN using TME´s suggestion in this post.
Here is what I used:
(function ($) { $(document.head) .append('<script type="text/javascript" src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>'); })(jQuery);
These are the first lines of code in the StoryJavascript, everything else goes below. I get a fatal error (unexpected token). What am I doing wrong?