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); -})