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