-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (70 loc) · 2.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Game</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header id="main-header">
<h1>Play Tic, Tac, Toe</h1>
<p>Build with HTML, CSS and JavaScript</p>
</header>
<div id="backdrop"></div>
<aside class="model" id="config-overlay">
<h2>Choose your name </h2>
<form action="">
<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>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>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 Win <span id="winner-player">Player Name </span></h2>
<p>Click "Start New Game" above to start the game</p>
</article>
<p>Its your turn <span id="active-payer-name">Player Name</span>!</p>
<ol 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>
<script src="script.js"></script>
</body>
</html>