You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
949 B

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Roulette à eau</title>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<svg id="roulette" width="800" height="800">
<g stroke="black" stroke-width=2></g>
</svg>
<script type="text/javascript">
let names = new Array();
draw_roulette(200, 200, 200, names);
</script>
<button onclick="rotate()">Tourner</button>
<h1 id="winner"></h1>
Ajouter quelqu'un: <input id="entry" type="text" name="fname">
<input id="submit" type="submit" value="Submit">
<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>
</html>