-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
92 lines (83 loc) · 2.3 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Tic Tac Toe</title>
<link href="style/board.css" rel="stylesheet" type="text/css" />
<link href="style/customisation.css" rel="stylesheet" type="text/css" />
<link href="style/effects.css" rel="stylesheet" type="text/css" />
<link href="style/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<header>
<ul>
<li>
<button id="mute">
Mute
</button>
</li>
<li>
<button id="customise">
Customise
</button>
</li>
</ul>
</header>
<main>
<h1 class="large">Tic tac toe</h1>
<ul id="board" class="hidden"></ul>
<p id="display"></p>
<button id="play">
Let's play!
</button>
</main>
<aside class="hidden">
<h2>Customise</h2>
<form id="custom">
<fieldset id="teams">
<legend>Teams</legend>
<div class="team-list"></div>
<button id="add-team">Add team</button>
</fieldset>
<fieldset id="board-settings">
<legend>Board</legend>
<ul class="settings">
<li>
<label for="size">
Size
</label>
<input type="number" name="size" value="5" min="3" max="42" />
</li>
<li>
<label for="win">
Win length
</label>
<input type="number" name="win" value="3" min="2" max="13" />
</li>
</ul>
</fieldset>
</form>
</aside>
<audio
id="end-game-sound"
src="./sounds/video-game-beeps.mp3" />
<audio
id="score-1-sound"
src="./sounds/score-1.mp3" />
<audio
id="score-2-sound"
src="./sounds/score-2.mp3" />
<audio
id="loop-sound"
loop="true"
src="./sounds/video-game-loop.mp3" />
<script src="script/board.js"></script>
<script src="script/customisation.js"></script>
<script src="script/display.js"></script>
<script src="script/game.js"></script>
<script src="script/sounds.js"></script>
<script src="script/win.js"></script>
<script src="script/init.js"></script>
</body>
</html>