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() {
|
||||
score++;
|
||||
score += Math.floor(Math.random() * zones.length);
|
||||
document.getElementById("score").innerText = score.toString();
|
||||
}
|
||||
|
|
|
@ -86,7 +86,7 @@ a {
|
|||
.img-holder .zone {
|
||||
position: absolute;
|
||||
display: block;
|
||||
background-color: red;
|
||||
background-color: #c6ff50;
|
||||
}
|
||||
|
||||
.img-holder .zone.inactive,
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
<main>
|
||||
<h2>Jeu interactif</h2>
|
||||
<p>
|
||||
Aide Pimpin le technicien à reboucher les fuites ! <br>
|
||||
Score : <span id="score">0</span> <br>
|
||||
Aide Pimpin le technicien à reboucher les fuites de fluide frigorigène ! <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>
|
||||
</p>
|
||||
<div class="img-holder">
|
||||
|
|
Loading…
Reference in a new issue