-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (52 loc) · 2.11 KB
/
index.html
File metadata and controls
61 lines (52 loc) · 2.11 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Tic Tac Toe</title>
</head>
<body>
<div class="container">
<h1>Tic Tac Toe</h1>
<div class="setup-screen">
<div class="players">
<div id="player1">
<label for="player1-name">Player 1: X</label><br><br>
<input required type="text" id="player1-name" placeholder="Player 1 Name" value="Player 1">
</div>
<div id="player2">
<label for="player2-name">Player 2: O</label><br><br>
<input required type="text" id="player2-name" placeholder="Player 2 Name" value="Player 2">
</div>
<div>
<button id="startBtn" class="btn">Start Game</button>
</div>
</div>
</div>
<div class="game-screen hidden">
<div class="winner"></div>
<div class="playersName">
<div id="player1X">Player 1</div>
<div id="player2O">Player 2</div>
</div>
<div class="board">
<div class="cell left-cell top-cell"></div>
<div class="cell middle-cell top-cell"></div>
<div class="cell right-cell top-cell"></div>
<div class="cell left-cell"></div>
<div class="cell middle-cell"></div>
<div class="cell right-cell"></div>
<div class="cell left-cell bottom-cell"></div>
<div class="cell middle-cell bottom-cell"></div>
<div class="cell right-cell bottom-cell"></div>
</div>
<div class="game-btns">
<button id="playAgainBtn" class="btn">Play Again</button>
<button id="resetBtn" class="btn">Reset</button>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>