|
@ -16,10 +16,20 @@ |
|
|
</script> |
|
|
</script> |
|
|
<button onclick="rotate()">Tourner</button> |
|
|
<button onclick="rotate()">Tourner</button> |
|
|
<h1 id="winner"></h1> |
|
|
<h1 id="winner"></h1> |
|
|
<form name="myForm" action="/action_page.php" onsubmit="return validateForm()" method="post"> |
|
|
|
|
|
Ajouter quelqu'un: <input id="entry" type="text" name="fname"> |
|
|
Ajouter quelqu'un: <input id="entry" type="text" name="fname"> |
|
|
<input id="submit" type="submit" value="Submit"> |
|
|
<input id="submit" type="submit" value="Submit"> |
|
|
</form> |
|
|
<ul id="list_person"> |
|
|
|
|
|
|
|
|
|
|
|
</ul> |
|
|
|
|
|
<script> |
|
|
|
|
|
document.getElementById('submit').addEventListener('click', function(event){ |
|
|
|
|
|
event.preventDefault(); |
|
|
|
|
|
names.push(document.getElementById('entry').value); |
|
|
|
|
|
draw_roulette(200, 200, 200, names); |
|
|
|
|
|
let new_element = document.createElement("li"); |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
</script> |
|
|
</body> |
|
|
</body> |
|
|
</html> |
|
|
</html> |
|
|
|
|
|
|
|
|