-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
201 lines (190 loc) · 6.68 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tic Tac Toe</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css">
<link href="style/style.css" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="assest/favicon/tic-tac-toe.png" />
</link>
</head>
<body>
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="#">
<i class="fa-solid fa-gamepad">
Odin Tic
</i>
</a>
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="https://www.theodinproject.com">
Odin
</a>
<a class="navbar-item" href="https://www.theodinproject.com/lessons/javascript-tic-tac-toe">
Documentation
</a>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link">
More
</a>
<div class="navbar-dropdown">
<a class="navbar-item" href="https://theodinproject.com">
Odin
</a>
<a class="navbar-item" href="https://bulma.io">
Bulma
</a>
<hr class="navbar-divider">
<a class="navbar-item" href="https://github.com/i4pg/tic-tac-toe/issues/new/choose">
Report an issue
</a>
</div>
</div>
</div>
<div class="navbar-end">
<div class="navbar-item">
<div class="buttons">
<button id="restart" type="button" class="button is-outlined is-link">Restart</button>
<button class="button">
<span class="icon">
<i class="fab fa-github"></i>
</span>
<a href="https://github.com/i4pg" class="has-text-black">
<span>GitHub</span>
</a>
</button>
</button>
<button class="button is-primary">
<span class="icon">
<i class="fab fa-twitter"></i>
</span>
<a href="https://twitter.com/wiyih" class="has-text-white">
<span>Twitter</span>
</a>
</button>
<a class="button is-light" id="new-game">
<span class="icon">
<i class="fa-solid fa-plus"></i>
</span>
<span>New Game</span>
</a>
</div>
</div>
</div>
</div>
</nav>
<section class="hero is-medium">
<div class="hero-body">
<p class="title">
</p>
<p class="subtitle">
</p>
</div>
</section>
<section class="section">
<div class="container">
<div id="timer" class="content column is-three-fifths is-offset-one-fifth">
<h2></h2>
<progress class="progress" max="100">15%</progress>
</div>
<div class="columns is-desktop is-multiline" id="middle">
<div id="form" class="column is-three-fifths is-offset-one-fifth">
<div class="field is-horizontal">
<div class="field-label is-normal">
<label class="label">New Game</label>
</div>
<div class="field-body">
<div class="field">
<p class="control is-expanded has-icons-left">
<input class="input" type="text" placeholder="Player 1 Name">
<span class="has-text-info icon is-small is-left">
X
</span>
</p>
<p class="help">Leave it empty to play with the computer</p>
</div>
<div class="field">
<p class="control is-expanded has-icons-left has-icons-right">
<input class="input" type="email" placeholder="Player 2 Name">
<span class="has-text-danger icon is-small is-left">
O
</span>
</p>
<p class="help">Leave it empty to play with the computer</p>
</div>
</div>
</div>
<hr>
<div class="field-body">
<div class="field">
<div class="control">
<button class="is-rounded button is-responsive is-fullwidth is-success" id="start">
<span class="icon is-small">
<i class="fas fa-check"></i>
</span>
<span>START</span>
</button>
</div>
</div>
</div>
</div>
<div id="stats-left" class="column columns content">
<h2 class="column"></h2>
<h2 class="column"></h2>
</div>
<div id="board" class="column is-four-fifths">
<table class="table is-bordered is-striped is-hoverable is-fullwidth has-text-centered">
<tbody>
<td>_</td>
<td>_</td>
<td>_</td>
</tbody>
<tbody>
<td>_</td>
<td>_</td>
<td>_</td>
</tbody>
<tbody>
<td>_</td>
<td>_</td>
<td>_</td>
</tbody>
</table>
</div>
<div id="stats-right" class="column columns content">
<h2 class="column"></h2>
<h2 class="column"></h2>
</div>
</div>
</div>
</section>
<footer class="footer">
<div class="content has-text-centered">
<a href="https://bulma.io">
<img src="https://bulma.io/images/made-with-bulma.png" alt="Made with Bulma" width="128" height="24">
</a>
<p>
<strong>Tic Tac Toe</strong> by <a href="https://github.com/i4pg">Abdullah Alattas</a>. The source code is
licensed
<a href="http://opensource.org/licenses/mit-license.php">MIT</a>. The website content
is licensed <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY NC SA 4.0</a>.
</p>
</div>
</footer>
<script src="scripts/navbar_toggle.js"></script>
<script src="scripts/board.js"></script>
<script src="scripts/player.js"></script>
<script src="scripts/gameAPI.js"></script>
<script src="scripts/form.js"></script>
<script src="scripts/game.js"></script>
</body>
</html>