improve score & color
This commit is contained in:
parent
3f36a21f25
commit
a703b2e2a8
3 changed files with 4 additions and 4 deletions
|
@ -82,6 +82,6 @@ function end() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function increment() {
|
function increment() {
|
||||||
score++;
|
score += Math.floor(Math.random() * zones.length);
|
||||||
document.getElementById("score").innerText = score.toString();
|
document.getElementById("score").innerText = score.toString();
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,7 @@ a {
|
||||||
.img-holder .zone {
|
.img-holder .zone {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: block;
|
display: block;
|
||||||
background-color: red;
|
background-color: #c6ff50;
|
||||||
}
|
}
|
||||||
|
|
||||||
.img-holder .zone.inactive,
|
.img-holder .zone.inactive,
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
<main>
|
<main>
|
||||||
<h2>Jeu interactif</h2>
|
<h2>Jeu interactif</h2>
|
||||||
<p>
|
<p>
|
||||||
Aide Pimpin le technicien à reboucher les fuites ! <br>
|
Aide Pimpin le technicien à reboucher les fuites de fluide frigorigène ! <br>
|
||||||
Score : <span id="score">0</span> <br>
|
Score : <span id="score">0</span> kg CO<sub>2</sub>e non rejetés dans l'atmosphère<br>
|
||||||
<button onclick="start()">Commencer</button>
|
<button onclick="start()">Commencer</button>
|
||||||
</p>
|
</p>
|
||||||
<div class="img-holder">
|
<div class="img-holder">
|
||||||
|
|
Loading…
Reference in a new issue