-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
106 lines (98 loc) · 3.31 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!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="stylesheet" href="style.css">
<script src="main.js" defer></script>
<title>Tic Tac Toe</title>
</head>
<body>
<div id="new-view" class="">
<div class="flow-container flow-column">
<div class="flow-container">
<h1>TIC TAC TOE</h1>
</div>
<div class="flow-container">
<div class="flow-container flow-column">
<h2>Player 1:</h2>
<div class="flow-container flow-column">
<label for="player-x-name">Name:</label>
<input type="text" name="player-x-name" id="player-x-name" value="Player 1">
</div>
<div class="flow-container flow-column">
<label for="player-x-type">Type:</label>
<select name="player-x-type" id="player-x-type">
<option value="Computer">Computer</option>
<option value="Human" selected>Human</option>
</select>
</div>
</div>
<div class="flow-container flow-column">
<h2>Player 2:</h2>
<div class="flow-container flow-column">
<label for="player-o-name">Name:</label>
<input type="text" name="player-o-name" id="player-o-name" value="Player 2">
</div>
<div class="flow-container flow-column">
<label for="player-o-type">Type:</label>
<select name="player-o-type" id="player-o-type">
<option value="Computer" selected>Computer</option>
<option value="Human">Human</option>
</select>
</div>
</div>
</div>
<div class="flow-container">
<button id="start-button">Start</button>
</div>
</div>
</div>
<div id="game-view" class="hidden">
<div class="flow-container flow-column">
<div class="flow-container">
<div class="flow-container flow-stretch">
<h1 id="player-x-title">
<span class="player-name">Player 1</span>:
</h1>
</div>
<div class="flow-container flow-stretch">
<h1 id="player-o-title">
<span class="player-name">Player 2</span>:
</h1>
</div>
</div>
<div class="flow-container">
<div class="board-grid">
<div class="cell" data-row="0" data-column="0"></div>
<div class="cell" data-row="0" data-column="1"></div>
<div class="cell" data-row="0" data-column="2"></div>
<div class="cell" data-row="1" data-column="0"></div>
<div class="cell" data-row="1" data-column="1"></div>
<div class="cell" data-row="1" data-column="2"></div>
<div class="cell" data-row="2" data-column="0"></div>
<div class="cell" data-row="2" data-column="1"></div>
<div class="cell" data-row="2" data-column="2"></div>
</div>
</div>
<div class="flow-container">
<button id="quit-button">Quit</button>
<button id="reset-button">Reset</button>
</div>
</div>
</div>
<div id="end-view" class="hidden">
<div class="flow-container flow-column">
<div class="flow-container">
<h1 id="win-message">
<span class="player-name"></span> Wins!
</h1>
</div>
<div class="flow-container">
<button id="new-button">New Game</button>
</div>
</div>
</div>
</body>
</html>