forked from Nechigawara/nechi-fgo-checklist
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
358 lines (358 loc) · 19.5 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>FGO Servant Checklist v5.0</title>
<link rel="icon" href="./img/favicon.ico">
<!-- OG -->
<meta property="og:title" content="FGO Servant Checklist 5.0" />
<meta property="og:description" content="An FGO Servant checklist with NP counts, forked from Nechi." />
<meta property="og:image" content="img/fgo-check-og.jpg" />
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="FGO Servant Checklist 5.0" />
<meta name="twitter:description" content="An FGO Servant checklist with NP counts, forked from Nechi." />
<meta name="twitter:image" content="img/fgo-check-og.jpg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="./css/bootstrap/bootstrap.min.css" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="./css/select2/select2.min.css" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="./css/select2/select2-bootstrap.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css"
integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="./css/baseSite.css" crossorigin="anonymous">
<!-- JS -->
<script type="text/javascript" src="./js/lib/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="./js/changelog.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="./js/lib/popper.min.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="./js/lib/bootstrap.min.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="./js/lib/bootbox.min.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="./js/lib/select2.full.min.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="./js/lib/lz-string.min.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="./js/lib/html2canvas.min.js" crossorigin="anonymous"></script>
<script type="text/javascript"
src="https://cdn.rawgit.com/eligrey/FileSaver.js/5ed507ef8aa53d8ecfea96d96bc7214cd2476fd2/FileSaver.min.js"></script>
<script type="text/javascript" src="./js/configuration.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="./js/functionsLibrary.js" crossorigin="anonymous"></script>
</head>
<body>
<!-- Start -->
<div style="display: none;">
<img src="./img/fou1.png"><img src="./img/fou2.png"><img src="./img/fou3.png"><img src="./img/fou4.png">
<input type="file" id="theFile" style="display:none" accept=".fgol"/>
</div>
<!-- Navbar -->
<nav class="navbar navbar-dark bg-secondary">
<span class="navbar-brand">
<img src="./img/DSGO.png" width="30" height="30" class="d-inline-block align-top" alt="">
FGO Servant Checklist v5.0<br><span class="btn-xs">(rel.<span id="webAppVersion">X</span>)</span>
</span>
<ul class="nav navbar-nav ml-auto">
<li class="nav-item">
<a href="javascript:showChangelogModal();"><img src="./img/changelog.png" /></a>
</li>
</ul>
</nav>
<!-- Content -->
<div class="container body-content" style="padding-top: 10px;">
<!-- Header area -->
<div class="card clearCard" id="headerCard">
<div id="card-body" class="card-body" style="text-align:center; padding: 0px;">
<p id="page_whatami">Please note that the site may take a while loading on first visit from caching all
images.<br>This list gets updated as soon as my schedule allows me, which should be at most during the first
few days after a new Servant is released.<br>~Tohno Shiki</p>
</div>
<button type="button" id="toggleUnitTypesButton" class="btn btn-options btn-secondary menu-btn"
onclick="toggleUnitTypeIcon()">Toggle Availability Icons On/Off</button>
<table id="optionsAndButtons">
<tr class="form-group form-check form-check-options">
<td><input type="checkbox" class="form-check-input" id="mashSR"></td>
<td><label class="form-check-label" for="mashSR">Mash is 4★ (SR)</label></td>
</tr>
<tr class="form-group form-check form-check-options">
<td><input type="checkbox" class="form-check-input" id="classmode"></td>
<td><label class="form-check-label" for="classmode">Divide by Servant Class</label></td>
</tr>
<tr class="form-group form-check form-check-options">
<td><input type="checkbox" class="form-check-input" id="fastmode"></td>
<td><label class="form-check-label" for="fastmode">Fast Mode
(left click/short tap for owned; right click/long tap for wishlist) </label></td>
</tr>
<tr class="form-group form-check form-check-options">
<td><input type="checkbox" class="form-check-input" id="NAonly"></td>
<td><label class="form-check-label" for="NAonly">Hide unreleased in NA/Global </label></td>
</tr>
</table>
</div>
<h3 align="center" id="statsTitle">Stats for nerds (unique entries only)</h3>
<div id="capturearea">
<!-- Statistics counters -->
<div class="row statsBox" id="statisticBox" style="display:none;">
<table id="statsContainer">
<tr>
<td class="col statsColumn">
<h3 class="centerText">All Servants</h3>
<h4><small>Overall:</small> <em id="statisticBoxAllPercent"></em>%
<small>(<span id="statisticBoxAllHave"></span>/<span id="statisticBoxAllMax"></span>)</small></h4>
<ul>
<li id="ssrBoxAllStats"></li>
<li id="srBoxAllStats"></li>
<li id="rareBoxAllStats"></span></li>
<li id="uncommonBoxAllStats"></li>
<li id="commonBoxAllStats"></li>
<li id="noneBoxAllStats"></li>
</ul>
</td>
<td class="col statsColumn">
<h3 class="centerText">Gacha Only</h3>
<h4><small>Overall:</small> <em id="statisticBoxNotEventPercent"></em>%
<small>(<span id="statisticBoxNotEventHave"></span>/<span id="statisticBoxNotEventMax"></span>)</small></h4>
<ul>
<li id="ssrBoxNotEventStats"></li>
<li id="srBoxNotEventStats"></li>
<li id="rareBoxNotEventStats"></li>
<li id="uncommonBoxNotEventStats"></li>
<li id="commonBoxNotEventStats"></li>
<li id="noneBoxNotEventStats"></li>
</ul>
</td>
</tr>
</table>
</div>
<!-- Servant card boxes -->
<div class="card" style="margin-top: 10px;">
<div class="card-header bg-warning header-shadow">5★ SSR</div>
<div class="card-body">
<div class="row listbox" id="ssrBox" style="display:none;"></div>
<div class="listbox_class" id="ssrBox-ByClass" style="display:none;"></div>
<div class="row listbox_fake" id="ssrBoxFake">
<div class="col">Loading...</div>
</div>
</div>
</div>
<div class="card" style="margin-top: 10px;">
<div class="card-header bg-warning header-shadow">4★ SR</div>
<div class="card-body">
<div class="row listbox" id="srBox" style="display:none;"></div>
<div class="listbox_class" id="srBox-ByClass" style="display:none;"></div>
<div class="row listbox_fake" id="srBoxFake">
<div class="col">Loading...</div>
</div>
</div>
</div>
<div class="card" style="margin-top: 10px;">
<div class="card-header bg-fgo-rare header-shadow">3★ R</div>
<div class="card-body">
<div class="row listbox" id="rareBox" style="display:none;"></div>
<div class="listbox_class" id="rareBox-ByClass" style="display:none;"></div>
<div class="row listbox_fake" id="rareBoxFake">
<div class="col">Loading...</div>
</div>
</div>
</div>
<div class="card" style="margin-top: 10px;">
<div class="card-header bg-fgo-common header-shadow">2★ Uncommon</div>
<div class="card-body">
<div class="row listbox" id="uncommonBox" style="display:none;"></div>
<div class="listbox_class" id="uncommonBox-ByClass" style="display:none;"></div>
<div class="row listbox_fake" id="uncommonBoxFake">
<div class="col">Loading...</div>
</div>
</div>
</div>
<div class="card" style="margin-top: 10px;">
<div class="card-header bg-fgo-common header-shadow">1★ Common</div>
<div class="card-body">
<div class="row listbox" id="commonBox" style="display:none;"></div>
<div class="listbox_class" id="commonBox-ByClass" style="display:none;"></div>
<div class="row listbox_fake" id="commonBoxFake">
<div class="col">Loading...</div>
</div>
</div>
</div>
<div class="card" style="margin-top: 10px;">
<div class="card-header bg-dark header-shadow">0✩ <span style="font-style: italic; text-decoration: line-through;">VOID</span></div>
<div class="card-body">
<div class="row listbox" id="noneBox" style="display:none;"></div>
<div class="listbox_class" id="noneBox-ByClass" style="display:none;"></div>
<div class="row listbox_fake" id="noneBoxFake">
<div class="col">Loading...</div>
</div>
</div>
</div>
</div>
<div id="note">
Icon legend:
<ul>
<li><i class="fas fa-shield-alt"></i> = Starter Servant (Shielder)</li>
<li><i class="fas fa-star"></i> = Limited Servants</li>
<li><i class="fas fa-gift"></i> = Event Reward Servants ("welfares")</li>
<li><i class="fas fa-lock"></i> = Servants unlocked <i>exclusively</i> in the Story banner after clearing relevant story chapters (exceptions:
Habetrot and both variants of Kishinami Hakuno, who are summoned from the Friend Point banner once their chapters are cleared)</li>
</ul>
</div>
</div>
<!-- Footer -->
<footer id="footer" class="bd-footer">
<div class="container-fluid p-3 p-md-5 card clearCard container">
<p>
Original project and code by <a target="_blank" href="https://github.com/Nechigawara">Nechigawara Sanzenin</a>.
Forked <a href="https://github.com/Nechigawara/nechi-fgo-checklist/issues/7" target="_blank">under explicit permission</a> by Tohno Coding.<br />
This application is licensed under the general-purpose
<a href="https://github.com/TohnoCoding/fgochecklist/blob/master/LICENSE" target="_blank">MIT License</a>.<br/>
Fate/Grand Order and related materials are registered trademarks and properties of
<a target="_blank" href="http://typemoon.com/">TYPE-MOON</a>,
<a target="_blank" href="https://www.lasengle.co.jp/">LASENGLE</a>,
<a target="_blank" href="https://www.marv.jp/">Marvelous Inc.</a>, and
<a target="_blank" href="https://www.aniplex.co.jp/">Aniplex Inc.</a><br/>
Images hosted at <a href="https://imgur.com" target="_blank">imgur.com</a>.
</p>
</div>
</footer>
<br>
<!-- Modal Changelog -->
<div id="changelogModal" class="changelog-modal">
<a id="closeChangelog" class="close-button" href="javascript:hideChangelogModal();"><img src="./img/btnclose.png" /></a>
<div class="changelog-wrapper">
<div class="changelog-title"><h2>Changelog:</h2> <h4>(Newer entries at top.)</h4></div>
<div id="changelogContent" class="changelog-content"> </div>
</div>
</div>
<!-- Modal Add -->
<div class="modal" tabindex="-1" role="dialog" id="addModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Add Servant - <span id="nameAdd"></span></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<!-- Owned NP Level -->
<div class="form-group">
<label for="npAdd">Current NP Level</label>
<select class="form-control" id="npAdd"></select>
<small id="npAddHelp" class="form-text text-muted">What's this Servant's NP level?</small>
</div>
<br>
<!-- Wishlist Level -->
<div class="form-group">
<label for="wlAdd">Wishlist NP Level</label>
<select class="form-control" id="wlAdd"></select>
<small id="wlAddHelp" class="form-text text-muted">At what NP level do you wish to have this Servant?</small>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onclick="updateUnitData(true)">Save changes</button>
</div>
</div>
</div>
</div>
<!-- Modal Update -->
<div class="modal" tabindex="-1" role="dialog" id="updateModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Update Servant - <span id="nameUpdate"></span></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<!-- Owned NP Level -->
<div class="form-group">
<label for="npUpdate">Current NP Level</label>
<select class="form-control" id="npUpdate"></select>
<small id="npUpdateHelp" class="form-text text-muted">What's this Servant's NP level?</small>
</div>
<br>
<!-- Wishlist Level -->
<div class="form-group">
<label for="wlUpdate">Wishlist NP Level</label>
<select class="form-control" id="wlUpdate"></select>
<small id="wlUpdateHelp" class="form-text text-muted">At what NP level do you wish to have this Servant?</small>
</div>
</form>
<hr/>
<div style="text-align:center;">
<button type="button" class="btn btn-danger" onclick="removeUserData()">Uncheck this servant</button>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onclick="updateUnitData(false)">Save changes</button>
</div>
</div>
</div>
</div>
<!-- Modal loading -->
<div class="modal" tabindex="-1" role="dialog" id="loadingModal" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body" style="text-align:center">
<br><br><br>
<img src="./img/fou1.png" id="fou">
<br><br><br><br>
</div>
</div>
</div>
</div>
<div id="walk-container"></div> <!-- EXTRA: Padoru Walker -->
<div id="darkener"></div> <!-- Dark overlay when menu is open -->
<!-- Hamburger button & menu | Social Share, data save/load, data import/export, clear all, select all -->
<div id="hamburger-button" class="hamburger-button"> </div>
<div id="hamburger-menu" class="hamburger-menu">
<img src="./img/optionselect.png" class="burger-select" id="burger-select-image">
<div class="burger-buttons">
<a class="hamburger-menu-button"
href="javascript:shareURL('facebook')"><img src="./img/hamburger/facebookshare.png"></a>
<a class="hamburger-menu-button"
href="javascript:shareURL('twitter')"><img src="./img/hamburger/xwittershare.png"></a>
<a class="hamburger-menu-button"
href="javascript:shareURL('')"><img src="./img/hamburger/shortenurl.png"></a>
<a class="hamburger-menu-button" id="loadbutton"
href="javascript:loadLocalData();"><img src="./img/hamburger/browserload.png"></a>
<a class="hamburger-menu-button" id="savebutton"
href="javascript:saveLocalData()"><img src="./img/hamburger/browsersave.png"></a>
<a class="hamburger-menu-button" id="loadbutton_f"
href="javascript:openFileUploadPrompt()"><img src="./img/hamburger/fileload.png"></a>
<a class="hamburger-menu-button" id="savebutton_f"
href="javascript:exportCurrentDataToFile()"><img src="./img/hamburger/filesave.png"></a>
<a class="hamburger-menu-button"
href="javascript:exportCanvasToImage()"><img src="./img/hamburger/imageexport.png"></a>
<a class="hamburger-menu-button"
href="javascript:promptActionOnAllUnits(false)"><img src="./img/hamburger/markall.png"></a>
<a class="hamburger-menu-button"
href="javascript:promptActionOnAllUnits(false, null, null, true)"><img
src="./img/hamburger/wlall.png"></a>
<a class="hamburger-menu-button"
href="javascript:clearAllData()"><img src="./img/hamburger/deleteall.png"></a><br><br>
<a class="hamburger-menu-button"
href="https://github.com/TohnoCoding/fgochecklist" target="_blank"><img
src="./img/hamburger/github.png"></a>
<a class="hamburger-menu-button"
href="https://github.com/Nechigawara/nechi-fgo-checklist/" target="_blank"><img
src="./img/hamburger/nechi.png"></a>
<a class="hamburger-menu-button"
href="https://tohnocoding.github.io/fgobanners" target="_blank"><img
src="./img/hamburger/banners.png"></a>
<a class="hamburger-menu-button"
href="https://ko-fi.com/R5R114FFP8" target="_blank"><img
src="./img/hamburger/kofi.png"></a>
<a class="hamburger-menu-button"
href="https://www.paypal.me/MasterTohno" target="_blank"><img
src="./img/hamburger/paypal.png"></a>
</div>
</div>
<!-- Page End -->
<!-- JS After -->
<script type="text/javascript" src="./js/index.js" crossorigin="anonymous"></script>
<!-- Eruda Console for mobile analysis -->
<!-- script src="https://cdn.jsdelivr.net/npm/eruda"></script>
<script>eruda.init();</script -->
</body>
</html>