-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (50 loc) · 1.79 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>La Roue des Décisions</title>
</head>
<body>
<h1>La Roue des Décisions</h1>
<!-- Page Content -->
<div id="choicePicker">
<form>
<fieldset>
<legend>Nouveau choix</legend>
<select name="icons"></select>
<input type="text" name="textinput">
</fieldset>
</form>
<a href="#" id="addToListLink">Ajouter à la liste</a>
<a href="#" id="turnWheelLink">Faire tourner la roue</a>
<table id="choiceView">
</table>
</div>
<div id="choiceWheel">
<span id="emojiSpan"></span>
<span id="choiceSpan"></span>
</div>
<!-- Script links -->
<script src="Choice.js"></script>
<script src="tableScript.js"></script>
<script src="choiceListScript.js"></script>
<script src="emojiManager.js"></script>
<script src="formScript.js"></script>
<script src="wheelScript.js"></script>
<script src="https://rawgit.com/theraot/emoji/master/emoji.js"></script>
<!-- Script -->
<script>
window.onload = function() {
// Create emojis as options
iconsCreation();
// Add event listener on links
document.getElementById("addToListLink").addEventListener("click", addToChoiceList);
document.getElementById("turnWheelLink").addEventListener("click", turnTheWheel);
// Add event listener on form
var form = document.getElementsByTagName("form");
form[0].addEventListener("submit", (e) => formSubmissionCancel(e));
}
</script>
</body>
</html>