MediaWiki: Common.js : Différence entre versions

De ECU
Aller à : navigation, rechercher
 
(89 révisions intermédiaires par le même utilisateur non affichées)
Ligne 9 : Ligne 9 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr');
 
   var myElement = document.getElementById('popupr');
   myElement.innerHTML = '<button id="button1" onclick = document.getElementById("popup1").style.top="200px"> 1</button>';
+
   myElement.innerHTML = '<button id="button1" onclick = document.getElementById("popup1").style.top="200px"></button>';
 
   
 
   
 
});
 
});
Ligne 22 : Ligne 22 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr2');
 
   var myElement = document.getElementById('popupr2');
   myElement.innerHTML = '<button id="button2" onclick = document.getElementById("popup2").style.top="178px"> 2</button>';
+
   myElement.innerHTML = '<button id="button2" onclick = document.getElementById("popup2").style.top="178px"></button>';
 
   
 
   
 
});
 
});
Ligne 34 : Ligne 34 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr3');
 
   var myElement = document.getElementById('popupr3');
   myElement.innerHTML = '<button id="button3" onclick = document.getElementById("popup3").style.top="130px"> 3</button>';
+
   myElement.innerHTML = '<button id="button3" onclick = document.getElementById("popup3").style.top="110px"></button>';
 
   
 
   
 
});
 
});
Ligne 47 : Ligne 47 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr4');
 
   var myElement = document.getElementById('popupr4');
   myElement.innerHTML = '<button id="button4" onclick = document.getElementById("popup4").style.top="200px"> 4</button>';
+
   myElement.innerHTML = '<button id="button4" onclick = document.getElementById("popup4").style.top="200px"></button>';
 
   
 
   
 
});
 
});
Ligne 59 : Ligne 59 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr5');
 
   var myElement = document.getElementById('popupr5');
   myElement.innerHTML = '<button id="button5" onclick = document.getElementById("popup5").style.top="340px"> 5</button>';
+
   myElement.innerHTML = '<button id="button5" onclick = document.getElementById("popup5").style.top="325px"></button>';
 
   
 
   
 
});
 
});
Ligne 65 : Ligne 65 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('btnClose5');
 
   var myElement = document.getElementById('btnClose5');
   myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup5").style.top="-300px">&times; </button>';
+
   myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup5").style.top="-1000px">&times; </button>';
 
   
 
   
 
});
 
});
Ligne 71 : Ligne 71 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr6');
 
   var myElement = document.getElementById('popupr6');
   myElement.innerHTML = '<button id="button6" onclick = document.getElementById("popup6").style.top="380px"> 6</button>';
+
   myElement.innerHTML = '<button id="button6" onclick = document.getElementById("popup6").style.top="355px"></button>';
 
   
 
   
 
});
 
});
Ligne 83 : Ligne 83 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr61');
 
   var myElement = document.getElementById('popupr61');
   myElement.innerHTML = '<button id="button61" onclick = document.getElementById("popup61").style.top="265px"> 61</button>';
+
   myElement.innerHTML = '<button id="button61" onclick = document.getElementById("popup61").style.top="210px"></button>';
 
   
 
   
 
});
 
});
Ligne 95 : Ligne 95 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr7');
 
   var myElement = document.getElementById('popupr7');
   myElement.innerHTML = '<button id="button7" onclick = document.getElementById("popup7").style.top="200px"> 7</button>';
+
   myElement.innerHTML = '<button id="button7" onclick = document.getElementById("popup7").style.top="200px"></button>';
 
   
 
   
 
});
 
});
Ligne 107 : Ligne 107 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr71');
 
   var myElement = document.getElementById('popupr71');
   myElement.innerHTML = '<button id="button71" onclick = document.getElementById("popup71").style.top="200px"> 71</button>';
+
   myElement.innerHTML = '<button id="button71" onclick = document.getElementById("popup71").style.top="200px"></button>';
 
   
 
   
 
});
 
});
Ligne 119 : Ligne 119 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr8');
 
   var myElement = document.getElementById('popupr8');
   myElement.innerHTML = '<button id="button8" onclick = document.getElementById("popup8").style.top="250px"> 8</button>';
+
   myElement.innerHTML = '<button id="button8" onclick = document.getElementById("popup8").style.top="250px"></button>';
 
   
 
   
 
});
 
});
Ligne 131 : Ligne 131 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr9');
 
   var myElement = document.getElementById('popupr9');
   myElement.innerHTML = '<button id="button9" onclick = document.getElementById("popup9").style.top="330px"> 9</button>';
+
   myElement.innerHTML = '<button id="button9" onclick = document.getElementById("popup9").style.top="330px"></button>';
 
   
 
   
 
});
 
});
Ligne 144 : Ligne 144 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr10');
 
   var myElement = document.getElementById('popupr10');
   myElement.innerHTML = '<button id="button10" onclick = document.getElementById("popup10").style.top="300px"> X</button>';
+
   myElement.innerHTML = '<button id="button10" onclick = document.getElementById("popup10").style.top="300px"></button>';
 
   
 
   
 
});
 
});
Ligne 156 : Ligne 156 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr11');
 
   var myElement = document.getElementById('popupr11');
   myElement.innerHTML = '<button id="button11" onclick = document.getElementById("popup11").style.top="150px"> 11</button>';
+
   myElement.innerHTML = '<button id="button11" onclick = document.getElementById("popup11").style.top="150px"></button>';
 
   
 
   
 
});
 
});
Ligne 168 : Ligne 168 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr12');
 
   var myElement = document.getElementById('popupr12');
   myElement.innerHTML = '<button id="button12" onclick = document.getElementById("popup12").style.top="180px"> 12</button>';
+
   myElement.innerHTML = '<button id="button12" onclick = document.getElementById("popup12").style.top="172px"></button>';
 
   
 
   
 
});
 
});
Ligne 180 : Ligne 180 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr13');
 
   var myElement = document.getElementById('popupr13');
   myElement.innerHTML = '<button id="button13" onclick = document.getElementById("popup13").style.top="270px"> 13</button>';
+
   myElement.innerHTML = '<button id="button13" onclick = document.getElementById("popup13").style.top="240px"></button>';
 
   
 
   
 
});
 
});
Ligne 192 : Ligne 192 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr14');
 
   var myElement = document.getElementById('popupr14');
   myElement.innerHTML = '<button id="button14" onclick = document.getElementById("popup14").style.top="150px"> 14</button>';
+
   myElement.innerHTML = '<button id="button14" onclick = document.getElementById("popup14").style.top="150px"></button>';
 
   
 
   
 
});
 
});
Ligne 204 : Ligne 204 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr15');
 
   var myElement = document.getElementById('popupr15');
   myElement.innerHTML = '<button id="button15" onclick = document.getElementById("popup15").style.top="300px"> 15</button>';
+
   myElement.innerHTML = '<button id="button15" onclick = document.getElementById("popup15").style.top="300px"></button>';
 
   
 
   
 
});
 
});
Ligne 216 : Ligne 216 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr16');
 
   var myElement = document.getElementById('popupr16');
   myElement.innerHTML = '<button id="button16" onclick = document.getElementById("popup16").style.top="305px"> 16</button>';
+
   myElement.innerHTML = '<button id="button16" onclick = document.getElementById("popup16").style.top="305px"></button>';
 
   
 
   
 
});
 
});
Ligne 228 : Ligne 228 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr161');
 
   var myElement = document.getElementById('popupr161');
   myElement.innerHTML = '<button id="button161" onclick = document.getElementById("popup161").style.top="205px"> 161</button>';
+
   myElement.innerHTML = '<button id="button161" onclick = document.getElementById("popup161").style.top="205px"> </button>';
 
   
 
   
 
});
 
});
Ligne 240 : Ligne 240 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr17');
 
   var myElement = document.getElementById('popupr17');
   myElement.innerHTML = '<button id="button17" onclick = document.getElementById("popup17").style.top="180px"> 17</button>';
+
   myElement.innerHTML = '<button id="button17" onclick = document.getElementById("popup17").style.top="155px"></button>';
 
   
 
   
 
});
 
});
Ligne 252 : Ligne 252 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr18');
 
   var myElement = document.getElementById('popupr18');
   myElement.innerHTML = '<button id="button18" onclick = document.getElementById("popup18").style.top="200px"> 18</button>';
+
   myElement.innerHTML = '<button id="button18" onclick = document.getElementById("popup18").style.top="200px"></button>';
 
   
 
   
 
});
 
});
Ligne 264 : Ligne 264 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr19');
 
   var myElement = document.getElementById('popupr19');
   myElement.innerHTML = '<button id="button19" onclick = document.getElementById("popup19").style.top="340px"> 19</button>';
+
   myElement.innerHTML = '<button id="button19" onclick = document.getElementById("popup19").style.top="340px"></button>';
 
   
 
   
 
});
 
});
Ligne 276 : Ligne 276 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr20');
 
   var myElement = document.getElementById('popupr20');
   myElement.innerHTML = '<button id="button20" onclick = document.getElementById("popup20").style.top="330px"> 20</button>';
+
   myElement.innerHTML = '<button id="button20" onclick = document.getElementById("popup20").style.top="330px"></button>';
 
   
 
   
 
});
 
});
Ligne 288 : Ligne 288 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr21');
 
   var myElement = document.getElementById('popupr21');
   myElement.innerHTML = '<button id="button21" onclick = document.getElementById("popup21").style.top="305px"> 21</button>';
+
   myElement.innerHTML = '<button id="button21" onclick = document.getElementById("popup21").style.top="305px"></button>';
 
   
 
   
 
});
 
});
Ligne 301 : Ligne 301 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr22');
 
   var myElement = document.getElementById('popupr22');
   myElement.innerHTML = '<button id="button22" onclick = document.getElementById("popup22").style.top="200px"> 22</button>';
+
   myElement.innerHTML = '<button id="button22" onclick = document.getElementById("popup22").style.top="195px"></button>';
 
   
 
   
 
});
 
});
Ligne 314 : Ligne 314 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr23');
 
   var myElement = document.getElementById('popupr23');
   myElement.innerHTML = '<button id="button23" onclick = document.getElementById("popup23").style.top="200px"> INFORMATION</button>';
+
   myElement.innerHTML = '<button id="button23" onclick = document.getElementById("popup23").style.top="680px">1<br> INFORMATION</button>';
 
   
 
   
 
});
 
});
Ligne 326 : Ligne 326 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr24');
 
   var myElement = document.getElementById('popupr24');
   myElement.innerHTML = '<button id="button24" onclick = document.getElementById("popup24").style.top="50px"> CONSULTATION</button>';
+
   myElement.innerHTML = '<button id="button24" onclick = document.getElementById("popup24").style.top="556px"> 2<br>CONSULTATION</button>';
 
   
 
   
 
});
 
});
Ligne 338 : Ligne 338 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr25');
 
   var myElement = document.getElementById('popupr25');
   myElement.innerHTML = '<button id="button25" onclick = document.getElementById("popup25").style.top="100px"> CONCERTATION</button>';
+
   myElement.innerHTML = '<button id="button25" onclick = document.getElementById("popup25").style.top="810px"> 3<br>CONCERTATION</button>';
 
   
 
   
 
});
 
});
Ligne 350 : Ligne 350 :
 
$(function () {
 
$(function () {
 
   var myElement = document.getElementById('popupr26');
 
   var myElement = document.getElementById('popupr26');
   myElement.innerHTML = '<button id="button26" onclick = document.getElementById("popup26").style.top="150px"> CO-PRODUCTION</button>';
+
   myElement.innerHTML = '<button id="button26" onclick = document.getElementById("popup26").style.top="700px"> 4<br>CO-PRODUCTION</button>';
 
   
 
   
 
});
 
});
Ligne 360 : Ligne 360 :
 
});
 
});
  
 +
$(function () {
 +
  var myElement = document.getElementById('popupr27');
 +
  myElement.innerHTML = '<button id="button27" onclick = document.getElementById("popup27").style.top="590px"> Évaluation précise du besoin</button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('btnClose27');
 +
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup27").style.top="-1000px">&times; </button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('popupr28');
 +
  myElement.innerHTML = '<button id="button28" onclick = document.getElementById("popup28").style.top="590px"> Objet du marché</button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('btnClose28');
 +
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup28").style.top="-1000px">&times; </button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('popupr29');
 +
  myElement.innerHTML = '<button id="button29" onclick=document.getElementById("popup29").style.top="590px"> Sourçage</button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('btnClose29');
 +
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup29").style.top="-1000px">&times; </button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('popupr30');
 +
  myElement.innerHTML = '<button id="button30" onclick = document.getElementById("popup30").style.top="590px">Choix du mieux-disant</button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('btnClose30');
 +
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup30").style.top="-1000px">&times; </button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('popupr31');
 +
  myElement.innerHTML = '<button id="button31" onclick = document.getElementById("popup31").style.top="590px"> Spécifications techniques</button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('btnClose31');
 +
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup31").style.top="-1000px">&times; </button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('popupr32');
 +
  myElement.innerHTML = '<button id="button32" onclick = document.getElementById("popup32").style.top="590px"> Clauses de performance</button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('btnClose32');
 +
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup32").style.top="-1000px">&times; </button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('popupr33');
 +
  myElement.innerHTML = '<button id="button33" onclick = document.getElementById("popup33").style.top="590px"> Allotissement</button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('btnClose33');
 +
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup33").style.top="-1000px">&times; </button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('popupr34');
 +
  myElement.innerHTML = '<button id="button34" onclick = document.getElementById("popup34").style.top="590px"> Partenariats innovation</button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('btnClose34');
 +
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup34").style.top="-1000px">&times; </button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('popupr35');
 +
  myElement.innerHTML = '<button id="button35" onclick = document.getElementById("popup35").style.top="420px"> EAU</button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('btnClose35');
 +
  myElement.innerHTML = '<button id="btnClose1" onclick=document.getElementById("popup35").style.top="-1000px">&times; </button>';
 +
 +
});
 +
 +
$(function () {
 +
  var myElement = document.getElementById('popupr36');
 +
  myElement.innerHTML = '<button id="button36" onclick = document.getElementById("popup36").style.top="605px"> SOLS</button>';
 +
 +
});
  
function ddm() {
+
$(function () {
 +
  var myElement = document.getElementById('btnClose36');
 +
  myElement.innerHTML = '<button id="btnClose1" onclick=document.getElementById("popup36").style.top="-1000px">&times; </button>';
 +
 +
});
  
    // Variables, change these in case you need to set other class names (mmhide_ for
+
$(function () {
    // contribute users for example)
+
  var myElement = document.getElementById('popupr37');
    var parentClass = 'isParent'; //gets applied when the LI has a nested UL
+
  myElement.innerHTML = '<button id="button37" onclick = document.getElementById("popup37").style.top="420px"> EXPOSITION</button>';
    var activeParentClass = 'isActive'; //gets applied when the nested UL is visible
+
    var preventHoverClass = 'nohover'; //denotes a navigation that should not get any hover effects
+
});
    var indicateJSClass = 'dhtml'; //gets applied to the main navigation when Javascript is available
 
    var toHideClass = 'hiddenChild'; //gets applied to hide the nested UL
 
    var toShowClass = 'shownChild'; //gets applied to show the nested UL
 
    var currentClass = 'current'; //denotes the current active sub element and prevents collapsing
 
    var d = document.getElementById('nav'); //denotes the navigation element
 
  
    // if DOM is not available stop right here.
+
$(function () {
    if (!document.getElementById && !document.createTextNode) {
+
  var myElement = document.getElementById('btnClose37');
        return;
+
  myElement.innerHTML = '<button id="btnClose1" onclick=document.getElementById("popup37").style.top="-1000px">&times; </button>';
    }
+
 +
});
  
    // if the navigation element is available, apply the class denoting DHTML capabilities
+
$(function () {
    if (d) {
+
  var myElement = document.getElementById('popupr38');
        d.className += d.className == '' ? indicateJSClass : ' ' + indicateJSClass;
+
  myElement.innerHTML = '<button id="button38" onclick = document.getElementById("popup38").style.top="647px"> HISTOIRE</button>';
        var lis, i, firstUL, j, apply;
+
 +
});
  
        // loop through all LIs and check which ones have a nested UL
+
$(function () {
        lis = d.getElementsByTagName('li');
+
  var myElement = document.getElementById('btnClose38');
        for (i = 0; i < lis.length; i++) {
+
  myElement.innerHTML = '<button id="btnClose1" onclick=document.getElementById("popup38").style.top="-1000px">&times; </button>';
            firstUL = lis[i].getElementsByTagName('ul')[0];
+
                // if there is a nested UL, deactivate the first nested link and apply the class to show
+
});
                // there is a nested list
 
            if (firstUL) {
 
                lis[i].childNodes[0].onclick = function() {
 
                    return false;
 
                };
 
                lis[i].className += lis[i].className == '' ? parentClass : ' ' + parentClass;
 
                // check if there is a "current" element
 
                apply = true;
 
                if (new RegExp('\\b' + currentClass + '\\b').test(lis[i].className)) {
 
                    apply = false;
 
                }
 
                if (apply) {
 
                    for (j = 0; j < firstUL.getElementsByTagName('li').length; j++) {
 
                        if (new RegExp('\\b' + currentClass + '\\b').test(firstUL.getElementsByTagName('li')[j].className)) {
 
                            apply = false;
 
                            break;
 
                        }
 
                    }
 
                }
 
                // if there is no current element, apply the class to hide the nested list
 
                if (apply) {
 
                    firstUL.className += firstUL.className == '' ? toHideClass : ' ' + toHideClass;
 
                    // check if there is a class to prevent hover effects and only apply the function
 
                    // onclick if that is the case, otherwise apply it onclick and onhover
 
                    if (new RegExp('\\b' + preventHoverClass + '\\b').test(d.className)) {
 
                        lis[i].onclick = function() {
 
                            doddm(this);
 
                        };
 
                    } else {
 
                        lis[i].onclick = function() {
 
                            doddm(this);
 
                        };
 
                        lis[i].onmouseover = function() {
 
                            doddm(this);
 
                        };
 
                        lis[i].onmouseout = function() {
 
                            doddm(null);
 
                        };
 
                    }
 
                    // if there is a current element, define the list as being kept open and apply the
 
                    // classes to show the nested list and define the parent LI as an active one
 
                } else {
 
                    lis[i].keepopen = 1;
 
                    firstUL.className += firstUL.className == '' ? toShowClass : ' ' + toShowClass;
 
                    lis[i].className = lis[i].className.replace(parentClass, activeParentClass);
 
                }
 
            }
 
        }
 
    }
 
    // function to show and hide the nested lists and add the classes to the parent LIs
 
    function doddm(o) {
 
        var childUL, isobj, swap;
 
  
        // loop through all LIs of the navigation     
+
$(function () {
        lis = d.getElementsByTagName('li');
+
  var myElement = document.getElementById('popupr39');
        for (i = 0; i < lis.length; i++) {
+
  myElement.innerHTML = '<button id="button39" onclick = document.getElementById("popup39").style.top="420px"> DIVERS</button>';
            isobj = lis[i] == o;
+
            // function to exchange class names in an object
+
});
            swap = function(tmpobj, tmporg, tmprep) {
 
                tmpobj.className = tmpobj.className.replace(tmporg, tmprep);
 
            };
 
            // if the current LI does not have an indicator to be kept visible
 
            if (!lis[i].keepopen) {
 
                childUL = lis[i].getElementsByTagName('ul')[0];
 
                // check if there is a nested UL and if the current LI is not the one clicked on
 
                // and exchange the classes accordingly (ie. hide all other nested lists and
 
                // make the LIs parent rather than active.
 
                if (childUL) {
 
                    if (new RegExp('\\b' + preventHoverClass + '\\b').test(d.className)) {
 
                        if (new RegExp('\\b' + activeParentClass + '\\b').test(lis[i].className)) {
 
                            swap(childUL, isobj ? toShowClass : toHideClass, isobj ? toHideClass : toShowClass);
 
                            swap(lis[i], isobj ? activeParentClass : parentClass, isobj ? parentClass : activeParentClass);
 
                        } else {
 
  
                            swap(childUL, isobj ? toHideClass : toShowClass, isobj ? toShowClass : toHideClass);
+
$(function () {
                            swap(lis[i], isobj ? parentClass : activeParentClass, isobj ? activeParentClass : parentClass);
+
  var myElement = document.getElementById('btnClose39');
                        }
+
  myElement.innerHTML = '<button id="btnClose1" onclick=document.getElementById("popup39").style.top="-1000px">&times; </button>';
                    } else {
+
                        swap(childUL, isobj ? toHideClass : toShowClass, isobj ? toShowClass : toHideClass);
+
});
                        swap(lis[i], isobj ? parentClass : activeParentClass, isobj ? activeParentClass : parentClass);
 
                    }
 
                }
 
            }
 
        }
 
    }
 
}
 
window.onload = function() {
 
    ddm();
 
    // add other functions to be called onload below
 
};
 

Version actuelle datée du 27 juin 2019 à 08:41

/* Tout JavaScript ici sera chargé avec chaque page accédée par n’importe quel utilisateur. */

$(function () {
  var myElement = document.getElementById('print');
  myElement.innerHTML = '<button id="buttonprint" onclick = window.print()>Imprimer</button>';

});

$(function () {
  var myElement = document.getElementById('popupr');
  myElement.innerHTML = '<button id="button1" onclick = document.getElementById("popup1").style.top="200px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup1").style.top="-1000px">&times; </button>';
 
});


$(function () {
  var myElement = document.getElementById('popupr2');
  myElement.innerHTML = '<button id="button2" onclick = document.getElementById("popup2").style.top="178px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose2');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup2").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr3');
  myElement.innerHTML = '<button id="button3" onclick = document.getElementById("popup3").style.top="110px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose3');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup3").style.top="-1000px">&times; </button>';
 
});


$(function () {
  var myElement = document.getElementById('popupr4');
  myElement.innerHTML = '<button id="button4" onclick = document.getElementById("popup4").style.top="200px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose4');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup4").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr5');
  myElement.innerHTML = '<button id="button5" onclick = document.getElementById("popup5").style.top="325px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose5');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup5").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr6');
  myElement.innerHTML = '<button id="button6" onclick = document.getElementById("popup6").style.top="355px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose6');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup6").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr61');
  myElement.innerHTML = '<button id="button61" onclick = document.getElementById("popup61").style.top="210px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose61');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup61").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr7');
  myElement.innerHTML = '<button id="button7" onclick = document.getElementById("popup7").style.top="200px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose7');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup7").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr71');
  myElement.innerHTML = '<button id="button71" onclick = document.getElementById("popup71").style.top="200px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose71');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup71").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr8');
  myElement.innerHTML = '<button id="button8" onclick = document.getElementById("popup8").style.top="250px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose8');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup8").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr9');
  myElement.innerHTML = '<button id="button9" onclick = document.getElementById("popup9").style.top="330px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose9');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup9").style.top="-1000px">&times; </button>';
 
});


$(function () {
  var myElement = document.getElementById('popupr10');
  myElement.innerHTML = '<button id="button10" onclick = document.getElementById("popup10").style.top="300px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose10');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup10").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr11');
  myElement.innerHTML = '<button id="button11" onclick = document.getElementById("popup11").style.top="150px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose11');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup11").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr12');
  myElement.innerHTML = '<button id="button12" onclick = document.getElementById("popup12").style.top="172px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose12');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup12").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr13');
  myElement.innerHTML = '<button id="button13" onclick = document.getElementById("popup13").style.top="240px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose13');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup13").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr14');
  myElement.innerHTML = '<button id="button14" onclick = document.getElementById("popup14").style.top="150px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose14');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup14").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr15');
  myElement.innerHTML = '<button id="button15" onclick = document.getElementById("popup15").style.top="300px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose15');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup15").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr16');
  myElement.innerHTML = '<button id="button16" onclick = document.getElementById("popup16").style.top="305px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose16');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup16").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr161');
  myElement.innerHTML = '<button id="button161" onclick = document.getElementById("popup161").style.top="205px"> </button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose161');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup161").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr17');
  myElement.innerHTML = '<button id="button17" onclick = document.getElementById("popup17").style.top="155px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose17');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup17").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr18');
  myElement.innerHTML = '<button id="button18" onclick = document.getElementById("popup18").style.top="200px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose18');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup18").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr19');
  myElement.innerHTML = '<button id="button19" onclick = document.getElementById("popup19").style.top="340px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose19');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup19").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr20');
  myElement.innerHTML = '<button id="button20" onclick = document.getElementById("popup20").style.top="330px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose20');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup20").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr21');
  myElement.innerHTML = '<button id="button21" onclick = document.getElementById("popup21").style.top="305px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose21');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup21").style.top="-1000px">&times; </button>';
 
});


$(function () {
  var myElement = document.getElementById('popupr22');
  myElement.innerHTML = '<button id="button22" onclick = document.getElementById("popup22").style.top="195px"></button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose22');
  myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup22").style.top="-1000px">&times; </button>';
 
});


$(function () {
  var myElement = document.getElementById('popupr23');
  myElement.innerHTML = '<button id="button23" onclick = document.getElementById("popup23").style.top="680px">1<br> INFORMATION</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose23');
  myElement.innerHTML = '<button id="btnClose1" onclick=document.getElementById("popup23").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr24');
  myElement.innerHTML = '<button id="button24" onclick = document.getElementById("popup24").style.top="556px"> 2<br>CONSULTATION</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose24');
  myElement.innerHTML = '<button id="btnClose1" onclick=document.getElementById("popup24").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr25');
  myElement.innerHTML = '<button id="button25" onclick = document.getElementById("popup25").style.top="810px"> 3<br>CONCERTATION</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose25');
  myElement.innerHTML = '<button id="btnClose1" onclick=document.getElementById("popup25").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr26');
  myElement.innerHTML = '<button id="button26" onclick = document.getElementById("popup26").style.top="700px"> 4<br>CO-PRODUCTION</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose26');
  myElement.innerHTML = '<button id="btnClose1" onclick=document.getElementById("popup26").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr27');
  myElement.innerHTML = '<button id="button27" onclick = document.getElementById("popup27").style.top="590px"> Évaluation précise du besoin</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose27');
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup27").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr28');
  myElement.innerHTML = '<button id="button28" onclick = document.getElementById("popup28").style.top="590px"> Objet du marché</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose28');
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup28").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr29');
  myElement.innerHTML = '<button id="button29" onclick=document.getElementById("popup29").style.top="590px"> Sourçage</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose29');
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup29").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr30');
  myElement.innerHTML = '<button id="button30" onclick = document.getElementById("popup30").style.top="590px">Choix du mieux-disant</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose30');
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup30").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr31');
  myElement.innerHTML = '<button id="button31" onclick = document.getElementById("popup31").style.top="590px"> Spécifications techniques</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose31');
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup31").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr32');
  myElement.innerHTML = '<button id="button32" onclick = document.getElementById("popup32").style.top="590px"> Clauses de performance</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose32');
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup32").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr33');
  myElement.innerHTML = '<button id="button33" onclick = document.getElementById("popup33").style.top="590px"> Allotissement</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose33');
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup33").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr34');
  myElement.innerHTML = '<button id="button34" onclick = document.getElementById("popup34").style.top="590px"> Partenariats innovation</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose34');
  myElement.innerHTML = '<button id="btnClose2" onclick=document.getElementById("popup34").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr35');
  myElement.innerHTML = '<button id="button35" onclick = document.getElementById("popup35").style.top="420px"> EAU</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose35');
  myElement.innerHTML = '<button id="btnClose1" onclick=document.getElementById("popup35").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr36');
  myElement.innerHTML = '<button id="button36" onclick = document.getElementById("popup36").style.top="605px"> SOLS</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose36');
  myElement.innerHTML = '<button id="btnClose1" onclick=document.getElementById("popup36").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr37');
  myElement.innerHTML = '<button id="button37" onclick = document.getElementById("popup37").style.top="420px"> EXPOSITION</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose37');
  myElement.innerHTML = '<button id="btnClose1" onclick=document.getElementById("popup37").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr38');
  myElement.innerHTML = '<button id="button38" onclick = document.getElementById("popup38").style.top="647px"> HISTOIRE</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose38');
  myElement.innerHTML = '<button id="btnClose1" onclick=document.getElementById("popup38").style.top="-1000px">&times; </button>';
 
});

$(function () {
  var myElement = document.getElementById('popupr39');
  myElement.innerHTML = '<button id="button39" onclick = document.getElementById("popup39").style.top="420px"> DIVERS</button>';
 
});

$(function () {
  var myElement = document.getElementById('btnClose39');
  myElement.innerHTML = '<button id="btnClose1" onclick=document.getElementById("popup39").style.top="-1000px">&times; </button>';
 
});