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

[SugarCube 2.9.0] Including External JavaScript Libraries

$
0
0
Hello,
Is there a way to load external JavaScript libraries that will be used throughout the story in SugarCube 2? As a specific example, I'd like to make use of the Moment.js library (http://momentjs.com/), though I'm interested in the process of adding libraries in general.

I have tried throwing the contents of their non-minified JS file into a [script] passage, but this yields nonspecific startup errors that change depending on how the story is compiled (TweeGo or Twee2, I know the latter is unsupported.) and which browser runs the resulting HTML (Chromium or Firefox). So I'm assuming that this not the correct way to do it.

Thank you for your time.

Viewing all articles
Browse latest Browse all 1844

Trending Articles