-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
94 lines (85 loc) · 3.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<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=Kablammo&family=Open+Sans:wght@400;700&family=Pacifico&family=Roboto:ital,wght@1,100&display=swap" rel="stylesheet">
<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="scripts/playerDetails.js" defer></script>
<script src="scripts/game.js" defer></script>
<script src="scripts/app.js" defer></script>
</head>
<body>
<div id="backdrop"></div>
<header id="main-header" class="main-header">
<h1><span id="mini-header">Wanna Play
<span id="game-name">TIC - TAC - TOE</span></span></h1>
<p>Built with HTML, CSS, JAVASCRIPT and of Course - Lots Of LOVE - XO</p>
</header>
<!--OVERLAY for entering player names (it will only display when player selects name)-->
<button id="dark-theme">DARK THEME</button>
<button id="light-theme">DEFAULT</button>
<aside class="modal" id="config-overlay">
<h2>Choose your Name</h2>
<form>
<div class="form-control" id="form-control">
<label for="playername">Player Name</label>
<input type="text" name="playername" id="playername" required>
</div>
<p id="name-error"></p>
<div>
<button type="reset" id="cancel" class="btn btn-alt">Cancel</button>
<button type="submit" id="confirm" class="btn">Confirm</button>
</div>
</form>
</aside>
<!-- section for player's information -->
<section id="game-configuration">
<ol>
<li>
<article id="player-1-data">
<h2>Player 1</h2>
<h3>PLAYER NAME</h3>
<p class="player-symbols">X</p>
<button id="edit-btn1" class="btn btn-alt" data-playerid = "1">Edit</button>
</article>
</li>
<li>
<article id="player-2-data">
<h2>Player 2</h2>
<h3>PLAYER NAME</h3>
<p class="player-symbols">O</p>
<button id="edit-btn2" class="btn btn-alt" data-playerid = "2">Edit</button>
</article>
</li>
</ol>
<button class="btn" id="startNewGame">Start New Game</button>
</section>
<!-- GAME starts HERE -->
<section id="active-game">
<article id="game-over" class="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 id="turn">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>