From a703b2e2a8edf15cbe5d411cc593f581e1ca415e Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 23 Jan 2024 00:29:12 +0100 Subject: [PATCH] improve score & color --- potain05/assets/jeu.js | 2 +- potain05/assets/style.css | 2 +- potain05/index.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/potain05/assets/jeu.js b/potain05/assets/jeu.js index 4f066f9..20a7fa8 100644 --- a/potain05/assets/jeu.js +++ b/potain05/assets/jeu.js @@ -82,6 +82,6 @@ function end() { } function increment() { - score++; + score += Math.floor(Math.random() * zones.length); document.getElementById("score").innerText = score.toString(); } diff --git a/potain05/assets/style.css b/potain05/assets/style.css index 360a11f..6422c48 100644 --- a/potain05/assets/style.css +++ b/potain05/assets/style.css @@ -86,7 +86,7 @@ a { .img-holder .zone { position: absolute; display: block; - background-color: red; + background-color: #c6ff50; } .img-holder .zone.inactive, diff --git a/potain05/index.html b/potain05/index.html index 877b2c3..2f53cb7 100644 --- a/potain05/index.html +++ b/potain05/index.html @@ -22,8 +22,8 @@

Jeu interactif

- Aide Pimpin le technicien à reboucher les fuites !
- Score : 0
+ Aide Pimpin le technicien à reboucher les fuites de fluide frigorigène !
+ Score : 0 kg CO2e non rejetés dans l'atmosphère