-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (74 loc) · 3.12 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 lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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=Source+Code+Pro&display=swap" rel="stylesheet">
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="styles.css">
<title>TicTacToe</title>
</head>
<body>
<div class="content">
<h1 class="title">Tic Tac Toe</h1>
<h3 class="displayTurn">Player 1's Turn</h3>
<div class="buttons">
<div id="resetBtn" class="btn">Reset Game</div>
<div id="restartBtn" class="btn">New Game</div>
</div>
<div class="gameWrapper">
<div class="gameboard">
<div class="box" id="0"></div>
<div class="box" id="1"></div>
<div class="box" id="2"></div>
<div class="box" id="3"></div>
<div class="box" id="4"></div>
<div class="box" id="5"></div>
<div class="box" id="6"></div>
<div class="box" id="7"></div>
<div class="box" id="8"></div>
</div>
</div>
</div>
<div class="modal">
<div class="modal-content">
<span class="close"></span>
<p class="result"></p>
</div>
</div>
<div class="modal-wrapper">
<div id="initialForm" class="modal">
<!-- Initial Popup Content -->
<div class="front-content">
<form autocomlete="off" id="myForm" class="formClass">
<div class="inputField">
<label class="input-label">Player 1 (X): </label>
<input type="text" placeholder="enter a name" name="player1Name" class="formClass" id="form1" required/>
<label class="input-label">Player 2 (O): </label>
<input type="text" placeholder="enter a name" name="player2Name" class="formClass" id="form2" value="Comp" required/>
</div>
<div class="inputField">
<label for="1v1" class="Title container">Human vs Human</label>
<input type="radio" id="1v1" name="choice" value="0" required>
</div>
<div class="inputField">
<label for="ai" class="Title">Human vs EasyAI</label>
<input type="radio" id="ai" name="choice" value="1" required>
</div>
<!-- <div class="inputField">
<label for="ai" class="Title">Human vs HardAI</label>
<input type="radio" id="aiHard" name="choice" value="2" required>
</div> -->
<div class="flex">
<button class="startButton btn" type="submit">Start Game</button>
</div>
</form>
</div>
</div>
</div>
</body>
<script src="script.js"></script>
</html>