forked from SchaleDB/SchaleDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
261 lines (261 loc) · 19.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Schale DB</title>
<meta charset="utf-8">
<meta name="description" content="Schale DB is a database and calculation tool for the mobile game Blue Archive. Available in multiple languages.">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-title" content="Schale DB">
<meta name="application-name" content="Schale DB">
<meta name="theme-color" content="#212529">
<link rel="icon" type="image/svg+xml" href="/favicon.svg?v=1">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=1">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=1">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=1">
<link rel="manifest" href="./manifest.json?v=1" crossorigin="use-credentials">
<link rel="mask-icon" href="/safari-pinned-tab.svg?v=1" color="#00d9fa">
<link rel="shortcut icon" href="/favicon.ico?v=1" sizes="48x48">
<link href="./lib/bootstrap-5.1.3/css/bootstrap.min.css" rel="stylesheet">
<script src="./lib/bootstrap-5.1.3/js/bootstrap.bundle.min.js"></script>
<script src="./lib/jquery/jquery-3.6.0.min.js"></script>
<script src="./lib/popperjs-2.11.6/popper.min.js"></script>
<link href="./lib/fontawesome-free-6.1.1/css/fontawesome.min.css" rel="stylesheet">
<link href="./lib/fontawesome-free-6.1.1/css/solid.min.css" rel="stylesheet">
<link href="./lib/fontawesome-free-6.1.1/css/regular.min.css" rel="stylesheet">
<link href="./lib/fontawesome-free-6.1.1/css/brands.min.css" rel="stylesheet">
<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=Noto+Sans+JP:wght@400;500;700&family=Noto+Sans+KR:wght@400;500;700&family=Noto+Sans+SC:wght@400;500;700&family=Noto+Sans+TC:wght@400;500;700&family=Noto+Sans+Thai:wght@400;500;700&family=Nunito+Sans:ital,wght@0,400;0,600;0,700;1,400;1,700&display=swap" rel="stylesheet">
<link href="css/main.css?v=302" rel="stylesheet">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XQEWDXR13H"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XQEWDXR13H');
</script>
</head>
<body>
<div id="loading-cover">
<noscript class="d-flex justify-content-center text-center mb-1 text-light">Schale DB requires JavaScript in order to function correctly.<br>Please enable JavaScript for this site and reload the page.</noscript>
<div id="loading-spinner" class="d-flex justify-content-center" style="display:none!important;">
<div class="spinner-border text-light" style="width: 4rem; height: 4rem;" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<div id="loading-skipmsg" class="d-flex justify-content-center mt-2 text-center text-light" style="display:none!important;">
<p>Stuck loading? Click <a href="javascript:$('#loading-cover').fadeOut();" class="text-emphasis">here</a> to try and continue anyway.<br>If there is an error in your browser console (Press F12), please report it to @lonqie on Discord or open an issue on <a href="https://github.com/SchaleDB/SchaleDB">GitHub</a>.</p>
</div>
</div>
<div id="ba-background" style="position: fixed;">
</div>
<div id="ba-content" class="container-fluid p-0">
<div id="ba-navbar-placeholder">
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark drop-shadow" style="min-height: 56px;">
<div class="container-xl">
<a id="ba-navbar-logo" class="navbar-logo d-flex align-items-center me-3" onclick="loadModule('home')">
</a>
<div class="dropdown ms-auto order-lg-1">
<a class="btn btn-dark" href="#" id="ba-navbar-settings" role="button" data-bs-toggle="dropdown" data-bs-auto-close="outside" >
<i class="fa-solid fa-gear"></i><span class="d-none ms-2">Settings</span>
</a>
<div id="settings-dropdown-menu" class="dropdown-menu dropdown-menu-end dropdown-menu-dark p-3">
<div class="d-flex align-items-center mb-3">
<span class="flex-fill me-4" data-localize-id="ui,navbar_settings_server"></span>
<span class="d-flex align-items-center">
<div class="dropdown d-inline">
<button id="ba-navbar-regionselector" class="btn btn-sm btn-dark dropdown-toggle" type="button" data-bs-toggle="dropdown"><span></span></button>
<ul class="dropdown-menu dropdown-menu-end dropdown-menu-dark drop-shadow">
<li><a id="ba-navbar-regionselector-0" class="dropdown-item" href="javascript:;" onclick="changeRegion(0)" class="btn btn-dark"><span data-localize-id="ServerName,0"></span></a></li>
<li><a id="ba-navbar-regionselector-1" class="dropdown-item" href="javascript:;" onclick="changeRegion(1)" class="btn btn-dark"><span data-localize-id="ServerName,1"></span></a></li>
<li><a id="ba-navbar-regionselector-2" class="dropdown-item" href="javascript:;" onclick="changeRegion(2)" class="btn btn-dark"><span data-localize-id="ServerName,2"></span></a></li>
</ul>
</div>
</span>
</div>
<div class="d-flex align-items-center mb-1">
<span class="flex-fill me-4" data-localize-id="ui,navbar_settings_language"></span>
<span class="d-flex align-items-center">
<div class="dropdown d-inline">
<button id="ba-navbar-languageselector" class="btn btn-sm btn-dark dropdown-toggle" type="button" data-bs-toggle="dropdown"><span></span></button>
<ul class="dropdown-menu dropdown-menu-end dropdown-menu-dark drop-shadow">
<li><a id="ba-navbar-languageselector-en" class="dropdown-item" href="javascript:;" onclick="changeLanguage('En')" class="btn btn-dark">English</a></li>
<li><a id="ba-navbar-languageselector-jp" class="dropdown-item" href="javascript:;" onclick="changeLanguage('Jp')" class="btn btn-dark">日本語</a></li>
<li><a id="ba-navbar-languageselector-kr" class="dropdown-item" href="javascript:;" onclick="changeLanguage('Kr')" class="btn btn-dark">한국어</a></li>
<li><a id="ba-navbar-languageselector-tw" class="dropdown-item" href="javascript:;" onclick="changeLanguage('Tw')" class="btn btn-dark">繁體中文</a></li>
<li><a id="ba-navbar-languageselector-th" class="dropdown-item" href="javascript:;" onclick="changeLanguage('Th')" class="btn btn-dark">ภาษาไทย</a></li>
<li><a id="ba-navbar-languageselector-cn" class="dropdown-item" href="javascript:;" onclick="changeLanguage('Cn')" class="btn btn-dark">简体中文</a></li>
<li><a id="ba-navbar-languageselector-zh" class="dropdown-item" href="javascript:;" onclick="changeLanguage('Zh')" class="btn btn-dark">简体中文(社区)</a></li>
<!-- <li><a id="ba-navbar-languageselector-vi" class="dropdown-item" href="javascript:;" onclick="changeLanguage('Vi')" class="btn btn-dark">Tiếng Việt (Discontinued)</a></li> -->
</ul>
</div>
</span>
</div>
<div class="text-muted mb-3">
<small data-localize-id="ui,navbar_settings_language_description"></small>
</div>
<div class="d-flex align-items-center mb-1">
<span class="flex-fill me-4" data-localize-id="ui,navbar_settings_theme"></span>
<span class="d-flex align-items-center">
<div id="ba-navbar-themeswitcher" class="btn-group">
<button type="button" id="ba-navbar-themeswitcher-auto" class="btn btn-sm btn-dark" onclick="toggleDarkTheme('auto')">Auto</button>
<button type="button" id="ba-navbar-themeswitcher-light" class="btn btn-sm btn-dark" onclick="toggleDarkTheme('light')"><i class="fa-solid fa-sun px-2"></i></button>
<button type="button" id="ba-navbar-themeswitcher-dark" class="btn btn-sm btn-dark" onclick="toggleDarkTheme('dark')"><i class="fa-solid fa-moon px-2"></i></button>
</div>
</span>
</div>
<div class="text-muted mb-3">
<small data-localize-id="ui,navbar_settings_theme_description"></small>
</div>
<div class="d-flex align-items-center">
<span class="flex-fill me-4" data-localize-id="ui,navbar_settings_contrast"></span>
<span class="d-flex align-items-center">
<div id="ba-navbar-contrast-toggle" class="btn-group">
<button type="button" id="ba-navbar-contrast-toggle-false" class="btn btn-sm btn-dark" onclick="toggleHighContrast(false)" data-localize-id="ui,setting_off"></button>
<button type="button" id="ba-navbar-contrast-toggle-true" class="btn btn-sm btn-dark" onclick="toggleHighContrast(true)" data-localize-id="ui,setting_on"></button>
</div>
</span>
</div>
<div class="text-muted mb-3">
<small data-localize-id="ui,navbar_settings_contrast_description"></small>
</div>
<div class="d-flex align-items-center">
<span class="flex-fill me-4" data-localize-id="ui,navbar_settings_collection"></span>
<span class="d-flex align-items-center">
<div class="btn-group">
<button type="button" id="ba-navbar-collection" class="btn btn-sm btn-dark" data-bs-toggle="modal" data-bs-target="#collection-data-modal" onclick="$('#collection-export-string').val('');" data-localize-id="ui,setting_open"></button>
</div>
</span>
</div>
<div class="text-muted mb-3">
<small data-localize-id="ui,navbar_settings_collection_description"></small>
</div>
<small id="navbar-version" class="text-muted"></small>
</div>
</div>
<button class="btn btn-dark d-lg-none ms-2" type="button" data-bs-toggle="collapse" data-bs-target="#ba-navbar-content"><i class="fa-solid fa-bars"></i></button>
<div class="collapse navbar-collapse" id="ba-navbar-content">
<ul class="navbar-nav my-2 my-lg-0 order-2 order-lg-1">
<li class="nav-item">
<a class="px-3 nav-link" href="https://schaledb.com">
<span class="badge rounded-pill bg-dark me-1">NEW</span>Schale DB <i class="fa-solid fa-external-link"></i>
</a>
</li>
<!-- <li class="nav-item">
<a id="ba-navbar-link-home" class="px-3 nav-link" onclick="loadModule('home')">
<span data-localize-id="ui,navbar_home"></span>
</a>
</li> -->
<li class="nav-item">
<a id="ba-navbar-link-students" class="px-3 nav-link" onclick="loadModule('students')">
<span data-localize-id="ui,navbar_students"></span>
</a>
</li>
<li class="nav-item">
<a id="ba-navbar-link-items" class="px-3 nav-link" onclick="loadModule('items')">
<span data-localize-id="ui,navbar_items"></span>
</a>
</li>
<li class="nav-item">
<a id="ba-navbar-link-craft" class="px-3 nav-link" onclick="loadModule('craft')">
<span data-localize-id="ui,navbar_craft"></span>
</a>
</li>
<li class="nav-item">
<a id="ba-navbar-link-stages" class="px-3 nav-link" onclick="loadModule('stages')">
<span data-localize-id="ui,stages"></span>
</a>
</li>
<li class="nav-item">
<a id="ba-navbar-link-raids" class="px-3 nav-link" onclick="loadModule('raids')">
<span data-localize-id="ui,navbar_raids"></span>
</a>
</li>
</ul>
<ul class="navbar-nav flex-fill me-lg-2 order-1 order-lg-2 mt-3 mt-lg-0">
<div class="position-relative" style="width: 100%;height:38px;display: flex;justify-content: end;">
<div id="navbar-search" class="position-absolute">
<input type="search" class="form-control" style="height: 38px; padding-right: 30px;" id="ba-navbar-search" data-ph-localize-id="ui,search" autocomplete="off">
<i id="navbar-search-icon" class="fa-solid fa-search"></i>
<i id="navbar-search-clear" class="search-clear fa-solid fa-close" data-target="ba-navbar-search" style="display:none;"></i>
<span class="shortcut-hint">/</span>
</div>
<div id="navbar-search-results" style="display: none;">
</div>
</div>
</ul>
</div>
</div>
</nav>
</div>
<div id="loaded-module">
</div>
<div class="modal fade" id="collection-data-modal" tabindex="-1">
<div class="modal-dialog modal-xl modal-fullscreen-lg-down" style="transition: transform .15s ease-out;">
<div class="modal-content">
<div class="modal-header" style="border-bottom: none;">
<h4 class="modal-title" data-localize-id="ui,navbar_settings_collection"></h4>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body pt-0">
<div class="p-2 h-100 d-flex flex-column">
<h5 data-localize-id="ui,collection_export_collection"></h5>
<div class="d-flex flex-wrap mb-2 gap-2">
<button id="collection-data-export-btn" type="button" class="btn btn-dark"><i class="fa-solid fa-right-from-bracket me-2"></i><span data-localize-id="ui,collection_export"></span></button>
</div>
<textarea id="collection-export-string" readonly onclick="this.select()" data-ph-localize-id="ui,collection_export_placeholder"></textarea>
<h5 class="mt-3" data-localize-id="ui,collection_import_collection"></h5>
<p class="mb-1"><span data-localize-id="ui,collection_import_help"></span></p>
<p class="text-italic mb-2"><i class="fa-solid fa-triangle-exclamation me-2"></i><span data-localize-id="ui,collection_import_warning"></span></p>
<textarea id="collection-import-string" data-ph-localize-id="ui,collection_import_placeholder"></textarea>
<div class="d-flex flex-wrap align-items-center mt-2 gap-2">
<button id="collection-data-import-btn" disabled="disabled" type="button" class="btn btn-dark"><i class="fa-solid fa-right-to-bracket me-2"></i><span data-localize-id="ui,collection_import"></span></button>
<span id="collection-import-status"></span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="modal-changelog" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header" style="border-bottom: none;">
<h5 class="modal-title" data-localize-id="ui,changelog"></h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div id="modal-changelog-content" class="modal-body m-3 p-0 changelog">
</div>
</div>
</div>
</div>
<div id="toast-message-container">
<div class="container-xl d-flex h-100 align-items-start justify-content-center">
<div id="toast-message" class="ba-panel p-2">
</div>
</div>
</div>
<div class="modal fade" id="modal-links" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header" style="border-bottom: none;">
<h5 class="modal-title" data-localize-id="ui,community_resources"></h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body m-3 p-0">
<p>Please check out the following resources created by the Blue Archive community.<br>This list is maintained by Causew (Discord: @causew).</p>
<div id="modal-links-content" class="px-2"></div>
</div>
</div>
</div>
</div>
</body>
<script>
const cache_ver = 302;
document.getElementById('loading-spinner').style.display = null;
window.setTimeout(x => {document.getElementById('loading-skipmsg').style.display = null;}, 10000);
</script>
<script src="js/common.min.js?v=302"></script>
</html>