-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
103 lines (103 loc) · 3.11 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 name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TIC TAC TOE</title>
<link
rel="apple-touch-icon"
sizes="180x180"
href="images/icons/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="images/icons/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="images/icons/favicon-16x16.png"
/>
<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=Roboto:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.css" />
<script src="app.js" defer></script>
</head>
<body>
<header>
<h1>Play Tic, Tac, Toe</h1>
<p>
Built with HTML, CSS, JavaScript and - of course - a lot of work and
tears!
</p>
</header>
<main>
<section id="players-configurations">
<div id="player1" class="player-container">
<p>First Player</p>
<h2 class="player-name">Player 1</h2>
<p class="symbol">X</p>
<button>Edit</button>
</div>
<div id="player2" class="player-container">
<p>Second Player</p>
<h2 class="player-name">Player 2</h2>
<p class="symbol">O</p>
<button>Edit</button>
</div>
</section>
<section id="overlay">
<form>
<h2>Choose Your Name</h2>
<input
type="text"
name="playername"
id="player-name"
value="Player Name"
/>
<div id="buttons">
<button type="button" id="cancel">Cancel</button>
<button type="button" id="confirm">Confirm</button>
</div>
</form>
</section>
<div id="start"><a href="#gameplay">Start New Game</a></div>
<section id="gameplay">
<p id="turn">Start <strong id="player-turn">player1</strong></p>
<ul id="playground">
<div class="game-place" id="1"></div>
<div class="game-place" id="2"></div>
<div class="game-place" id="3"></div>
<div class="game-place" id="4"></div>
<div class="game-place" id="5"></div>
<div class="game-place" id="6"></div>
<div class="game-place" id="7"></div>
<div class="game-place" id="8"></div>
<div class="game-place" id="9"></div>
</ul>
</section>
<section id="game-result">
<div id="results">
<h2 id="win">You Won, </h2>
<p>
<span id="player-x"></span><span id="result"> : </span
><span id="player-o"></span>
</p>
<ul id="next-game">
<li>
<button id="rematch">Rematch</button>
<a href="/"><button id="config" href="/">Change Players</button></a>
</li>
</ul>
</div>
</section>
</main>
</body>
</html>