-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
100 lines (82 loc) · 3.56 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
<!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>
<style>
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Parisienne&display=swap');
</style>
<link rel="stylesheet" href="version 3/style.css">
<script src="version 3/app.js" defer></script>
</head>
<body>
<div id="backdrop"></div>
<header id="main-header">
<h1><p style="font-family: 'Great Vibes', cursive;">Let's Play</h1>
<h2><u> Tic- Tac - Toe</u></h2>
</header>
<main>
<aside class="modal" id="config-overlay">
<h2>Choose Your Name</h2>
<form class="form-control">
<div>
<label for="PlayerName">Player Name</label>
<input type="text" name="PlayerName" id="PlayerName" required>
</div>
<p id="config-error"></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="scoreboard">
<h2><U>SCOREBOARD</U></h2>
<p><span id="player1-score">Player X: 0</span>
<span id="player2-score">Player O: 0</span>
<span id="draw-score">Draw: 0</span></p>
</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-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>
<section id="game-config">
<span style="font-size: larger;">Player Details</span>
<ol>
<li>
<article id="player-1-data">
<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">
<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"><a href="#game-board">Start New Game</a></button>
</section>
</main>
<script>
</script>
</body>
</html>