diff --git a/code/button_displayer.js b/code/button_displayer.js index e2f5c0a..9ab2183 100644 --- a/code/button_displayer.js +++ b/code/button_displayer.js @@ -100,16 +100,19 @@ function less() } output.innerHTML = amount; outputHi.value=amount; + dispDots(); } function more() { + if(amount<8) { amount++; } output.innerHTML = amount; outputHi.value=amount; + dispDots(); } // pause oui/non @@ -161,3 +164,23 @@ else document.getElementById("img_easy").classList.add("selected"); document.getElementById("pause0").checked=true; } + +for(var cpt=1;cpt<9;cpt++) + { + document.getElementById("col"+cpt+"D").style.height=size/6; + document.getElementById("col"+cpt+"D").style.width=size/6; + } + +function dispDots() +{ + var amountI = parseInt(amount); + for(var cpt=1;cpt

Nombre de dots + + + + + + + + +

@@ -204,5 +213,8 @@ if(isset($_POST["game_mode"]) && $_POST["game_mode"]!="" && $_POST["difficulty"] + diff --git a/code/options.js b/code/options.js index ef01312..9fc80a4 100644 --- a/code/options.js +++ b/code/options.js @@ -35,24 +35,6 @@ output.innerHTML = amount; document.getElementById("+").width=size/4; document.getElementById("-").width=size/4; -function less() -{ - if(amount > 2) - { - amount--; - } - output.innerHTML = amount; -} - -function more() -{ - if(amount<8) - { - amount++; - } - output.innerHTML = amount; -} - document.getElementById("displays").addEventListener("click", function(){ document.getElementById("color_pickers").style.display= (displ!="points" ? "none" : "inline"); document.getElementById("gems_picker").style.display= (displ=="points" ? "none" : "inline"); @@ -142,6 +124,7 @@ for(var cpt=1;cpt<9;cpt++) document.getElementById("col`+cpt+`").style.background=pickr`+cpt+`.getColor().toHEXA().toString(); setCookie("color_`+cpt+`",pickr`+cpt+`.getColor().toHEXA().toString(),30); pickr`+cpt+`.hide(); + dispDots(); });`); }