org.wicketstuff.simile.timeline.timeline_js.timeline-api.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simile-timeline Show documentation
Show all versions of simile-timeline Show documentation
Simile Timeline widget for Wicket
/*==================================================
* Timeline API
*
* This file will load all the Javascript files
* necessary to make the standard timeline work.
* It also detects the default locale.
*
* To run from the MIT copy of Timeline:
* Include this file in your HTML file as follows:
*
*
*
*
* To host the Timeline files on your own server:
* 1) Install the Timeline and Simile-Ajax files onto your webserver using
* timeline_libraries.zip or timeline_source.zip
*
* 2) Set global js variables used to send parameters to this script:
* Timeline_ajax_url -- url for simile-ajax-api.js
* Timeline_urlPrefix -- url for the *directory* that contains timeline-api.js
* Include trailing slash
* Timeline_parameters='bundle=true'; // you must set bundle to true if you are using
* // timeline_libraries.zip since only the
* // bundled libraries are included
*
* eg your html page would include
*
*
*
*
* SCRIPT PARAMETERS
* This script auto-magically figures out locale and has defaults for other parameters
* To set parameters explicity, set js global variable Timeline_parameters or include as
* parameters on the url using GET style. Eg the two next lines pass the same parameters:
* Timeline_parameters='bundle=true'; // pass parameter via js variable
* ");
} catch (e) {
createScriptElement();
}
} else {
createScriptElement();
}
} else {
loadMe();
}
})();