-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (47 loc) · 1.96 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
<!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="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Bungee+Shade&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Damion&display=swap" rel="stylesheet">
</head>
<body>
<h1 id="title">Tic Tac Toe</h1>
<div id="score-boxes">
<div class="score" id="score-box1">PLAYER 1 WINS
<div id="player1-score"></div>
</div>
<button class="btn" id="play-again-btn">PLAY AGAIN</button>
<button class="btn" id="reset-btn">RESET GAME</button>
<div class="score" id="score-box2">PLAYER 2 WINS
<div id="player2-score"></div>
</div>
</div>
<div id="board-background">
<form id='myForm' required>
<input type='text' value="" class="name-space" id="name-space-1" name="name-space-1" placeholder="PLAYER 1" autocomplete="off">
<input type="submit" id="submit-button" value="SUBMIT">
<input type='text' value="" class="name-space"id='name-space-2' name="name-space-2" placeholder="PLAYER 2" autocomplete="off">
</form>
<div id="center-Players-Turn">
<span id="players-winner"></span>
<span id="players-name"></span>
</div>
<div id="board">
<div data-number = "0" class="cell left-side top"></div>
<div data-number = "1" class="cell top"></div>
<div data-number = "2" class="cell right-side top"></div>
<div data-number = "3" class="cell left-side"></div>
<div data-number = "4" class="cell "></div>
<div data-number = "5" class="cell right-side"></div>
<div data-number = "6" class="cell bottom left-side"></div>
<div data-number = "7" class="cell bottom"></div>
<div data-number = "8" class="cell bottom right-side"></div>
</div>
</div>
<script type="module" src="main.js"></script>
</body>
</html>