-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
171 lines (166 loc) · 6.39 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tic-Tac-Toe</title>
<!-- FAVICON -->
<link rel="apple-touch-icon" sizes="180x180" href="./favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./favicon/favicon-16x16.png">
<link rel="manifest" href="./favicon/site.webmanifest">
<link rel="mask-icon" href="./favicon/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<!-- FONT AWESOME -->
<script src="https://kit.fontawesome.com/25fd90afcd.js" crossorigin="anonymous"></script>
<!-- GOOGLE FONTS -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap" rel="stylesheet">
<!-- CSS LINK -->
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Tic Tac Toe</h1>
</header>
<main>
<!-- TITLE SCREEN -->
<div class="title-page">
<div class="player-selection">
<h1>Choose your hero!</h1>
<div class="players">
<div class="player1">
<div class="player-top">
<!-- PLAYER 1 -->
<h2>Player 1</h2>
</div>
<div class="player-avatar" data-avatars>
<button class="avatar-select-btn prev" data-avatarSwitch-button="prev"><i
class="fa-solid fa-arrow-left"></i></button>
<button class="avatar-select-btn next" data-avatarSwitch-button="next"><i
class="fa-solid fa-arrow-right"></i></button>
<ul class="p1" data-slides>
<li class="slide" data-active>
<img src="./images/hero1.png" alt="Hero #1">
</li>
<li class="slide">
<img src="./images/hero2.png" alt="Hero #2">
</li>
<li class="slide">
<img src="./images/hero3.png" alt="Hero #3">
</li>
<li class="slide">
<img src="./images/hero4.png" alt="Hero #4">
</li>
<li class="slide">
<img src="./images/hero5.png" alt="Hero #5">
</li>
<li class="slide">
<img src="./images/hero6.png" alt="Hero #6">
</li>
</ul>
</div>
<div class="player-name">
<input type="text" id="p1-name" name="p1-name" maxlength="12" placeholder="Player 1" />
</div>
</div>
<!-- PLAYER 2 -->
<div class="player2">
<div class="player-top">
<h2>Player 2</h2>
</div>
<div class="player-avatar" data-avatars>
<button class="avatar-select-btn prev" data-avatarSwitch-button="prev"><i
class="fa-solid fa-arrow-left"></i></button>
<button class="avatar-select-btn next" data-avatarSwitch-button="next"><i
class="fa-solid fa-arrow-right"></i></button>
<ul data-slides>
<li class="slide" data-active>
<img src="./images/hero2.png" alt="Hero #2">
</li>
<li class="slide">
<img src="./images/hero3.png" alt="Hero #3">
</li>
<li class="slide">
<img src="./images/hero4.png" alt="Hero #4">
</li>
<li class="slide">
<img src="./images/hero5.png" alt="Hero #5">
</li>
<li class="slide">
<img src="./images/hero6.png" alt="Hero #6">
</li>
<li class="slide">
<img src="./images/hero1.png" alt="Hero 1">
</li>
</ul>
</div>
<div class="player-name">
<input type="text" id="p2-name" name="p2-name" maxlength="12" placeholder="Player 2" />
</div>
</div>
</div>
<div class="start">
<button id="start-btn">Start</button>
</div>
</div>
</div>
<!-- GAMEBOARD -->
<div class="game-page" id="game-page">
<div class="rounds">
<h1 id="round">Round: 1</h1>
</div>
<div class="game-container">
<div class="player1-left">
<h2 id="player1-name"></h2>
<div class="avatar">
<img class="player1-avatar" src="./images/hero1.png" alt="Player 1 Avatar">
<p>Marker: X</p>
</div>
<h2 id="player1-score">Score: 0</h2>
</div>
<div class="gameboard">
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
<div class="cell" data-cell></div>
</div>
<div class="player2-right">
<h2 id="player2-name"></h2>
<div class="avatar">
<img class="player2-avatar" src="./images/hero2.png" alt="Player 2 Avatar">
<p>Marker: O</p>
</div>
<h2 id="player2-score">Score: 0</h2>
</div>
<aside class="winner-modal">
<h1 data-winner-text>Player ? wins!</h1>
<img class="winner-avatar" src="" alt="Player Avatar">
<button id="winner-btn">Continue</button>
</aside>
<aside class="draw-modal">
<h1>Draw!</h1>
<button id="draw-btn">Continue</button>
</aside>
<button id="reset-btn"><i class="fa-solid fa-rotate-right"></i></button>
<button id="home-btn"><i class="fa-solid fa-house"></i></button>
</div>
</div>
</main>
<footer>
<a href="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/MikesonO/tic-tac-toe" target="_blank">
<p>Made by: MikesonO</p><i class="fa-brands fa-github"></i>
</a>
</footer>
<!-- JAVASCRIPT LINK -->
<script src="index.js"></script>
</body>
</html>