-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (63 loc) · 2.78 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Cedarville+Cursive&display=swap" rel="stylesheet">
<title>SuperTgo Tic Tac Toe</title>
</head>
<body>
<h1>Tic Tac Toe</h1>
<h2>Play With:</h2>
<div id="choiceBtns">
<input type="button" value="Two players" id="pp" >
<input type="button" value="AI Player" id="ai">
</div>
<div id="players">
<div id="player1">
<p id="scoreNameP1">Player:</p>
<p id="scoreP1">Score:</p>
</div>
<div id="player2">
<p id="scoreNameP2">Player:</p>
<p id="scoreP2">Score:</p>
</div>
</div>
<button id="reloadBtn">Go Back</button>
<main>
<div id="container">
<input type="button" class="gameButtons" id="1" value="">
<input type="button" class="gameButtons" id="2" value="">
<input type="button" class="gameButtons" id="3" value="">
<input type="button" class="gameButtons" id="4" value="">
<input type="button" class="gameButtons" id="5" value="">
<input type="button" class="gameButtons" id="6" value="">
<input type="button" class="gameButtons" id="7" value="">
<input type="button" class="gameButtons" id="8" value="">
<input type="button" class="gameButtons" id="9" value="">
</div>
<button id="restartBtn"> Restart <img src="https://img.icons8.com/metro/26/000000/restart.png" id="imgRestart"/> </button>
</main>
<div id="popUp">
<form>
<label for="popUpP1">Player1</label>
<input type="text" name="" id="popUpP1" required placeholder="Enter Name" autocomplete="off">
<br>
<label for="popUpP2">Player2</label>
<input type="text" name="" id="popUpP2" required placeholder="Enter Name" autocomplete="off" >
<br>
<input type="button" value="submit" id="submit">
</form>
</div>
<section>
<div id="winnerCard">
<h3 id="winner"></h3>
<img src="images/trophy.png" alt="" id="imgTrophy">
</div>
</section>
<div id = "footer"><a href="https://github.com/supertgo/TicTacToe" target="_blank"><p>SuperTgo</p></a></div>
<script type="text/javascript" src="script.js"></script>
</body>
</html>