1var date = new Date(); 2var jour = ["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"]; 3 4var secretariatOuvert = document.getElementById("secretariatOuvert"); 5var secretariatFermer = document.getElementById("secretariatFermer"); 6 7if(jour[date.getDay()] == "Lundi" || jour[date.getDay()] == "Mardi" || jour[date.getDay()] == "Mercredi" || jour[date.getDay()] == "Jeudi" || jour[date.getDay()] == "Vendredi"){ 8 9 if(date.getHours() >= "8" & date.getHours() < "18"){ 10 11 if(date.getHours() >= "17" & date.getMinutes() > "30"){ 12 secretariatFermer.classList.add("hexagonFermer"); 13 } 14 else { 15 secretariatOuvert.classList.add("hexagonOuvert"); 16 } 17 } 18 else{ 19 secretariatFermer.classList.add("hexagonFermer"); 20 } 21} 22else { 23 secretariatFermer.classList.add("hexagonFermer"); 24}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.