-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (63 loc) · 2.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tic Tac Toe</title>
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<main>
<div class="grid" data-id="grid">
<!-- Turn indicator -->
<div class="turn " data-id="turn">
<i class="fa-solid fa-x turquoise"></i>
<p class="turquoise">Player 1, you're up!</p>
</div>
<!-- Dropdown menu -->
<div class="menu" data-id="menu">
<button class="menu-btn" data-id="menu-button">
Actions
<i class="fa-solid fa-chevron-down"></i>
</button>
<div class="items border hidden" data-id="menu-popover">
<button data-id="reset-btn">Reset</button>
<button data-id="new-round-btn">New Round</button>
</div>
</div>
<!-- Gameboard -->
<div id="1" class="square shadow" data-id="square"></div>
<div id="2" class="square shadow" data-id="square"></div>
<div id="3" class="square shadow" data-id="square"></div>
<div id="4" class="square shadow" data-id="square"></div>
<div id="5" class="square shadow" data-id="square"></div>
<div id="6" class="square shadow" data-id="square"></div>
<div id="7" class="square shadow" data-id="square"></div>
<div id="8" class="square shadow" data-id="square"></div>
<div id="9" class="square shadow" data-id="square"></div>
<!-- Scoreboard -->
<div class="score shadow" style="background-color: var(--turquoise);">
<p>Player 1</p>
<span data-id="p1-wins">0 Wins</span>
</div>
<div class="score shadow" style="background-color: var(--light-gray);">
<p>Ties</p>
<span data-id="ties">0</span>
</div>
<div class="score shadow" style="background-color: var(--yellow);">
<p>Player 2</p>
<span data-id="p2-wins">0 Wins</span>
</div>
</div>
</main>
<!-- Modal that opens when game ends -->
<div class="modal hidden" data-id="modal">
<div class="modal-contents" data-id="modal-contents">
<p data-id="modal-text">Player 1 wins!</p>
<button data-id="modal-btn">Play again</button>
</div>
</div>
<script src="./js/app.js" type="module"></script>
</body>
</html>