From 1fc9b344405bdae39454408f5cc489313fc50976 Mon Sep 17 00:00:00 2001 From: quipiq <72353621+quipiq@users.noreply.github.com> Date: Sun, 17 Apr 2022 21:54:17 +0200 Subject: [PATCH] mise en place des rectangles avec info de ms --- test_jl/main.js | 11 ++--------- test_jl/test.css | 22 ++++++++++++++++++++++ test_jl/test.html | 7 +++++++ 3 files changed, 31 insertions(+), 9 deletions(-) diff --git a/test_jl/main.js b/test_jl/main.js index 2ba9cc5..39b4781 100644 --- a/test_jl/main.js +++ b/test_jl/main.js @@ -5,14 +5,6 @@ let bank = 1000 let mise let gains = 0 -regle() - - -function regle(){ - console.log("les règles sont .............."); - console.log("Mais aussi ça ............."); -} - function saisie(){ if (argent>0){ mise = document.getElementById("mise").value; @@ -123,7 +115,8 @@ function init(firstInit, groups, duration) { console.log(nombres); saisie() nombres = []; - //console.log(nombres); + document.getElementById("bank_val").innerHTML=bank; + document.getElementById("argent_val").innerHTML=argent; } function shuffle([...arr]) { let m = arr.length; diff --git a/test_jl/test.css b/test_jl/test.css index e365c62..9f52719 100644 --- a/test_jl/test.css +++ b/test_jl/test.css @@ -9,7 +9,28 @@ } .doors { + /*display: flex;*/ +} + +.bank{ + background: #fafafa; + box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.4) inset; + + width: 100px; + height: 150px; + overflow: hidden; + + border-radius: 1ex; + margin: 1ch; + float: top; +} + +#resultat{ display: flex; + justify-content: center; + align-items: center; + font-size: 2rem; + margin-top: 55%; } .door { @@ -22,6 +43,7 @@ border-radius: 1ex; margin: 1ch; + float: right; } .boxes { diff --git a/test_jl/test.html b/test_jl/test.html index d6e41b7..6749bf9 100644 --- a/test_jl/test.html +++ b/test_jl/test.html @@ -32,6 +32,13 @@ +