generated from BurlingtonCodeAcademy/tic-tac-toe-www
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
75 lines (73 loc) · 2.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="style.css" type="text/css" />
<title>Tic Tac Toe</title>
</head>
<body>
<div class="wrap">
<div id="container">
<h2>Tic Tac Toe</h2>
<div id="gameDisplay" style="display: none">
<!--Game Info-->
<p id="currentTurn"></p>
<p id="timePlayed">
Time Elapsed <span id="timeCounted"> 0:00:00 </span> seconds
</p>
<!--Game Board-->
<div class="board">
<div id="row-1">
<div class="cell" id="cell-0"></div>
<div class="cell" id="cell-1"></div>
<div class="cell" id="cell-2"></div>
</div>
<div id="row-2">
<div class="cell" id="cell-3"></div>
<div class="cell" id="cell-4"></div>
<div class="cell" id="cell-5"></div>
</div>
<div id="row-3">
<div class="cell" id="cell-6"></div>
<div class="cell" id="cell-7"></div>
<div class="cell" id="cell-8"></div>
</div>
</div>
</div>
<div class="status">
<!--Buttons-->
<button id="start" onclick="startGame()" type="button">
Start Game
</button>
<button id="reset" onclick="reset()" type="button">Reset Game</button>
<div id="pregameInput">
<!--Input for game settings-->
<div class = 'combo'>
<input type="radio" id="vs player" name="Player" value="" checked/>
<label for="vs player"> Player vs Player </label>
</div>
<div class = 'combo'>
<input type="radio" id="vs computer" name="Player" value="" />
<label for="vs computer"> Player vs Computer </label>
</div>
<input
type="text"
id="player 1"
name="name"
placeholder="Player 1 Name"
/>
<input
type="text"
id="player 2"
name="name"
placeholder="Player 2 Name"
/>
</div>
</div>
</div>
</div>
<script src="main.js"></script>
</body>
</html>