From 67af7283c29022a6cb584dc892a1b05c3ceaac08 Mon Sep 17 00:00:00 2001 From: "saulnier.j" Date: Thu, 24 Mar 2022 09:25:28 +0100 Subject: [PATCH] =?UTF-8?q?cr=C3=A9ation=20input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Index.html | 6 ++---- main.js | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/Index.html b/Index.html index 1804095..8f9ebbd 100644 --- a/Index.html +++ b/Index.html @@ -22,12 +22,10 @@ +
+ - - - - diff --git a/main.js b/main.js index e69de29..ebe9653 100644 --- a/main.js +++ b/main.js @@ -0,0 +1,19 @@ +let machine_sous = new Object(); +//machine_sous.argent = int(input("Saississez votre somme de départ: ")) +machine_sous.nombres = [] +machine_sous.bank = 1000 +machine_sous.mise = -1 +machine_sous.gains = 0 + +function controle(){ + var saisie = document.getElementById("input").value; + alert("Vous avez saisi : "+ saisie); +} + +function test(taille){ + for(let i=0; i