update
This commit is contained in:
parent
bb33748a30
commit
7495206d88
Binary file not shown.
Before Width: | Height: | Size: 218 KiB After Width: | Height: | Size: 368 KiB |
BIN
css/images/bg.jpg.bak
Normal file
BIN
css/images/bg.jpg.bak
Normal file
Binary file not shown.
After Width: | Height: | Size: 218 KiB |
@ -208,10 +208,6 @@ th, td {
|
||||
height: 18vmin;
|
||||
}
|
||||
|
||||
#settingsButton {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#leaderboard {
|
||||
min-width: 25%;
|
||||
margin: auto;
|
||||
|
10
index.php
10
index.php
@ -97,10 +97,12 @@
|
||||
</div>
|
||||
<fieldset id="start">
|
||||
<legend>Nouvelle partie</legend>
|
||||
<label for="startLevel">Niveau</label>
|
||||
<input type="number" id="startLevel" min="1" max="15" step="1">
|
||||
<div></div>
|
||||
<div>
|
||||
<label for="startLevel">Niveau</label>
|
||||
<input type="number" id="startLevel" min="1" max="15" step="1">
|
||||
</div>
|
||||
<button id="startButton" type="button" onclick="newGame()" disabled>JOUER</button>
|
||||
<button id="settingsStartButton" type="button" onclick="showSettings()" disabled>OPTIONS</button>
|
||||
</fieldset>
|
||||
<div>
|
||||
<button id="settingsButton" type="button" onclick="showSettings()" disabled>OPTIONS</button>
|
||||
@ -109,4 +111,4 @@
|
||||
<a href="leaderboard.php" target="_blank">TABLEAU DE SCORE</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -609,7 +609,7 @@ function gameOver() {
|
||||
FD.append("score", stats.score)
|
||||
XHR.addEventListener('load', function(event) {
|
||||
if (event.target.responseText == "true") {
|
||||
var player = prompt(info + "\nBravo ! Vous êtes dans le Top 20.\nEntrez votre nom pour publier votre score :" , localStorage.getItem("name") || "")
|
||||
var player = prompt(info + "\nBravo ! Vous êtes dans le Top 20.\nEntrez votre nom pour publier votre score :" , localStorage.getItem("player") || "")
|
||||
if (player.length) {
|
||||
localStorage.setItem("player", player)
|
||||
XHR = new XMLHttpRequest()
|
||||
@ -646,7 +646,7 @@ function gameOver() {
|
||||
document.getElementById("game").style.display = "grid"
|
||||
document.getElementById("settings").style.display = "none"
|
||||
document.getElementById("start").style.display = "grid"
|
||||
document.getElementById("settingsButton").style.display = "none"
|
||||
document.getElementById("settingsButton").style.display = "flex"
|
||||
document.getElementById("leaderboardLink").style.display = "flex"
|
||||
}
|
||||
|
||||
@ -960,9 +960,8 @@ window.onload = function() {
|
||||
document.getElementById("startLevel").value = localStorage.getItem("startLevel") || 1
|
||||
|
||||
document.getElementById("startButton").disabled = false
|
||||
document.getElementById("startButton").focus();
|
||||
document.getElementById("startButton").focus()
|
||||
document.getElementById("settingsButton").disabled = false
|
||||
document.getElementById("settingsStartButton").disabled = false
|
||||
messageDiv = document.getElementById("message")
|
||||
|
||||
scheduler = new Scheduler()
|
||||
|
Reference in New Issue
Block a user