Compare commits
No commits in common. "9276325c2c806cbd7ad783df8f741d3c6cd4cebf" and "c1749f127de61663f2681184e2809c5310ee00a5" have entirely different histories.
9276325c2c
...
c1749f127d
4 changed files with 9 additions and 57 deletions
1
TODO.txt
1
TODO.txt
|
|
@ -1 +0,0 @@
|
||||||
younes: final chrono , pop up cookie , centrer ligne , animation pop up
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Démineur</title>
|
<title>Démineur</title>
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<script src="demineur.js"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body id="body_demineur">
|
<body id="body_demineur">
|
||||||
|
|
||||||
|
|
@ -16,21 +15,17 @@
|
||||||
<div class="item_nav">
|
<div class="item_nav">
|
||||||
<a href="https://demineur.nhtdev.com/fr/rules">Help</a>
|
<a href="https://demineur.nhtdev.com/fr/rules">Help</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item_nav">
|
<div class="item_nav">
|
||||||
Temps:
|
Temps:
|
||||||
<input id="temps" type="number" value="000" disabled>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="item_nav">
|
<div class="item_nav">
|
||||||
Mines restantes:10
|
Mines restantes:10
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div id="jeu">ICI se retourve le jeu</div>
|
<div id="jeu">ICI se retourve le jeu</div>
|
||||||
<button id="debut_game" onclick="chrono()">GO!</button>
|
|
||||||
<button id="fin_game" onclick="reset()">CIAO</button>
|
|
||||||
|
|
||||||
<span class="vertical-line"></span>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
33
demineur.js
33
demineur.js
|
|
@ -12,38 +12,6 @@ class Case {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
function sleep(ms){
|
|
||||||
return new Promise(resolve => setTimeout(resolve, ms));
|
|
||||||
}
|
|
||||||
async function chrono(){
|
|
||||||
let k=document.getElementById("temps").value;
|
|
||||||
const myButton = document.getElementById("fin_game");
|
|
||||||
let arret=0;
|
|
||||||
|
|
||||||
while(arret==!1) {
|
|
||||||
|
|
||||||
await sleep(1000);
|
|
||||||
document.getElementById("temps").value=document.getElementById("temps").value*1+1;
|
|
||||||
myButton.addEventListener("click",() =>{arret=1;})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
async function reset(){
|
|
||||||
await sleep(500);
|
|
||||||
document.getElementById("temps").value=0;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function Cookies() {
|
|
||||||
var accept = confirm("Tu veux des cookies ?");
|
|
||||||
if (accept === true) {
|
|
||||||
alert("Bon jeu!");
|
|
||||||
} else {
|
|
||||||
Cookies();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Cookies();
|
|
||||||
=======
|
|
||||||
|
|
||||||
let grille = [];
|
let grille = [];
|
||||||
|
|
||||||
|
|
@ -63,4 +31,3 @@ function creerGrille(haut, larg) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
>>>>>>> c1749f127de61663f2681184e2809c5310ee00a5
|
|
||||||
|
|
|
||||||
17
style.css
17
style.css
|
|
@ -1,6 +1,6 @@
|
||||||
#nav_demineur{
|
#nav_demineur{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
background-position:0cm;
|
||||||
background-color: #2bd7d484;
|
background-color: #2bd7d484;
|
||||||
border-width: 2px;
|
border-width: 2px;
|
||||||
border-style: double;
|
border-style: double;
|
||||||
|
|
@ -18,22 +18,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#jeu{
|
#jeu{
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: left;
|
justify-content: center;
|
||||||
border-width: 2px;
|
/* border-width: 2px;
|
||||||
border-style: double;
|
border-style: double; */
|
||||||
width: 49%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.item_nav{
|
.item_nav{
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
.vertical-line{
|
|
||||||
border-left: 4px solid #000;
|
|
||||||
display: inline-block;
|
|
||||||
height: 400px;
|
|
||||||
margin: 0 50% ;
|
|
||||||
padding-top: 0;
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue