diff --git a/code/button_displayer.js b/code/button_displayer.js index b6e65c3..9ea0320 100644 --- a/code/button_displayer.js +++ b/code/button_displayer.js @@ -7,7 +7,7 @@ var modeSelected=null; var diffSelected=null; var btn_options=document.getElementById("btn_options"); -btn_options.width=size; +btn_options.width=size/2; document.getElementById("btn_play").width=size; document.getElementById("btn_play_des").width=size; diff --git a/code/highscore_button_displayer.js b/code/highscore_button_displayer.js index 4f63ce0..3525764 100644 --- a/code/highscore_button_displayer.js +++ b/code/highscore_button_displayer.js @@ -90,13 +90,32 @@ function hideAll() // Dots amount -var slider = document.getElementById("range_dots"); var output = document.getElementById("dotsNumber"); -document.getElementById("range_dots").value= (getCookie("dotsAmount")!="" ? getCookie("dotsAmount") : 4 ); -output.innerHTML = slider.value; +var outputHi = document.getElementById("amountHi"); +var amount = (getCookie("dotsAmount")=="" ? 4 : getCookie("dotsAmount")); +output.innerHTML = amount; -slider.oninput = function() { - output.innerHTML = this.value; +document.getElementById("+").width=size/4; +document.getElementById("-").width=size/4; + +function less() +{ + if(amount > 2) + { + amount--; + } + output.innerHTML = amount; + outputHi.value=amount; +} + +function more() +{ + if(amount<8) + { + amount++; + } + output.innerHTML = amount; + outputHi.value=amount; } // pause oui/non diff --git a/code/highscores.css b/code/highscores.css index 814b8e1..2bffbc9 100644 --- a/code/highscores.css +++ b/code/highscores.css @@ -1,12 +1,13 @@ .all-container { - display : flex; - - align-items: baseline; - width : min-content; - - margin: 5px; - + margin-left: auto; + margin-right: auto; + align-items: center; + } +.mode-container { +text-align: center; +margin-left: auto; +margin-right: auto; } .button { @@ -99,4 +100,24 @@ } .day { background: #eee; color: black; } -.night { background: #333; color: white; } \ No newline at end of file +.night { background: #333; color: white; } + +.logo { + text-align: center; +} + +.bd { + /* + border-style: solid; + border-width: 5px;*/ +} + +.ad { /* + border-style: solid; + border-width: 5px; + border-color: red; */ + width: min-content; + margin-left: auto; + margin-right: auto; + +} \ No newline at end of file diff --git a/code/highscores.php b/code/highscores.php index 7fc39e7..3edca7b 100644 --- a/code/highscores.php +++ b/code/highscores.php @@ -2,18 +2,36 @@ +
+ - +
-
- - - -