-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (80 loc) · 2.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./style.css" />
<link rel="shortcut icon" href="./src//assets/tic-tac-toe-icon.png" type="image/x-png">
<title>Tic tac toe</title>
</head>
<body>
<h1>Tic tac toe</h1>
<header>
<div>
<button id="muteBtn" class="sound-on">
<img class="sound-img" src="./src/assets/music-note.svg" alt="sound on" />
</button>
</div>
<p id="liveFeedback"></p>
</header>
<div class="form-container">
<form class="name-form">
<div>
<label for="playerOne">Player one</label>
<br />
<input
type="text"
id="playerOne"
minlength="3"
required
placeholder="Enter name"
/>
</div>
<div>
<label for="playerTwo">Player two</label>
<br />
<input
type="text"
id="playerTwo"
minlength="3"
required
placeholder="Enter name"
/>
</div>
<div>
<button id="submitBtn" type="button">Submit</button>
</div>
</form>
</div>
<div class="game-board">
<div class="cells"></div>
<div class="cells"></div>
<div class="cells"></div>
<div class="cells"></div>
<div class="cells"></div>
<div class="cells"></div>
<div class="cells"></div>
<div class="cells"></div>
<div class="cells"></div>
</div>
<div class="result-container hidden">
<div class="game-over-box">
<img
class="game-over-gif"
src="./src/assets/game-over-gif.gif"
alt="bunny waiting"
/>
<p class="game-over">GAME OVER</p>
</div>
<div class="result-msgs">
<p id="winMatch"></p>
<p id="loseMatch"></p>
</div>
<div class="result-btns">
<button id="resetGameBtn">Restart</button>
<button id="playAgainGameBtn">Play again</button>
</div>
</div>
<script type="module" src="./main.js" defer></script>
</body>
</html>