src/js/init.js
author durandn
Tue, 01 Sep 2015 15:10:17 +0200
changeset 1044 d8339b45edc4
parent 1016 e1752b696a07
child 1072 ac1eacb3aa33
permissions -rw-r--r--
Added support for defining a "time range" for a Playable to set the time boundaries of what can be played by the diffenrent players (Popcorn and HtmlPlayer for now). Added option in Segment widget to define a timerange on click.

/* Initialization of the namespace */

if (typeof window.IriSP === "undefined") {
    window.IriSP = {
        VERSION: "0.3.2"
    };
}

if (typeof IriSP.jQuery === "undefined" && typeof window.jQuery !== "undefined") {
    var jvp = window.jQuery().jquery.split("."),
        jv = 100 * parseInt(jvp[0]) + parseInt(jvp[1]);
    if (jv > 170) {
        IriSP.jQuery = window.jQuery;
    }
}

if (typeof IriSP._ === "undefined" && typeof window._ !== "undefined" && parseFloat(window._.VERSION) >= 1.4) {
    IriSP._ = window._;
}