-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
103 lines (98 loc) · 3.44 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
<!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="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap"
rel="stylesheet"
/>
</head>
<link rel="stylesheet" href="styles/style.css" />
<link rel="stylesheet" href="styles/overlays.css" />
<link rel="stylesheet" href="styles/configuration.css" />
<link rel="stylesheet" href="styles/game.css" />
<script src="scripts/config.js" defer></script>
<script src="scripts/game.js" defer></script>
<script src="scripts/app.js" defer></script>
<body>
<div id="backdrop"></div>
<header id="main-header">
<h1>Play Tic, Tac, Toe</h1>
<p>Built with HTML, CSS, JavaScript and -of course - lots of love!</p>
</header>
<main>
<aside class="modal" id="config-overlay">
<h2>Choose your name</h2>
<form>
<div class="form-control">
<label for="playername">Player name</label>
<input type="text" name="playername" id="playername" required />
</div>
<p id="config-errors"></p>
<div>
<button type="reset" class="btn btn-alt" id="cancel-config-btn">
Cancel
</button>
<button type="submit" class="btn">Confirm</button>
</div>
</form>
</aside>
<section id="game-configuration">
<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-1-btn"
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-2-btn"
data-playerid="2"
>
Edit
</button>
</article>
</li>
</ol>
<button class="btn" id="start-game-btn">Start New Game</button>
</section>
<section id="active-game">
<article 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">PLAYER NAME</span>!</p>
<ol id="game-board">
<li data-row="1" data-col="1"></li>
<li data-row="1" data-col="2"></li>
<li data-row="1" data-col="3"></li>
<li data-row="2" data-col="1"></li>
<li data-row="2" data-col="2"></li>
<li data-row="2" data-col="3"></li>
<li data-row="3" data-col="1"></li>
<li data-row="3" data-col="2"></li>
<li data-row="3" data-col="3"></li>
</ol>
</section>
</main>
</body>
</html>