From 2c768f314db5a478d20e1d345dd268ecca3a0ea2 Mon Sep 17 00:00:00 2001 From: algolfier Date: Mon, 14 Dec 2020 14:28:26 +0100 Subject: [PATCH] lalala --- SwichGIT/src/css/PartieGame.css | 21 +++++++++++++-------- SwichGIT/src/debug.log | 3 +++ SwichGIT/src/index.html | 5 ++--- SwichGIT/src/js/main.js | 10 +++++----- 4 files changed, 23 insertions(+), 16 deletions(-) diff --git a/SwichGIT/src/css/PartieGame.css b/SwichGIT/src/css/PartieGame.css index a271f62..50af8fa 100644 --- a/SwichGIT/src/css/PartieGame.css +++ b/SwichGIT/src/css/PartieGame.css @@ -77,10 +77,11 @@ transition: box-shadow 0.2s ease; } +/* #caseBarre { background-color:lightgray; - height:104px; + width:804px; padding:2px; -moz-border-radius:3px; border-radius:5px; @@ -88,37 +89,41 @@ border:1px solid gray; order:2; margin-left: 300px; - width: 32px; + height: 12px; display: flex; order : 2; } +*/ #progressbar { - height:100px; + width: 800px; padding:1px; background-color:white; border:1px solid black; - width:28px; + height:10px; border-radius: 5px; -transform: rotate(180deg); + display:flex; + order : 2; } #indicateur { - height: 100px; + width: 800px; background-color : green; - width:28px; + height:10px; margin: 0; } +/* #progressnum { text-align:center; - height: 10px; + width: 10px; font-family: Montserrat, impact, Arial Black; transform: rotate(180deg); } +*/ \ No newline at end of file diff --git a/SwichGIT/src/debug.log b/SwichGIT/src/debug.log index bdde6cb..7a11937 100644 --- a/SwichGIT/src/debug.log +++ b/SwichGIT/src/debug.log @@ -3,3 +3,6 @@ [1207/113906.684:ERROR:directory_reader_win.cc(43)] FindFirstFile: Le chemin d’accès spécifié est introuvable. (0x3) [1211/112927.710:ERROR:directory_reader_win.cc(43)] FindFirstFile: Le chemin d’accès spécifié est introuvable. (0x3) [1211/150816.858:ERROR:directory_reader_win.cc(43)] FindFirstFile: Le chemin d’accès spécifié est introuvable. (0x3) +[1214/084541.476:ERROR:directory_reader_win.cc(43)] FindFirstFile: Le chemin d’accès spécifié est introuvable. (0x3) +[1214/141356.845:ERROR:directory_reader_win.cc(43)] FindFirstFile: Le chemin d’accès spécifié est introuvable. (0x3) +[1214/142705.642:ERROR:directory_reader_win.cc(43)] FindFirstFile: Le chemin d’accès spécifié est introuvable. (0x3) diff --git a/SwichGIT/src/index.html b/SwichGIT/src/index.html index 975661f..90df271 100644 --- a/SwichGIT/src/index.html +++ b/SwichGIT/src/index.html @@ -155,14 +155,13 @@ -
+
-
0
-
+
diff --git a/SwichGIT/src/js/main.js b/SwichGIT/src/js/main.js index 271a1e1..bdc1872 100644 --- a/SwichGIT/src/js/main.js +++ b/SwichGIT/src/js/main.js @@ -521,7 +521,7 @@ function chercheCombi2() { //FONCTION DE TEST => permet de tester des fonctionnalité via le bouton VALIDER //Code de la barre d'écoulement du temps -var cpt = 101; +var cpt = 801; var x; var itv = 0; @@ -533,7 +533,7 @@ function decompte() { if (cpt >= 0) { cpt--; - x = setTimeout("decompte()", 1000); + x = setTimeout("decompte()", 500); } else { @@ -547,16 +547,16 @@ function decompte() { clearInterval(itv); } - if(cpt < 50) { + if(cpt < 400) { document.getElementById("indicateur").style.backgroundColor = "orange"; } - if(cpt < 20) { + if(cpt < 100) { document.getElementById("indicateur").style.backgroundColor = "red"; } - indicateur.style.height = cpt + "px"; + indicateur.style.width = cpt + "px"; progressnum.innerHTML = cpt; }