Including Libraries

This shows the process of including new Javascript libraries in your template application.

Normal Libraries

Most libraries can simply be copied into the js folder and loaded in script tags just like normal web pages.

Dynamic/Latest Libraries

Some libraries need to be loaded dynamically from an external website. The most common example with ARDI systems is the converters.js file, which is unique to each ARDI server and helps convert values to both text and colour.

These libraries are speciifed in your index.js file.

At the top of the file, you'll find…

//Required libraries from ARDI server
var requiredLibraries = ['/displaylist/converters.js','/plugins/optrix/hmitt2.js'];

You can modify this list to include whatever libraries you need.