|
|
@ -525,14 +525,11 @@ var cpt = 101;
|
|
|
|
var x;
|
|
|
|
var x;
|
|
|
|
var itv = 0;
|
|
|
|
var itv = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function decompte() {
|
|
|
|
function decompte() {
|
|
|
|
|
|
|
|
|
|
|
|
var progressnum = document.getElementById("progressnum");
|
|
|
|
var progressnum = document.getElementById("progressnum");
|
|
|
|
var indicateur = document.getElementById("indicateur");
|
|
|
|
var indicateur = document.getElementById("indicateur");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (cpt >= 0) {
|
|
|
|
if (cpt >= 0) {
|
|
|
|
|
|
|
|
|
|
|
|
cpt--;
|
|
|
|
cpt--;
|
|
|
@ -550,11 +547,6 @@ function decompte() {
|
|
|
|
clearInterval(itv);
|
|
|
|
clearInterval(itv);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(cpt <= 0) {
|
|
|
|
|
|
|
|
clearInterval(itv);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(cpt < 50) {
|
|
|
|
if(cpt < 50) {
|
|
|
|
document.getElementById("indicateur").style.backgroundColor = "orange";
|
|
|
|
document.getElementById("indicateur").style.backgroundColor = "orange";
|
|
|
|
|
|
|
|
|
|
|
@ -566,7 +558,6 @@ function decompte() {
|
|
|
|
|
|
|
|
|
|
|
|
indicateur.style.width = cpt + "px";
|
|
|
|
indicateur.style.width = cpt + "px";
|
|
|
|
progressnum.innerHTML = cpt;
|
|
|
|
progressnum.innerHTML = cpt;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|