forked from DashDashDashDashDash/akrelchart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
532 lines (507 loc) · 21 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
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ARC - Arknights Relations Chart</title>
<meta name="description"
content="This site hopes to aggregate all information relating to character interactions, and their association with events in and outside the game.">
<meta content="Arknights Relations Chart" property="og:title" />
<meta content="https://ptilopsis.network" property="og:url" />
<meta content="https://ptilopsis.network/images/loading/open.webp" property="og:image" />
<meta content="#0C4AC8" data-react-helmet="true" name="theme-color" />
<link rel="icon" href="./favicon.svg">
<link rel="preload" as="image" href="./images/loading/open.webp">
<link rel="preload" as="image" href="./images/loading/lopen.webp">
<link rel="preload" as="image" href="./images/loading/ropen.webp">
<link rel="preload" as="image" href="./images/banner-awake.png">
<link rel="stylesheet" href="./styles/normalize.css">
<link rel="stylesheet" href="./styles/var.css">
<link rel="stylesheet" href="./styles/main.css">
<link rel="stylesheet" href="./styles/loading.css">
<link rel="stylesheet" href="./styles/popout.css">
<link rel="stylesheet" href="./styles/search.css">
<link rel="stylesheet" href="./styles/dialog.css">
<link rel="stylesheet" href="./fa/css/all.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/cytoscape/3.28.1/cytoscape.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/fuse.basic.min.js"></script>
</head>
<body>
<div class="loading_v" id="loading">
<div>
<p id="l1">PTILOPSIS</p>
<img id="ptilop" src="./images/loading/closed.webp">
<p id="l2">NETWORK</p>
<p>Please wait...</p>
<p id="load">querying database</p>
<p id="warn"></p>
<p>the relations chart is currently a work in progress.</p>
<p>data is incomplete and it can be incorrect!</p>
</div>
</div>
<div id="search" class="search_i" inert>
<form autocomplete="off">
<input type="search" id="searchbar" oninput="auto('result', true, 'characters')">
<ul id="result" class="result">
</ul>
</form>
<div id="search-close-wrapper">
<a href="#" class="close-button" onclick="unpopsearch()">
<div class="in">
<div class="close-button-block"></div>
<div class="close-button-block"></div>
</div>
<div class="out">
<div class="close-button-block"></div>
<div class="close-button-block"></div>
</div>
</a>
</div>
</div>
<div id="cy"></div>
<div id="popoutcontainer" class="popoutcontainer_i" inert>
<img src="images/fullcg/ptiloplaceholder.webp">
<div id="popout">
<a href="#" class="hiddenlink" id="collapse" onclick="collapse()">collapse ≫</a>
<h1 class="popout_name"></h1>
<img src="./images/faction/blank.webp">
<ul id="list">
<li></li>
<li></li>
</ul>
<div class="admin none">
<p id="charid"></p>
<a href="#" class="" onclick="showdialog('chard', cy.$(':selected')[0])">edit properties</a>
</div>
<section>
<h2 class="popout_section clps-btn">INSTANCES</h2>
<div class="collaps-content">
<ul id="instancelist"></ul>
<a href="#" class="admin none" onclick="showdialog('instanced', cy.$(':selected')[0])">add instance</a>
</div>
</section>
<section>
<h2 class="popout_section clps-btn">ASSOCIATIONS</h2>
<div class="collaps-content">
<h3 class="popout_interact">Relations</h3>
<ul id="relations"></ul>
<h3 class="popout_interact">Interactions</h3>
<ul id="interactions"></ul>
<a href="#" class="admin none" onclick="showdialog('assocd', cy.$(':selected')[0])">add association</a>
</div>
</section>
<section>
<h2 class="popout_section clps-btn">REFERENCES</h2>
<div class="collaps-content">
<h3 class="popout_interact">Mentioned</h3>
<ul id="mentionby"></ul>
<h3 class="popout_interact">Mentions</h3>
<ul id="mentions"></ul>
<a href="#" class="admin none" onclick="showdialog('mentiond', cy.$(':selected')[0])">add mention</a>
</div>
</section>
</div>
</div>
<div id="login" class="center login_i" inert>
<form id="loginform" onsubmit="login(this)">
<div id="close_wrapper">
<a href="#" class="close-button" onclick="hidelogin()">
<div class="in">
<div class="close-button-block"></div>
<div class="close-button-block"></div>
</div>
<div class="out">
<div class="close-button-block"></div>
<div class="close-button-block"></div>
</div>
</a>
</div>
<div id="loginform-outer">
<img id="login-logo" src="images/login-logo.svg">
<div id="loginform-inner">
<div class="login-group">
<label class="login-label">username:</label>
<input id="login-usr" type="text" name="user" oninput="checklogin()">
</div>
<div class="login-group">
<label class="login-label">password:</label>
<input id="login-pw" type="password" name="pw" oninput="checklogin()">
</div>
<div class="login-group">
<input id="login-btn" class="invisible" type="submit" value="Log in">
<p class="err" id="lerr"></p></div>
</div>
</div>
</form>
</div>
<div class="center ays_i focus" id="ays" inert>
<div class="dialog">
<p>Are you sure you want to delete
<span class="err" id="areyoudel"></span>?
</p>
<div class="row">
<button id="aysb">Yes</button>
<button onclick="setvisibility(document.getElementById('ays'), 'i')">No</button>
</div>
</div>
</div>
<div class="center" id="instanced">
<form class="dialogform" id="instanceform" onsubmit="send(this)" inert>
<button type="button" class="close" onclick="closedialog()">╳</button>
<h1></h1>
<p class="blame"></p>
<input type="hidden" name="_key">
<div>
<div>
<label>Character<span class="req"> *</span></label>
<input type="text" name="_from" oninput="auto('r_insdiag', false, 'characters', 3); charvalid(this)" required
pattern="(characters\/)+(\w|-){1,128}">
<ul class="result" id="r_insdiag"></ul>
</div>
<div>
<label>Type<span class="req"> *</span></label>
<select name="type" id="inselect" required>
<option value=""></option>
<option value="present in">present in</option>
<option value="mentioned in">mentioned in</option>
<option value="mentioned indirectly in">mentioned indirectly in</option>
<option value="quoted in">quoted in</option>
<option value="first appeared in">first appeared in</option>
</select>
</div>
</div>
<br>
<div>
<div>
<label>Instance<span class="req"> *</span></label>
<input type="text" name="_to" oninput="auto('r_insdiage', false, 'events', 2); charvalid(this)" required
pattern="^(events\/)+(\w|-){1,128}">
<ul class="result" id="r_insdiage"></ul>
</div>
<div>
<label>Instance detail</label>
<input type="text" name="instancedetail">
</div>
<div>
<label>Sprite</label>
<input type="text" name="sprite" value="default">
</div>
</div>
<br>
<input type="submit" value="Add">
<p class="err" id="ierr"></p>
</form>
</div>
<div class="center" id="assocd">
<form class="dialogform" id="associationform" onsubmit="send(this)" inert>
<button type="button" class="close" onclick="closedialog()">╳</button>
<h1></h1>
<p class="blame"></p>
<input type="hidden" name="_key">
<div>
<div>
<label>From<span class="req"> *</span></label>
<input type="text" name="_from" oninput="auto('r_assocdiag1', false, 'characters', 6); charvalid(this)"
required pattern="^(characters\/)+(\w|-){1,128}">
<ul class="result" id="r_assocdiag1"></ul>
</div>
<div>
<label>To<span class="req"> *</span></label>
<input type="text" name="_to" oninput="auto('r_assocdiag2', false, 'characters', 6); charvalid(this)" required
pattern="^(characters\/)+(\w|-){1,128}">
<ul class="result" id="r_assocdiag2"></ul>
</div>
</div>
<div class="row">
<div class="row radio-block">
<div class="switches-container">
<input type="radio" id="r1" name="type" value="relation" required checked="checked" />
<input type="radio" id="r2" name="type" value="interaction" required/>*
<label for="r1">Relation</label>
<label for="r2">Interaction</label>
<span class="selected" aria-hidden="true"></span>
<div class="switch-wrapper">
<div class="switch">
<div>Relation</div>
<div>Interaction</div>
</div>
</div>
</div>
<br>
</div>
<div class="row">
<input type="checkbox" name="obsolete" id="c4">
<label id="obs-label" for="c4" title="Obsolete associations are associations that used to be valid in the past but aren't valid anymore.">Is this association obsolete?</label>
</div>
</div>
<div>
<div>
<label>Subtype<span class="req"> *</span></label>
<input type="text" name="subtype" required>
</div>
<div>
<label>Reverse subtype</label>
<input type="text" name="subtype_reverse" placeholder="Use if subtype is incoherent when used in both ways">
</div>
<div>
<label id="inst-lab">Instance<span class="req"> *</span></label>
<div class="row">
<select name="connective" id="asselect">
<option value="in">in</option>
<option value="throughout">throughout</option>
<option value="according to">according to</option>
<option value="implicit"><implicit></option>
</select>
<div>
<input type="text" name="instance" oninput="auto('r_assocdiage', false, 'events', 3); charvalid(this)"
required pattern="^(events\/)+(\w|-){1,128}">
<ul class="result" id="r_assocdiage"></ul>
</div>
</div>
</div>
<div>
<label>Instance detail</label>
<input type="text" name="instancedetail">
</div>
<div>
<label>Source URL</label>
<input type="text" name="url">
</div>
</div>
<br>
<input type="submit" value="Add">
<p class="err" id="aerr"></p>
</form>
</div>
<div class="center" id="mentiond">
<form class="dialogform" id="mentionform" onsubmit="send(this)" inert>
<button type="button" class="close" onclick="closedialog()">╳</button>
<h1></h1>
<p class="blame"></p>
<input type="hidden" name="_key">
<div>
<div>
<label>From<span class="req"> *</span></label>
<input type="text" name="_from" oninput="auto('r_mendiag1', false, 'characters', 4); charvalid(this)" required
pattern="^(characters\/)+(\w|-){1,128}">
<ul class="result" id="r_mendiag1"></ul>
</div>
<div>
<label>To<span class="req"> *</span></label>
<input type="text" name="_to" oninput="auto('r_mendiag2', false, 'characters', 4); charvalid(this)" required
pattern="^(characters\/)+(\w|-){1,128}">
<ul class="result" id="r_mendiag2"></ul>
</div>
</div>
<br><input type="hidden" name="type" value="mention">
<div>
<div>
<label>Instance<span class="req"> *</span></label>
<input type="text" name="instance" oninput="auto('r_mendiage', false, 'events', 3); charvalid(this)" required
pattern="^(events\/)+(\w|-){1,128}">
<ul class="result" id="r_mendiage"></ul>
</div>
<div>
<label>Instance detail</label>
<input type="text" name="instancedetail">
</div>
<div>
<label>Source URL</label>
<input type="text" name="url">
</div>
</div>
<br>
<input type="submit" value="Add">
<p class="err" id="merr"></p>
</form>
</div>
<div class="center" id="chard">
<form class="dialogform" id="characterform" onsubmit="send(this)" inert>
<button type="button" class="close" onclick="closedialog()">╳</button>
<h1></h1>
<p class="blame"></p>
<nothing></nothing> <!-- parity with the other elements (hidden _key) -->
<div>
<div>
<label>Name<span class="req"> *</span></label>
<input type="text" name="name" required>
<ul class="result" id="r_chardiag"></ul>
</div>
<div>
<label>Internal ID<span class="req"> *</span></label>
<input type="text" name="_key" required>
</div>
</div>
<br>
<div>
<div>
<label>Faction</label>
<input type="text" name="faction" placeholder="Strongly recommended to include this field">
</div>
<div>
<label>Sub-faction</label>
<input type="text" name="sub-faction">
</div>
<div id="illusdivs">
<div class="row">
<div>
<label>Illustrator</label>
<input type="text" name="illustrator">
</div>
<div>
<label>Romanized</label>
<input type="text" name="romanized">
</div>
<button type="button" class="unsetw" onclick="newinputrow('illus')">+</button>
</div>
</div>
<div id="aliasdivs">
<div class="row">
<div>
<label>Aliases</label>
<input type="text" name="aliases">
</div>
<button type="button" onclick="newinputrow('alias')">+</button>
</div>
</div>
<br>
<div class="row">
<div class="row">
<input type="checkbox" name="npc" id="c1">
<label for="c1">NPC?</label>
<input type="checkbox" name="global" id="c2">
<label for="c2">On the Global server?</label>
</div>
<div>
<label>Gender</label>
<select name="gender">
<option value=""></option>
<option value="Male">Male</option>
<option value="Female">Female</option>
<option value="Agender">Agender</option>
<option value="Unknown">Unknown</option>
<option value="Multiple">Multiple</option>
</select>
</div>
</div>
</div>
<br>
<input type="submit" value="Add">
<p class="err" id="cerr"></p>
</form>
</div>
<div class="center" id="eventd">
<form class="dialogform" id="eventform" onsubmit="send(this)" inert>
<button type="button" class="close" onclick="closedialog()">╳</button>
<h1></h1>
<p class="blame"></p>
<nothing></nothing> <!-- parity with the other elements (hidden _key) -->
<div>
<div>
<label>Name<span class="req"> *</span></label>
<input type="text" name="name" required>
</div>
<div>
<label>Internal ID<span class="req"> *</span></label>
<input type="text" name="_key" required>
</div>
</div>
<br>
<div>
<div>
<label>Type<span class="req"> *</span></label>
<input type="text" name="type" required>
</div>
<div>
<label>Subtype</label>
<input type="text" name="subtype">
</div>
<div>
<label>Event URL<span class="req"> *</span></label>
<input type="text" name="url" required>
</div>
<div class="row">
<div>
<label>Release date<span class="req"> *</span></label>
<input type="date" name="releasedate" required>
</div>
<div class="row">
<input type="checkbox" name="completion" id="c3">
<label for="c3">Are this event's relations all properly checked?</label>
</div>
</div>
</div>
<br>
<input type="submit" value="Add">
<p class="err" id="eerr"></p>
</form>
</div>
<div id="pw" class="center pw_i" inert>
<form id="pwform" onsubmit="changepw(this)">
<button type="button" class="close" onclick="hidepwchange()">╳</button>
<label>new password</label>
<input type="password" name="pw" required minlength="8">
<label>confirm</label>
<input type="password" name="pwc" required minlength="8">
<br>
<input type="submit" value="change password">
<p class="err" id="pwerr"></p>
</form>
</div>
<div class="center about_i" id="about" inert>
<div class="dialog">
<button type="button" class="close" onclick="hideabout()">╳</button>
<div id="about-logo">
<img id="about-banner" src="./images/login-logo.svg">
</div>
<div class="about-name"><span id="about-title">THE ARKNIGHTS<br>RELATIONSHIP CHART</span><div id="version"><span>ver</span><span>1.0</span></div></div>
<div id="about-credit"><span>made with ♥ by Dash- & friends</span></div>
<div id="linkarea">
<a href="https://discord.com/invite/K5EKm6YFC3"><i class="fa-brands fa-discord"></i></a>
<a href="https://github.com/DashDashDashDashDash/akrelchart"><i class="fa-brands fa-github"></i></a>
<a href="https://blog.ptilopsis.network"><i class="fa-duotone fa-solid fa-feather"></i></a>
</div>
</div>
</div>
<div class="footer_v" id="footer">
<nav class="ftr_sub" id="ftr_gen">
<img id="banner" src="./images/banner.png">
<div class="ftr_sep" id="first_sep"></div>
<div class="ftr_btn"><a href="#" class="btn_text" onclick="hide()"><i class="navico fa-xs fa-solid fa-angles-down"></i><span class="resp-text">hide</span></a></div>
<div class="ftr_sep"></div>
<div class="ftr_btn"><a href="#" class="btn_text" onclick="popsearch()"><i class="navico fa-xs fa-solid fa-magnifying-glass"></i><span class="resp-text">search</span></a></div>
<div class="ftr_sep"></div>
<div class="ftr_btn"><a href="#" class="btn_text" onclick="toggletextsize()"><i class="navico fa-xs fa-duotone fa-solid fa-text-size"></i><span class="resp-text">text size</span></a></div>
</nav>
<nav class="ftr_sub ftr_usr">
<div id="loginstr" class="admin none"><i class="navico fa-xs fa-solid fa-duotone fa-user"></i><span class="resp-text">logged in as</span><span id="username">guest</span></div>
<div class="ftr_sep admin none"></div>
<div class="ftr_btn admin none"><a href="#" class="btn_text" onclick="showpwchange()" id="pwa"><i class="navico fa-xs fa-solid fa-duotone fa-key"></i><span class="resp-text">change password</span></a>
</div>
<div class="ftr_sep admin none"></div>
<div class="ftr_btn admin none"><a href="#" class="btn_text" onclick="logout()" id="logout"><i class="navico fa-xs fa-solid fa-duotone fa-right-from-bracket"></i><span class="resp-text">logout</span></a></div>
<div class="ftr_sep admin none"></div>
<div class="ftr_btn admin"><a href="#" class="btn_text" onclick="showlogin()" id="logina"><i class="navico fa-xs fa-solid fa-duotone fa-file-pen"></i><span class="resp-text">edit</span></a></div>
<div class="ftr_sep admin"></div>
<div class="ftr_btn"><a href="#" class="btn_text" onclick="showabout()"><i class="navico fa-xs fa-solid fa-duotone fa-circle-question"></i><span class="resp-text"></span><span class="resp-text">about</span></a></div>
</nav>
</div>
<div id="restoreui-area">
<div class="restoreui_i" id="restoreui" inert>
<a href="#" onclick="unhide()"><div id="unhider"><i class="fa-solid fa-angles-up fa-2xl"></i></div></a>
</div>
</div>
<div id="ripple-area">
<div class="ripple">
<div class="ripple-in">
<img id="rippleRing" src="images/ripple-ring.svg">
<img id="rippleCircle" src="images/ripple-circle.svg">
</div>
</div>
</div>
<script src="./scripts/arc-db.js"></script>
<script src="./scripts/arc-cy.js"></script>
<script src="./scripts/arc-ui.js"></script>
<script src="./scripts/arc-se.js"></script>
</body>
</html>