How to use Updater.js

Simple operation of the 8 kilobyte script(3 if stripped of all comments) is made incredibly simple. Just throw a <script> tag into every page that will have an iFrame around it, and the script will take care of the rest! This should be done at the template level.

For more precise control, you can either change the constants, or the parameters. To add a parameter, you need to add a respective data-* to the script. Please note that only one script can be active at a given time, so changing these parameters on two pages that have more scripts may have unpredictable results.

Variables and configuration

Parameters:

Variables that aren't in a function scope:

Functions:

Constants:

(Constants are found on line 74 of Updater.js)