src/js/init.js
author durandn
Fri, 03 Jul 2015 16:58:49 +0200
changeset 1038 e78b889a75e1
parent 1016 e1752b696a07
child 1072 ac1eacb3aa33
permissions -rw-r--r--
CreateAnnotations new feature: hide/show functionality on signal trigger (tweaks), added config options to customize what is displayed more accurately

/* 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._;
}