-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
208 lines (192 loc) · 12.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chess Ultimate</title>
<!-- Favicon -->
<link rel="icon" href="assets/ico/logo.ico" type="image/x-icon">
<link rel="icon" href="assets/logo/logo.png" type="image/png">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<!-- 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=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<!-- Chess CSS -->
<link rel="stylesheet" href="css/chess_styles.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container">
<a class="navbar-brand" href="#" data-i18n="title">Chess Ultimate</a>
<div class="ms-auto d-flex align-items-center">
<div class="dropdown me-3">
<button class="nav-btn dropdown-toggle" type="button" id="languageDropdown" data-bs-toggle="dropdown" aria-expanded="false">
<i class="fas fa-language"></i>
</button>
<ul class="dropdown-menu" aria-labelledby="languageDropdown">
<li><a class="dropdown-item" href="#" data-lang="en">English</a></li>
<li><a class="dropdown-item" href="#" data-lang="es">Español</a></li>
<li><a class="dropdown-item" href="#" data-lang="fr">Français</a></li>
<li><a class="dropdown-item" href="#" data-lang="de">Deutsch</a></li>
<li><a class="dropdown-item" href="#" data-lang="ja">日本語</a></li>
<li><a class="dropdown-item" href="#" data-lang="ko">한국어</a></li>
<li><a class="dropdown-item" href="#" data-lang="zh">中文</a></li>
</ul>
</div>
<div class="dropdown me-3">
<button class="nav-btn dropdown-toggle" type="button" id="colorSchemeDropdown" data-bs-toggle="dropdown" aria-expanded="false">
<i class="fas fa-palette"></i>
</button>
<ul class="dropdown-menu" aria-labelledby="colorSchemeDropdown">
<li><a class="dropdown-item" href="#" data-scheme="blue" data-i18n="cs_blue">Blue</a></li>
<li><a class="dropdown-item" href="#" data-scheme="green" data-i18n="cs_green">Green</a></li>
<li><a class="dropdown-item" href="#" data-scheme="red" data-i18n="cs_red">Red</a></li>
<li><a class="dropdown-item" href="#" data-scheme="purple" data-i18n="cs_purple">Purple</a></li>
<li><a class="dropdown-item" href="#" data-scheme="orange" data-i18n="cs_orange">Orange</a></li>
<li><a class="dropdown-item" href="#" data-scheme="teal" data-i18n="cs_teal">Teal</a></li>
<li><a class="dropdown-item" href="#" data-scheme="pink" data-i18n="cs_pink">Pink</a></li>
<li><a class="dropdown-item" href="#" data-scheme="brown" data-i18n="cs_brown">Brown</a></li>
<li><a class="dropdown-item" href="#" data-scheme="gray" data-i18n="cs_gray">Gray</a></li>
<li><a class="dropdown-item" href="#" data-scheme="blackwhite" data-i18n="cs_blackwhite">Black & White</a></li>
<li><a class="dropdown-item" href="#" data-scheme="rainbow" data-i18n="cs_rainbow">Rainbow</a></li>
<li><a class="dropdown-item" href="#" data-scheme="rainbow-soft" data-i18n="cs_rainbow_soft">Rainbow-Soft</a></li>
<li><a class="dropdown-item" href="#" data-scheme="sunset" data-i18n="cs_sunset">Sunset</a></li>
<li><a class="dropdown-item" href="#" data-scheme="forest" data-i18n="cs_forest">Forest</a></li>
<li><a class="dropdown-item" href="#" data-scheme="ocean" data-i18n="cs_ocean">Ocean</a></li>
<li><a class="dropdown-item" href="#" data-scheme="candy" data-i18n="cs_candy">Candy</a></li>
<li><a class="dropdown-item" href="#" data-scheme="galaxy" data-i18n="cs_galaxy">Galaxy</a></li>
<li><a class="dropdown-item" href="#" data-scheme="lava" data-i18n="cs_lava">Lava</a></li>
<li><a class="dropdown-item" href="#" data-scheme="ice" data-i18n="cs_ice">Ice</a></li>
<li><a class="dropdown-item" href="#" data-scheme="metallic" data-i18n="cs_metallic">Metallic</a></li>
<li><a class="dropdown-item" href="#" data-scheme="pastel" data-i18n="cs_pastel">Pastel</a></li>
<li><a class="dropdown-item" href="#" data-scheme="vintage" data-i18n="cs_vintage">Vintage</a></li>
<li><a class="dropdown-item" href="#" data-scheme="space" data-i18n="cs_space">Space</a></li>
</ul>
</div>
<div class="dropdown me-3">
<button class="nav-btn dropdown-toggle" type="button" id="pieceStyleDropdown" data-bs-toggle="dropdown" aria-expanded="false">
<i class="fas fa-chess"></i>
</button>
<ul class="dropdown-menu" aria-labelledby="pieceStyleDropdown">
<li><a class="dropdown-item" href="#" data-style="unicode" data-i18n="ps_unicode">Unicode</a></li>
<li><a class="dropdown-item" href="#" data-style="classic" data-i18n="ps_classic">Classic</a></li>
<li><a class="dropdown-item" href="#" data-style="modern" data-i18n="ps_modern">Modern</a></li>
<li><a class="dropdown-item" href="#" data-style="aesthetic" data-i18n="ps_aesthetic">Aesthetic</a></li>
<li><a class="dropdown-item" href="#" data-style="pixel" data-i18n="ps_pixel">Pixel</a></li>
<li><a class="dropdown-item" href="#" data-style="_3d_BW" data-i18n="ps_3d_BW">Brown & White 3D</a></li>
<li><a class="dropdown-item" href="#" data-style="_2d_BW" data-i18n="ps_2d_BW">Brown & White 2D</a></li>
</ul>
</div>
<button id="settings-btn" class="nav-btn me-3">
<i class="fas fa-cog"></i>
</button>
<button id="toggle-info" class="nav-btn me-3">
<i class="fas fa-info-circle"></i>
</button>
<a href="https://github.com/voxdroid" target="_blank" class="github-link">
<i class="fab fa-github"></i> <span data-i18n="createdBy">Created by voxdroid</span>
</a>
</div>
</div>
</nav>
<div id="landing-page">
<h1 data-i18n="title" class="landing-page-transition">Chess Ultimate</h1>
<img src="assets/logo/logo.png" alt="Chess Ultimate Logo" id="game-logo" class="landing-page-transition" height="400" width="400">
<button id="play-button" class="btn btn-light btn-lg mt-4 btn-hover-animation landing-page-transition" data-i18n="play">Play Game</button>
</div>
<div id="game-container" class="container-fluid">
<div id="board-and-captured-container">
<div id="board-container">
<div id="rank-labels"></div>
<div id="chessboard-wrapper">
<div id="chessboard"></div>
<div id="file-labels"></div>
</div>
</div>
<div id="captured-pieces">
<div id="white-captured" class="captured-piece-container">
<div class="captured-piece-header" data-i18n="whiteCaptured">White Captured</div>
<div class="captured-pieces-list"></div>
</div>
<div id="black-captured" class="captured-piece-container">
<div class="captured-piece-header" data-i18n="blackCaptured">Black Captured</div>
<div class="captured-pieces-list"></div>
</div>
</div>
</div>
<div id="game-info" class="hidden">
<button id="game-info-toggle"><</button>
<div id="timer-container">
<div id="white-timer" class="timer"></div>
<div id="black-timer" class="timer"></div>
</div>
<div id="move-history">
<table>
<thead>
<tr>
<th>#</th>
<th data-i18n="white">White</th>
<th data-i18n="black">Black</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<div id="analysis-bar">
<div id="analysis-progress"></div>
</div>
<div id="controls">
<button id="start-timer" class="btn btn-primary control-btn btn-hover-animation" data-i18n="startTimer">Start Timer</button>
<button id="new-game" class="btn btn-primary control-btn btn-hover-animation" data-i18n="newGame">New Game</button>
<button id="undo-move" class="btn btn-primary control-btn btn-hover-animation" data-i18n="undoMove">Undo Move</button>
<button id="redo-move" class="btn btn-primary control-btn btn-hover-animation" data-i18n="redoMove">Redo Move</button>
<button id="flip-board" class="btn btn-primary control-btn btn-hover-animation" data-i18n="flipBoard">Flip Board</button>
<button id="ai-move" class="btn btn-primary control-btn btn-hover-animation" data-i18n="aiMove">AI Move</button>
</div>
</div>
</div>
<div id="promotion-modal">
<div id="promotion-choices"></div>
</div>
<div id="notification"></div>
<div id="settings-modal">
<div id="settings-content">
<h2 data-i18n="settings">Settings</h2>
<div class="form-check form-switch mb-3">
<input class="form-check-input" type="checkbox" id="show-labels" checked>
<label class="form-check-label" for="show-labels" data-i18n="showLabels">Show board labels</label>
</div>
<div class="mb-3">
<label for="board-size" class="form-label" data-i18n="boardSize">Board size</label>
<div class="d-flex align-items-center">
<button id="decrease-size" class="btn btn-secondary me-2">-</button>
<input type="range" class="form-range" min="50" max="100" value="80" id="board-size">
<button id="increase-size" class="btn btn-secondary ms-2">+</button>
</div>
</div>
<div class="mb-3">
<label for="animation-speed" class="form-label" data-i18n="animationSpeed">Animation Speed</label>
<input type="range" class="form-range" min="0.1" max="2" step="0.1" value="1" id="animation-speed">
</div>
<div class="form-check form-switch mb-3">
<input class="form-check-input" type="checkbox" id="sound-effects" checked>
<label class="form-check-label" for="sound-effects" data-i18n="soundEffects">Sound Effects</label>
</div>
<button id="close-settings" class="btn btn-primary btn-hover-animation" data-i18n="close">Close</button>
</div>
</div>
<div id="particles-js"></div>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<!-- Customization JS -->
<script src="js/chess_color_themes.js"></script>
<!-- Localization JS -->
<script src="js/localization.js"></script>
<!-- Main Chess JS -->
<script src="js/chess_script.js"></script>
</body>
</html>