From 30bbf01d96038f7936e0e4f24089bb0cf86cc9c9 Mon Sep 17 00:00:00 2001 From: Arthur BARRAUX Date: Wed, 4 Jan 2023 11:18:34 +0100 Subject: [PATCH] 3.14159265358979323846264338327950288419719749 --- index.html | 18 ++++++++++++++---- script.js | 14 -------------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/index.html b/index.html index 34f403a..8fde1ff 100644 --- a/index.html +++ b/index.html @@ -16,10 +16,20 @@

-
- Ajouter quelqu'un: - -
+ Ajouter quelqu'un: + + + diff --git a/script.js b/script.js index 83a0057..8d9d346 100755 --- a/script.js +++ b/script.js @@ -66,18 +66,4 @@ function show_winner(winner){ h1.innerText = winner; }; -function validateForm() { - let x = document.forms["myForm"]["fname"].value; - if (x == "") { - alert("Name must be filled out"); - return false; - } - names.push(x); - draw_roulette(200,200,200, names); -} -document.getElementById('submit').addEventListener('click', function(event){ - event.preventDefault(); - names.push(document.getElementById("entry").innerText); - draw_roulette(200, 200, 200, names); -})