-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
397 lines (377 loc) · 15.7 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
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Chess-Openings</title>
<!-- ================ FAVICON ============================-->
<link
rel="icon"
type="image/x-icon"
href="./images/pieces/white/queen.png"
/>
<!--================== BOOTSTRAP ========================-->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css"
/>
<!--======================= MATERIAL ICONS ======================-->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"
/>
<!--======================= GOOGLE FONTS =========================-->
<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=Roboto:wght@400;700&display=swap"
rel="stylesheet"
/>
<!--===================== CSS ===============================-->
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="bg"></div>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"
></script>
<!--=============== HEADER ===============-->
<header class="header">
<div class="nav__container">
<div class="nav__data">
<h1 class="title">CHESS OPENINGS</h1>
<div class="hamburger nav-toggle" id="nav-toggle">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
</div>
<!--=============== NAV MENU ===============-->
<div class="nav__menu" id="nav-menu">
<ul class="nav__list">
<li class="dropdown__item">
<div class="nav__link font-medium" id="nav-link-1">
Extra Options
<span class="material-symbols-outlined dropdown__arrow">
expand_more
</span>
</div>
<ul class="dropdown__menu font-medium">
<li>
<button class="dropdown__link" id="orientation-button">
<i
class="material-symbols-outlined"
id="orientation-btn-icon"
>chess</i
>
Orientation
</button>
</li>
<li>
<button class="dropdown__link" id="sound-button">
<i class="material-symbols-outlined" id="sound-btn-icon"
>volume_up</i
>
Volume
</button>
</li>
<li>
<span
class="tt"
data-bs-placement="bottom"
data-bs-toggle="tooltip"
title="For Play Mode Only"
>
<button class="dropdown__link" id="speed-button">
<i
class="material-symbols-outlined speed"
id="speed-btn-icon"
>speed</i
>
Speed
</button>
</span>
</li>
</ul>
</li>
<li class="nav__link" id="nav-link-2">
<a id="dark-mode-toggle" class="dark-mode-toggle">
<svg
width="100%"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 496 496"
>
<path
fill="currentColor"
d="M8,256C8,393,119,504,256,504S504,393,504,256,393,8,256,8,8,119,8,256ZM256,440V72a184,184,0,0,1,0,368Z"
transform="translate(-8 -8)"
/>
</svg>
</a>
</li>
</ul>
</div>
</div>
</header>
<main>
<!--=========================== DIALOG =========================-->
<dialog class="dialog font-medium" id="dialog"></dialog>
<!--=========================== MEGA CONTAINER ==================-->
<div class="mega-container">
<a class="btn choose-opening font-medium" id="choose-opening"
>Traditional Openings</a
>
<div class="accordion">
<div class="accordion-flush" id="accordionFlushExample">
<div class="accordion-item funny hidden" id="opening1">
<h2 class="accordion-header" id="flush-headingOne">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#flush-collapseOne"
aria-expanded="false"
aria-controls="flush-collapseOne"
data-name="opening1"
>
The Toilet Variation
</button>
</h2>
<div
id="flush-collapseOne"
class="accordion-collapse collapse"
aria-labelledby="flush-headingOne"
data-bs-parent="#accordionFlushExample"
>
<div class="accordion-body">
Legend has it that this opening was conceived by a Sicilian
Grand Prix player in the restroom: hence its crappy name. It
doesn't help that the Toilet Variation quickly flushes away
any advantage White could hope for out of the opening.
</div>
</div>
</div>
<div class="accordion-item funny hidden" id="opening2">
<h2 class="accordion-header" id="flush-headingTwo">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#flush-collapseTwo"
aria-expanded="false"
aria-controls="flush-collapseTwo"
data-name="opening2"
>
The Monkey's Bum
</button>
</h2>
<div
id="flush-collapseTwo"
class="accordion-collapse collapse"
aria-labelledby="flush-headingTwo"
data-bs-parent="#accordionFlushExample"
>
<div class="accordion-body">
This aggressive opening grew out of a desire to crack open the
Modern Defense. The British IM Nigel Povah invented the
opening in the early 1970s. He showed the moves to his friend
Ken Coates, who proclaimed "if this works, then I'm a monkey's
bum." The name stuck and the opening is still highly playable!
</div>
</div>
</div>
<div class="accordion-item funny hidden" id="opening3">
<h2 class="accordion-header" id="flush-headingThree">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#flush-collapseThree"
aria-expanded="false"
aria-controls="flush-collapseThree"
data-name="opening3"
>
The Frankenstein-Dracula Variation
</button>
</h2>
<div
id="flush-collapseThree"
class="accordion-collapse collapse"
aria-labelledby="flush-headingThree"
data-bs-parent="#accordionFlushExample"
>
<div class="accordion-body">
This sharp variation of the Vienna Game is not for the faint
of heart. Though it's not the most ambitious positional line,
it is playable at high levels of chess, and was used by Alexei
Shirov in exhibition games. The chess author Tim Harding
considered this opening so violent that "a game between
Dracula and the Frankenstein monster would not seem out of
place."
</div>
</div>
</div>
<div class="accordion-item traditional" id="opening4">
<h2 class="accordion-header" id="flush-headingFour">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#flush-collapseFour"
aria-expanded="false"
aria-controls="flush-collapseFour"
data-name="opening4"
>
The Italian Game
</button>
</h2>
<div
id="flush-collapseFour"
class="accordion-collapse collapse"
aria-labelledby="flush-headingFour"
data-bs-parent="#accordionFlushExample"
>
<div class="accordion-body">
The Italian Game is one of the oldest openings in chess and
has been around for centuries. This classical 1.e4 opening can
lead to slower and positional games as well as open, tactical
battles. Although very common among beginners, the Italian
Game is a part of the repertoire of players of every level.
</div>
</div>
</div>
<div class="accordion-item traditional" id="opening5">
<h2 class="accordion-header" id="flush-headingFive">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#flush-collapseFive"
aria-expanded="false"
aria-controls="flush-collapseFive"
data-name="opening5"
>
Ruy López Opening
</button>
</h2>
<div
id="flush-collapseFive"
class="accordion-collapse collapse"
aria-labelledby="flush-headingFive"
data-bs-parent="#accordionFlushExample"
>
<div class="accordion-body">
The Ruy Lopez (also known as the Spanish Opening or Spanish
Game) is one of the oldest and most analyzed openings in chess
history. Most of the world's top players have adopted this
rich opening as part of their repertoire, and many of them
play it with both colors. Despite having a large amount of
theory, it is an opening that players of all levels can enjoy.
</div>
</div>
</div>
<div class="accordion-item traditional" id="opening6">
<h2 class="accordion-header" id="flush-headingSix">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#flush-collapseSix"
aria-expanded="false"
aria-controls="flush-collapseSix"
data-name="opening6"
>
The Sicilian Defense
</button>
</h2>
<div
id="flush-collapseSix"
class="accordion-collapse collapse"
aria-labelledby="flush-headingSix"
data-bs-parent="#accordionFlushExample"
>
<div class="accordion-body">
The Sicilian Defense is the most popular response to White's
1.e4. Employed by masters and beginners alike, the Sicilian
Defense is a reputable and positionally sound opening. Still,
the Sicilian is a combative opening that tends to lead to
dynamic and sharp positions.
</div>
</div>
</div>
<div class="accordion-item funny hidden" id="opening7">
<h2 class="accordion-header" id="flush-headingSeven">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#flush-collapseSeven"
aria-expanded="false"
aria-controls="flush-collapseSeven"
data-name="opening7"
>
The Bongcloud Attack
</button>
</h2>
<div
id="flush-collapseSeven"
class="accordion-collapse collapse"
aria-labelledby="flush-headingSeven"
data-bs-parent="#accordionFlushExample"
>
<div class="accordion-body">
The Bongcloud Attack is considered a joke opening and is
associated with internet chess humor. Twitch streamers such as
grandmaster (GM) Hikaru Nakamura have used it in online blitz
chess, including in games against high-level opponents, as has
former world champion Magnus Carlsen.
</div>
</div>
</div>
</div>
</div>
<div class="extended-chess-board">
<div class="chess-board" id="chess-board"></div>
<div class="container3">
<div class="btn-group" role="group">
<button class="btn play-controls" id="prev-button">
<i class="bi bi-arrow-left-circle-fill"></i>
</button>
<button class="btn play-controls" id="play-button">
<i class="bi bi-play-circle-fill play-btn-icon"></i>
</button>
<button class="btn play-controls" id="next-button">
<i class="bi bi-arrow-right-circle-fill"></i>
</button>
</div>
<div class="test-area">
<button
class="test-yourself btn font-medium"
id="test-yourself-button"
>
Test Yourself
</button>
<button
class="btn hint btn-danger font-medium"
id="hint-button"
></button>
</div>
</div>
</div>
<article class="tutorial">
<h2 class="h2-tutorial font-medium" id="h2-tutorial"></h2>
<div><ol class="font-medium" id="tutorial-text"></ol></div>
</article>
</div>
</main>
<script src="./script.js" type="module"></script>
</body>
</html>