-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
102 lines (99 loc) · 3.22 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
<!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>
<link rel="stylesheet" href="./styles/style.css" />
<link rel="stylesheet" href="./styles/overlays.css" />
<link rel="stylesheet" href="./styles/config.css" />
<link rel="stylesheet" href="./styles/game.css" />
<script src="./js/config.js" defer></script>
<script src="./js/game.js" defer></script>
<script src="./js/app.js" defer></script>
</head>
<body>
<div class="backdrop" id="backdrop"></div>
<header class="main-header">
<h1>Play Tic Tac Toe</h1>
<p>Built with HTML,CSS, JS</p>
</header>
<main>
<aside class="modal config-overlay" id="config-overlay">
<header>
<h2>Choose your name</h2>
</header>
<form>
<div class="form-control">
<label for="playername">Player name:</label>
<input type="text" name="playername" id="playername" />
</div>
<p id="config-errors"></p>
<div>
<button type="reset" class="btn btn-alt" id="cancel-config">
Cancel
</button>
<button type="submit" class="btn">Confirm</button>
</div>
</form>
</aside>
<section class="game-config">
<ol>
<li>
<article id="player-1-data">
<h2>Player 1</h2>
<h3>PLAYER NAME</h3>
<p class="player-symbol">X</p>
<button
class="btn btn-alt"
id="edit-player-one"
data-playerid="1"
>
Edit
</button>
</article>
</li>
<li>
<article id="player-2-data">
<h2>Player 2</h2>
<h3>PLAYER NAME</h3>
<p class="player-symbol">O</p>
<button
class="btn btn-alt"
id="edit-player-two"
data-playerid="2"
>
Edit
</button>
</article>
</li>
</ol>
<button class="btn" id="start-game">Start New Game</button>
</section>
<section class="active-game" id="active-game">
<article class="game-over" id="game-over">
<h2>You won, <span id="winner-name">PLAYER NAME</span>!</h2>
<p>Click "Start New Game" above, to start a new game!</p>
</article>
<p>
It's your turn
<span id="active-player-name" class="active-player-name"
>PLAYER NAME</span
>!
</p>
<ol class="game-board" id="game-board">
<li data-col="1" data-row="1"></li>
<li data-col="2" data-row="1"></li>
<li data-col="3" data-row="1"> </li>
<li data-col="1" data-row="2"></li>
<li data-col="2" data-row="2"></li>
<li data-col="3" data-row="2"></li>
<li data-col="1" data-row="3"></li>
<li data-col="2" data-row="3"></li>
<li data-col="3" data-row="3"></li>
</ol>
</section>
</main>
</body>
</html>