-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
336 lines (330 loc) · 13.2 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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" >
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable = no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title>3D chess</title>
<link rel="stylesheet" type="text/css" media="screen" href="css/styles.css">
<script src="js/prefixfree.min.js"></script>
</head>
<body>
<div id="app" class="loading" data-theme="classic" data-frame="off" data-menu="main">
<div id="logo">
<div class="symbol"><div></div><div></div><div></div><div></div><div></div><div></div></div>
<div class="symbol"><div></div><div></div><div></div><div></div><div></div><div></div></div>
<div class="symbol"><div></div><div></div><div></div><div></div><div></div><div></div></div>
<div class="symbol"><div></div><div></div><div></div><div></div><div></div><div></div></div>
<div class="symbol"><div></div><div></div><div></div><div></div><div></div><div></div></div>
</div>
<div id="overlay"></div>
<div id="menu" class="main">
<img id ="logoimg" src="img/logo.png" alt="hartwig chess set" />
<section id="panes">
<section id="themes" class="pane">
<div id="themes-box">
<div class="set-theme" data-theme="classic"><div class="cube"></div></div>
<div class="set-theme" data-theme="marble"><div class="cube"></div></div>
<div class="set-theme" data-theme="flat"><div class="cube"></div></div>
<div class="set-theme" data-theme="wireframe"><div class="cube"></div></div>
</div>
<input type="checkbox" id="frame-switch" onchange="toggleFrame(this)"/>
<label for="frame-switch" class="btn white switch">Border</label>
<button type="button" class="btn menu-nav" data-menu="main">Back</button>
</section>
<section id="main" class="pane">
<h1>3D chess</h1>
<p>Done by <a href="https://github.com/divyanshudhruv" target="_blank">@divyanshudhruv</a></p>
<button type="button" class="btn white menu-nav" data-menu="themes">Themes
<button type="button" id="continue" class="btn">Play
<button type="button" class="btn white menu-nav" data-menu="about">About
</section>
<section id="about" class="pane">
<h1>About</h1>
<p>Made by <a href="https://github.com/divyanshudhruv" target="_blank">@divyanshudhruv</a></p>
<button type="button" class="btn menu-nav" data-menu="main">Back</button>
</section>
</div>
<div id="top-bar">
<button type="button" class="btn icon" data-state="inactive" id="undo"></button>
<p id="log"></p>
<button type="button" class="btn icon" id="open-menu"></button>
</div>
<div id="container">
<div id="scene">
<div id="table">
<div id="b-jail" class="jail"></div>
<div id="frame"></div>
<table id="board">
<thead>
<tr>
<th></th>
<th><span>a</span></th>
<th><span>b</span></th>
<th><span>c</span></th>
<th><span>d</span></th>
<th><span>e</span></th>
<th><span>f</span></th>
<th><span>g</span></th>
<th><span>h</span></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<th><span>8</span></th>
<td id="a8" class="square"></td>
<td id="b8" class="square"></td>
<td id="c8" class="square"></td>
<td id="d8" class="square"></td>
<td id="e8" class="square"></td>
<td id="f8" class="square"></td>
<td id="g8" class="square"></td>
<td id="h8" class="square"></td>
<th><span>8</span></th>
</tr>
<tr>
<th><span>7</span></th>
<td id="a7" class="square"></td>
<td id="b7" class="square"></td>
<td id="c7" class="square"></td>
<td id="d7" class="square"></td>
<td id="e7" class="square"></td>
<td id="f7" class="square"></td>
<td id="g7" class="square"></td>
<td id="h7" class="square"></td>
<th><span>7</span></th>
</tr>
<tr>
<th><span>6</span></th>
<td id="a6" class="square"></td>
<td id="b6" class="square"></td>
<td id="c6" class="square"></td>
<td id="d6" class="square"></td>
<td id="e6" class="square"></td>
<td id="f6" class="square"></td>
<td id="g6" class="square"></td>
<td id="h6" class="square"></td>
<th><span>6</span></th>
</tr>
<tr>
<th><span>5</span></th>
<td id="a5" class="square"></td>
<td id="b5" class="square"></td>
<td id="c5" class="square"></td>
<td id="d5" class="square"></td>
<td id="e5" class="square"></td>
<td id="f5" class="square"></td>
<td id="g5" class="square"></td>
<td id="h5" class="square"></td>
<th><span>5</span></th>
</tr>
<tr>
<th><span>4</span></th>
<td id="a4" class="square"></td>
<td id="b4" class="square"></td>
<td id="c4" class="square"></td>
<td id="d4" class="square"></td>
<td id="e4" class="square"></td>
<td id="f4" class="square"></td>
<td id="g4" class="square"></td>
<td id="h4" class="square"></td>
<th><span>4</span></th>
</tr>
<tr>
<th><span>3</span></th>
<td id="a3" class="square"></td>
<td id="b3" class="square"></td>
<td id="c3" class="square"></td>
<td id="d3" class="square"></td>
<td id="e3" class="square"></td>
<td id="f3" class="square"></td>
<td id="g3" class="square"></td>
<td id="h3" class="square"></td>
<th><span>3</span></th>
</tr>
<tr>
<th><span>2</span></th>
<td id="a2" class="square"></td>
<td id="b2" class="square"></td>
<td id="c2" class="square"></td>
<td id="d2" class="square"></td>
<td id="e2" class="square"></td>
<td id="f2" class="square"></td>
<td id="g2" class="square"></td>
<td id="h2" class="square"></td>
<th><span>2</span></th>
</tr>
<tr>
<th><span>1</span></th>
<td id="a1" class="square"></td>
<td id="b1" class="square"></td>
<td id="c1" class="square"></td>
<td id="d1" class="square"></td>
<td id="e1" class="square"></td>
<td id="f1" class="square"></td>
<td id="g1" class="square"></td>
<td id="h1" class="square"></td>
<th><span>1</span></th>
</div>
</tbody>
<tfoot>
<tr>
<th></th>
<th><span>a</span></th>
<th><span>b</span></th>
<th><span>c</span></th>
<th><span>d</span></th>
<th><span>e</span></th>
<th><span>f</span></th>
<th><span>g</span></th>
<th><span>h</span></th>
<th></th>
</tr>
</tfoot>
</table>
<div id="w-jail" class="jail"></div>
</div>
<div id="pieces">
<div id="p" class="piece pawn">
<div class="poly-group">
<div class="poly small-cube">
<div class="ft face"></div>
<div class="bk face"></div>
<div class="rt face"></div>
<div class="lt face"></div>
<div class="tp face"></div>
</div>
</div>
</div>
<div id="r" class="piece rook">
<div class="poly-group">
<div class="poly big-cube">
<div class="ft face"></div>
<div class="bk face"></div>
<div class="rt face"></div>
<div class="lt face"></div>
<div class="tp face"></div>
</div>
</div>
</div>
<div id="n" class="piece knight">
<div class="poly-group bottom">
<div class="poly a">
<div class="bk face"></div>
<div class="rt face"></div>
<div class="lt face"></div>
</div>
<div class="poly b">
<div class="ft face"></div>
<div class="tp face"></div>
</div>
<div class="poly c">
<div class="bk face"></div>
<div class="rt face"></div>
<div class="lt face"></div>
</div>
</div>
<div class="poly-group top">
<div class="poly a">
<div class="bk face"></div>
<div class="rt face"></div>
<div class="lt face"></div>
<div class="tp face"></div>
</div>
<div class="poly b">
<div class="ft face"></div>
<div class="tp face"></div>
</div>
<div class="poly c">
<div class="bk face"></div>
<div class="rt face"></div>
<div class="lt face"></div>
</div>
</div>
</div>
<div id="b" class="piece bishop">
<div class="poly-group rectangle a">
<div class="poly">
<div class="rt face"></div>
<div class="lt face"></div>
<div class="tp face"></div>
</div>
</div>
<div class="poly-group rectangle b">
<div class="poly">
<div class="rt face"></div>
<div class="lt face"></div>
<div class="tp face"></div>
</div>
</div>
<div class="poly-group rectangle b prim">
<div class="poly">
<div class="rt face"></div>
<div class="lt face"></div>
<div class="tp face"></div>
</div>
</div>
<div class="poly-group corners a">
<div class="poly big-cube">
<div class="ft face"></div>
<div class="bk face"></div>
<div class="rt face"></div>
<div class="lt face"></div>
</div>
</div>
<div class="poly-group corners b">
<div class="poly big-cube">
<div class="ft face"></div>
<div class="bk face"></div>
<div class="rt face"></div>
<div class="lt face"></div>
</div>
</div>
</div>
<div id="q" class="piece queen">
<div class="poly-group bottom">
<div class="poly big-cube">
<div class="ft face"></div>
<div class="bk face"></div>
<div class="rt face"></div>
<div class="lt face"></div>
<div class="tp face"></div>
</div>
</div>
<div class="poly-group top">
<div class="poly">
<div class="sphere"></div>
</div>
</div>
</div>
<div id="k" class="piece king">
<div class="poly-group bottom">
<div class="poly big-cube">
<div class="ft face"></div>
<div class="bk face"></div>
<div class="rt face"></div>
<div class="lt face"></div>
<div class="tp face"></div>
</div>
</div>
<div class="poly-group top">
<div class="poly small-cube">
<div class="ft face"></div>
<div class="bk face"></div>
<div class="rt face"></div>
<div class="lt face"></div>
<div class="tp face"></div>
</div>
</div>
</div>
</div>
</div>
<div id="promotion"></div>
</div>
</div>
<script src="js/scripts.min.js"></script>
</body>
</html>