Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

appending jQuery UI (SC 2)

$
0
0
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:
(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?

Viewing all articles
Browse latest Browse all 1844

Trending Articles