forked from RealLowMaster/X-Comic-Downloader-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
594 lines (512 loc) · 37.8 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
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Links -->
<link rel="stylesheet" type="text/css" href="CSS/action.css">
<link rel="stylesheet" type="text/css" href="CSS/main.css">
<link rel="stylesheet" type="text/css" href="CSS/xlecx.css">
<link rel="stylesheet" type="text/css" href="CSS/nhentai.css">
<!-- Scripts -->
<script type="text/javascript">
if (typeof module === 'object') { window.module = module; module = undefined; }
</script>
<script type="text/javascript" src="JS/actions.js"></script>
<script type="text/javascript" src="JS/classes/xlecx-api.js"></script>
<script type="text/javascript" src="JS/classes/nhentai-api.js"></script>
<script type="text/javascript" src="JS/classes/tab.js"></script>
<script type="text/javascript" src="JS/classes/loading.js"></script>
<script type="text/javascript" src="JS/classes/procress-panel.js"></script>
<script type="text/javascript" src="JS/requires.js" defer></script>
<script type="text/javascript" src="JS/themes.js" defer></script>
<script type="text/javascript" src="JS/comics.js" defer></script>
<script type="text/javascript" src="JS/slider.js" defer></script>
<script type="text/javascript" src="JS/browser.js" defer></script>
<script type="text/javascript" src="JS/database.js" defer></script>
<script type="text/javascript" src="JS/make-thumb.js" defer></script>
<script type="text/javascript" src="JS/image-optimizer.js" defer></script>
<script type="text/javascript" src="JS/setting.js" defer></script>
<script type="text/javascript" src="JS/startup.js" defer></script>
<!-- Sites -->
<script type="text/javascript" src="JS/sites/xlecx.js" defer></script>
<script type="text/javascript" src="JS/sites/nhentai.js" defer></script>
</head>
<body>
<div id="main">
<!-- Top Menu -->
<div>
<div class="top-menu" id="top-menu">
<div>
<button onclick="openBrowser()">Browser</button>
<div class="menu-dropdown">
<button>Optimzation</button>
<div>
<button onclick="makeThumb(false)" title="Create Thumbs For All Comics That Missied They Thumb">Make Thumb</button>
<button onclick="makeThumb(true)" title="ReCreate Comic Thumbs if They had, if don't Create New One">ReMake Thumbs</button>
<button style="display:none;" onclick="" title="Choose Comics To Optimize">Optimize Comics</button>
<button style="display:none;" onclick="" title="Optimize all UnOptimized Comics in this page">Optimize Page Comics</button>
</div>
</div>
<button onclick="openSetting()">Setting</button>
</div>
<div>
<form class="browser-tool-search-form" id="offline-search-form" style="display:none">
<input type="text" placeholder="Search..." id="offline-search-form-input" style="border-radius: 7px;" onfocus="keydownEventIndex = null" onfocusout="keydownEventIndex = 0" oninput="searchComics(this.value)">
</form>
</div>
<div>
<div class="jump-page" id="jump-page-container">
<input type="number" id="jp-i" onfocus="keydownEventIndex = null" onfocusout="keydownEventIndex = 0" oninput> / <span id="jp-m-p"></span>
<button type="button" onclick="randomJumpPage(Number(this.parentElement.children[1].textContent))" title="Random"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="redo-alt" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"></path></svg></button>
</div>
</div>
</div>
</div>
<!-- Body -->
<div id="main-body">
<div id="comic-container" page=""></div>
<div id="pagination"></div>
<p id="comics-counter"></p>
<div id="c-c-r-c-p">
<button type="button" onclick="openRenameComic(comic_menu_id)"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><g><path fill="currentColor" d="M304 416a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H144a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16z" style="opacity:.4"></path><path fill="currentColor" d="M448 48v96a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32H264v304h-80V112H64v32a16 16 0 0 1-16 16H16a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h416a16 16 0 0 1 16 16z"></path></g></svg> Rename</button>
<button type="button" thumb-btn onclick="makeThumbForAComic(comic_menu_id, 0)" thumb-btn title="Make Thumb">Make Thumb</button>
<button type="button" onclick="OptimizeComicImages(comic_menu_id, false, 0)" title="Optimize Comic Images"> Optimize</button>
<button type="button" onclick="openComicExportPanel(comic_menu_id)" title="Export Comic"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><g><path fill="currentColor" d="M384 352.05v136.07A23.94 23.94 0 0 1 360 512H23.88A23.94 23.94 0 0 1 0 488V23.88A23.94 23.94 0 0 1 24 0h232v112a16 16 0 0 0 16 16h112v160.05H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16z" style="opacity:.4"></path><path fill="currentColor" d="M272 128h112v-6.1a23.9 23.9 0 0 0-7-16.9L279.1 7a24 24 0 0 0-17-7H256v112a16 16 0 0 0 16 16zm299 180.05l-95.61-96.5c-10.1-10.1-27.41-3-27.41 11.3v65.2H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h239.93v65.1c0 14.3 17.31 21.4 27.41 11.3l95.71-96.4a17 17 0 0 0-.05-24z"></path></g></svg> Export</button>
<button type="button" onclick="askForDeletingComic(comic_menu_id)" danger-btn title="Delete Comic"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><g><path fill="currentColor" d="M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V96H32zm272-288a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0z" style="opacity:.4"></path><path fill="currentColor" d="M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM128 160a16 16 0 0 0-16 16v224a16 16 0 0 0 32 0V176a16 16 0 0 0-16-16zm96 0a16 16 0 0 0-16 16v224a16 16 0 0 0 32 0V176a16 16 0 0 0-16-16zm96 0a16 16 0 0 0-16 16v224a16 16 0 0 0 32 0V176a16 16 0 0 0-16-16z"></path></g></svg> Delete</button>
</div>
</div>
</div>
<!-- Comic Panel -->
<div id="comic-panel" cid="null">
<button class="comic-panel-repair-info-btn" title="Options | Ctrl+Q" onclick="document.getElementById('comic-action-panel').style.display='flex';keydownEventIndex = null"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g><path fill="currentColor" d="M193.8 227.7L18.74 402.76a64 64 0 0 0 90.5 90.5l148.88-148.88a75.36 75.36 0 0 1 6.58-45.78zM64 472a24 24 0 1 1 24-24 24 24 0 0 1-24 24zm443.73-362.9a12 12 0 0 0-20.12-5.51L413.25 178l-67.88-11.31-11.31-67.93 74.36-74.36a12 12 0 0 0-5.66-20.16 143.92 143.92 0 0 0-136.58 37.93c-39.64 39.64-50.55 97.1-34.05 147.2l-4.43 4.43 70.9 70.9a74.25 74.25 0 0 1 85.4 13.9l7.21 7.21a141.74 141.74 0 0 0 78.61-40 143.94 143.94 0 0 0 37.91-136.71z" style="opacity:.6"></path><path fill="currentColor" d="M501.1 395.7a37.36 37.36 0 0 1 0 52.7l-52.7 52.7a37.18 37.18 0 0 1-52.58.12l-.12-.12L278.6 384c-23.1-23.1-27.5-57.6-13.9-85.4L158.1 192H96L0 64 64 0l128 96v62.1l106.6 106.6a74.25 74.25 0 0 1 85.4 13.9z"></path></g></svg></button>
<button class="comic-panel-slider-btn" title="Slider | Ctrl+S" onclick="reOpenLastSlider()"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><g><path fill="currentColor" d="M480 64h64v256a32 32 0 0 1-32 32H64a32 32 0 0 1-32-32V64h64v224h384z" style="opacity:.6"></path><path fill="currentColor" d="M560 0H16A16 16 0 0 0 0 16v32a16 16 0 0 0 16 16h544a16 16 0 0 0 16-16V16a16 16 0 0 0-16-16zM320 386.75V352h-64v34.75l-75.31 75.31a16 16 0 0 0 0 22.63l22.62 22.62a16 16 0 0 0 22.63 0L288 445.25l62.06 62.06a16 16 0 0 0 22.63 0l22.62-22.62a16 16 0 0 0 0-22.63z"></path></g></svg></button>
<button id="c-p-r-btn" onclick="keydownEventIndex = 100; repairComicImages()" title="Repair Images, Some Images are not Downloaded | Ctrl+r"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><g><path fill="currentColor" d="M569.52 440L329.58 24c-18.44-32-64.69-32-83.16 0L6.48 440c-18.42 31.94 4.64 72 41.57 72h479.89c36.87 0 60.06-40 41.58-72zM288 448a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm38.24-238.41l-12.8 128A16 16 0 0 1 297.52 352h-19a16 16 0 0 1-15.92-14.41l-12.8-128A16 16 0 0 1 265.68 192h44.64a16 16 0 0 1 15.92 17.59z" style="opacity:.5"></path><path fill="currentColor" d="M310.32 192h-44.64a16 16 0 0 0-15.92 17.59l12.8 128A16 16 0 0 0 278.48 352h19a16 16 0 0 0 15.92-14.41l12.8-128A16 16 0 0 0 310.32 192zM288 384a32 32 0 1 0 32 32 32 32 0 0 0-32-32z"></path></g></svg></button>
<button class="comic-panel-close-btn" title="Close | Ctrl+E" onclick="closeComicPanel()"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><g><path fill="currentColor" d="M9.21,356.07a31.46,31.46,0,0,0,0,44.48l22.24,22.24a31.46,31.46,0,0,0,44.48,0L176,322.72,109.28,256ZM342.79,111.45,320.55,89.21a31.46,31.46,0,0,0-44.48,0L176,189.28,242.72,256,342.79,155.93a31.46,31.46,0,0,0,0-44.48Z" style="opacity:.6"></path><path fill="currentColor" d="M342.79,356.07a31.46,31.46,0,0,1,0,44.48l-22.24,22.24a31.46,31.46,0,0,1-44.48,0L9.21,155.93a31.46,31.46,0,0,1,0-44.48L31.45,89.21a31.46,31.46,0,0,1,44.48,0Z"></path></g></svg></button>
<p id="c-p-t"></p>
<div class="comic-panel-tags" id="c-p-g"></div>
<div class="comic-panel-tags" id="c-p-a"></div>
<div class="comic-panel-tags" id="c-p-p"></div>
<div class="comic-panel-tags" id="c-p-c"></div>
<div class="comic-panel-tags" id="c-p-l"></div>
<div class="comic-panel-tags" id="c-p-ct"></div>
<div class="comic-panel-tags" id="c-p-ts"></div>
<div id="c-p-i-s">
<select class="form-select" oninput="document.getElementById('c-p-i').setAttribute('r', this.value)">
<option value="1" selected>1 in Row</option>
<option value="2">2 in Row</option>
<option value="3">3 in Row</option>
<option value="4">4 in Row</option>
<option value="5">5 in Row</option>
<option value="6">6 in Row</option>
</select>
</div>
<div id="c-p-i" r="1"></div>
</div>
<!-- Comic Action Panel -->
<div id="comic-action-panel">
<div onclick="this.parentElement.style.display='none';keydownEventIndex = 1"></div>
<div>
<div>
<button type="button" onclick="repairComicInfo(0)" title="Repair Comic Title">Repair Comic Name</button>
<button type="button" onclick="repairComicInfo(1)" title="Repair Comic Groups if Have">Repair Comic Groups</button>
<button type="button" onclick="repairComicInfo(2)" title="Repair Comic Artists if Have">Repair Comic Artists</button>
<button type="button" onclick="repairComicInfo(3)" title="Repair Comic Parodies if Have">Repair Comic Parodies</button>
<button type="button" onclick="repairComicInfo(4)" title="Repair Comic Tags if Have">Repair Comic Tags</button>
<button type="button" onclick="repairComicInfo(6)" title="Repair Comic Characters if Have">Repair Comic Characters</button>
<button type="button" onclick="repairComicInfo(7)" title="Repair Comic Languages if Have">Repair Comic Languages</button>
<button type="button" onclick="repairComicInfo(8)" title="Repair Comic Categories if Have">Repair Comic Categories</button>
</div>
<div>
<button type="button" onclick="openRenameComic(Number(comicPanel.getAttribute('cid')))" title="Rename Comic">Rename Comic</button>
<button type="button" onclick="makeThumbForAComic(Number(comicPanel.getAttribute('cid')), 100)" class="success-action" id="c-a-p-o-t" title="Make Thumb for faster loading in Overview">Make Thumb</button>
<button type="button" onclick="OptimizeComicImages(Number(comicPanel.getAttribute('cid')), true, 1)" class="success-action" id="c-a-p-o-b" title="Optimize Image For faster loading and Lower Space taken (May Take Time)">Optimize Images</button>
<button type="button" onclick="openComicExportPanel(Number(comicPanel.getAttribute('cid')))" title="Export Comic | Ctrl+E">Export</button>
<button type="button" onclick="askForDeletingComic(Number(comicPanel.getAttribute('cid')))" class="danger-action" title="Fully Delete Comic">Delete Image</button>
</div>
</div>
</div>
<!-- Slider -->
<div id="comic-slider">
<div id="c-s-ov">
<div id="c-s-o" aindex count></div>
<button type="button" onclick>Gallery</button>
</div>
<div id="c-s-ct">
<div id="c-s-bg" onclick="closeComicSlider()"></div>
<div id="c-s-c">
<div onclick="closeComicSlider()"></div>
<img src id="c-s-i" onclick="toggleComicSliderSize()">
</div>
<div id="c-s-s-p"></div>
<p id="c-s-pg"><span id="c-s-a-pg"></span>/<span id="c-s-m-pg"></span></p>
<button type="button" class="btn-outline btn-outline-primary" id="c-s-p" title="Previous"><svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="arrow-left" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M229.9 473.899l19.799-19.799c4.686-4.686 4.686-12.284 0-16.971L94.569 282H436c6.627 0 12-5.373 12-12v-28c0-6.627-5.373-12-12-12H94.569l155.13-155.13c4.686-4.686 4.686-12.284 0-16.971L229.9 38.101c-4.686-4.686-12.284-4.686-16.971 0L3.515 247.515c-4.686 4.686-4.686 12.284 0 16.971L212.929 473.9c4.686 4.686 12.284 4.686 16.971-.001z"></path></svg></button>
<button type="button" class="btn-outline btn-outline-primary" id="c-s-n" title="Next"><svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="arrow-right" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M218.101 38.101L198.302 57.9c-4.686 4.686-4.686 12.284 0 16.971L353.432 230H12c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h341.432l-155.13 155.13c-4.686 4.686-4.686 12.284 0 16.971l19.799 19.799c4.686 4.686 12.284 4.686 16.971 0l209.414-209.414c4.686-4.686 4.686-12.284 0-16.971L235.071 38.101c-4.686-4.687-12.284-4.687-16.97 0z"></path></svg></button>
<button type="button" class="btn-outline btn-outline-warning" id="c-s-s" onclick="toggleComicSliderSize()" title="Orginal Size | Ctrl+O"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="svg-inline--fa fa-expand fa-w-14 fa-2x"><path fill="currentColor" d="M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"></path></svg></button>
<button type="button" class="btn-outline btn-outline-warning slider-screen" onclick="toggleComicSliderScreen()" title="FullScreen | F11"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="svg-inline--fa fa-expand-arrows-alt fa-w-14 fa-2x"><path fill="currentColor" d="M448 344v112a23.94 23.94 0 0 1-24 24H312c-21.39 0-32.09-25.9-17-41l36.2-36.2L224 295.6 116.77 402.9 153 439c15.09 15.1 4.39 41-17 41H24a23.94 23.94 0 0 1-24-24V344c0-21.4 25.89-32.1 41-17l36.19 36.2L184.46 256 77.18 148.7 41 185c-15.1 15.1-41 4.4-41-17V56a23.94 23.94 0 0 1 24-24h112c21.39 0 32.09 25.9 17 41l-36.2 36.2L224 216.4l107.23-107.3L295 73c-15.09-15.1-4.39-41 17-41h112a23.94 23.94 0 0 1 24 24v112c0 21.4-25.89 32.1-41 17l-36.19-36.2L263.54 256l107.28 107.3L407 327.1c15.1-15.2 41-4.5 41 16.9z"></path></svg></button>
</div>
</div>
<!-- Rename Comic -->
<div id="comic-rename-panel">
<div onclick="closeRenamePanel()"></div>
<div>
<input type="text">
<button type="button" onclick="renameComic(Number(document.getElementById('comic-rename-panel').getAttribute('cid')), this.parentElement.children[0].value)" class="btn btn-danger">Rename</button>
</div>
</div>
<!-- Downloader -->
<div id="downloader"></div>
<!-- Browser -->
<div class="browser" id="browser">
<div class="browser-tab-container" id="browser-tabs"></div>
<button class="borwser-add-tab-btn" onclick="openSite(active_site)"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="svg-inline--fa fa-plus fa-w-14 fa-2x"><g><path fill="currentColor" d="M176 448a32 32 0 0 0 32 32h32a32 32 0 0 0 32-32V304h-96zm64-416h-32a32 32 0 0 0-32 32v144h96V64a32 32 0 0 0-32-32z" style="opacity:.5"></path><path fill="currentColor" d="M448 240v32a32 32 0 0 1-32 32H32a32 32 0 0 1-32-32v-32a32 32 0 0 1 32-32h384a32 32 0 0 1 32 32z"></path></g></svg></button>
<div class="browser-tools-container" id="browser-tools">
<div>
<button id="browser-home-btn" onclick="browserTabHome()" title="Home | Ctrl+Q"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"></path></svg></button>
<button id="browser-prev-btn" onclick="browserPrev()" title="Previous | Ctrl+LeftArrow"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"></path></svg></button>
<button id="browser-next-btn" onclick="browserNext()" title="Next | Ctrl+RightArrow"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"></path></svg></button>
<button id="browser-reload-btn" onclick="browserTabReload()" title="Reload | Ctrl+R"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"></path></svg></button>
<button id="browser-recent-tabs-btn" onclick="openBrowserLastTabs()" title="Open Recent Tab | Ctrl+Shift+T"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M8.309 189.836L184.313 37.851C199.719 24.546 224 35.347 224 56.015v80.053c160.629 1.839 288 34.032 288 186.258 0 61.441-39.581 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 45.344-145.012-21.507-183.51-176.59-185.742V360c0 20.7-24.3 31.453-39.687 18.164l-176.004-152c-11.071-9.562-11.086-26.753 0-36.328z"></path></svg></button>
<button id="browser-open-histories" onclick="toggleBrowserHistory()" title="Open History Panel | Ctrl+H"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"></path></svg></button>
</div>
<div>
<form class="browser-tool-search-form" id="browser-tool-search-form">
<input type="text" placeholder="Search..." oninput="tabs[activeTabIndex].s = this.value" id="browser-tool-search-input">
<button type="submit" id="b-t-s-i-btn"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"></path></svg></button>
</form>
</div>
<div>
<div class="jump-page" id="browser-jump-page-container">
<input type="number" id="bjp-i" oninput> / <span id="bjp-m-p"></span>
</div>
</div>
<button id="browser-sites-btn" onclick="toggleSitePanel()" title="Toggle Browser Sites | Ctrl+S"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><g><path fill="currentColor" d="M104 320H56v-57.59A38.45 38.45 0 0 1 94.41 224H296v-64h48v64h201.59A38.46 38.46 0 0 1 584 262.41V320h-48v-48H344v48h-48v-48H104z" style="opacity:.5"></path><path fill="currentColor" d="M128 352H32a32 32 0 0 0-32 32v96a32 32 0 0 0 32 32h96a32 32 0 0 0 32-32v-96a32 32 0 0 0-32-32zM384 0H256a32 32 0 0 0-32 32v96a32 32 0 0 0 32 32h128a32 32 0 0 0 32-32V32a32 32 0 0 0-32-32zm224 352h-96a32 32 0 0 0-32 32v96a32 32 0 0 0 32 32h96a32 32 0 0 0 32-32v-96a32 32 0 0 0-32-32zm-240 0h-96a32 32 0 0 0-32 32v96a32 32 0 0 0 32 32h96a32 32 0 0 0 32-32v-96a32 32 0 0 0-32-32z"></path></g></svg></button>
<button id="browser-tool-close-browser" onclick="closeBrowser()" title="Exit Browser"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-sign-out fa-w-16 fa-2x"><g class="fa-group"><path fill="currentColor" d="M180 448H96a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h84a12 12 0 0 1 12 12v40a12 12 0 0 1-12 12H96a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h84a12 12 0 0 1 12 12v40a12 12 0 0 1-12 12z" style="opacity:.5"></path><path fill="currentColor" d="M353 88.3l151.9 150.6a24 24 0 0 1 0 34.1l-152 150.8a24.08 24.08 0 0 1-33.9-.1l-21.9-21.9a24.07 24.07 0 0 1 .8-34.7l77.6-71.1H184a23.94 23.94 0 0 1-24-24v-32a23.94 23.94 0 0 1 24-24h191.5l-77.6-71.1a24 24 0 0 1-.7-34.6l21.9-21.9a24 24 0 0 1 33.9-.1z"></path></g></svg></button>
</div>
<div class="browser-pages-container" id="browser-pages"></div>
<div class="browser-menu" id="browser-tab-menu">
<button onclick="pasteTab([tabs[openedMenuTabIndex].s, tabs[openedMenuTabIndex].history, tabs[openedMenuTabIndex].activeHistory, tabs[openedMenuTabIndex].site])">Duplicate</button>
<button onclick="copiedTab = [tabs[openedMenuTabIndex].s, tabs[openedMenuTabIndex].history, tabs[openedMenuTabIndex].activeHistory, tabs[openedMenuTabIndex].site];PopAlert('Tab Copied.')">Copy</button>
</div>
<div class="browser-menu" id="browser-paste-menu">
<button onclick="pasteTab(copiedTab)">Paste</button>
</div>
<div id="browser-sites-panel">
<input type="text" id="b-s-p-s" placeholder="Search..." oninput="BrowserSearchSite(this.value)">
<div id="b-s-p-c"></div>
</div>
<div id="browser-history-panel">
<div id="b-h-p-o-btn">
<button type="button"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><g><path fill="currentColor" d="M168 80a72 72 0 1 0-72 72 72 72 0 0 0 72-72zm-96 0a24 24 0 1 1 24 24 24 24 0 0 1-24-24zm96 352a72 72 0 1 0-72 72 72 72 0 0 0 72-72zm-96 0a24 24 0 1 1 24 24 24 24 0 0 1-24-24zm96-176a72 72 0 1 0-72 72 72 72 0 0 0 72-72zm-96 0a24 24 0 1 1 24 24 24 24 0 0 1-24-24z" style="opacity:.6"></path><path fill="currentColor" d="M120 80a24 24 0 1 0-24 24 24 24 0 0 0 24-24zm0 176a24 24 0 1 0-24 24 24 24 0 0 0 24-24zm0 176a24 24 0 1 0-24 24 24 24 0 0 0 24-24z"></path></g></svg></button>
<div>
<button type="button" onclick="askClearBrowserHistory()">Clear History</button>
</div>
</div>
<button type="button" class="comic-panel-close-btn" id="b-h-p-close-btn" style="top: 85px;" onclick="closeBrowserHistory()" title="Close Browser Histories | Ctrl+H"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><g><path fill="currentColor" d="M9.21,356.07a31.46,31.46,0,0,0,0,44.48l22.24,22.24a31.46,31.46,0,0,0,44.48,0L176,322.72,109.28,256ZM342.79,111.45,320.55,89.21a31.46,31.46,0,0,0-44.48,0L176,189.28,242.72,256,342.79,155.93a31.46,31.46,0,0,0,0-44.48Z" style="opacity:.6"></path><path fill="currentColor" d="M342.79,356.07a31.46,31.46,0,0,1,0,44.48l-22.24,22.24a31.46,31.46,0,0,1-44.48,0L9.21,155.93a31.46,31.46,0,0,1,0-44.48L31.45,89.21a31.46,31.46,0,0,1,44.48,0Z"></path></g></svg></button>
<div id="b-h-p-h-c"></div>
<div id="b-h-p-s-m">
<button type="button" onclick="unSelectAllBrowserHistory()">Cancel</button>
<button type="button" onclick="askForRemovingSelectedBrHistories()">Remove</button>
</div>
<div id="b-h-p-m-c">
<div onclick="this.parentElement.style.display = 'none'"></div>
<div id="b-h-p-m">
<button type="button" onclick="removeBrowserHistoryRow()">Remove</button>
</div>
</div>
<div id="b-h-o-d"></div>
</div>
</div>
<!-- Setting -->
<div id="setting-panel">
<br>
<p class="row-title">Theme</p>
<div class="row">
<div class="col-6 pr-5 pl-5">
<div class="input-row">
<label class="input-row-label">Theme</label>
<div class="input-row-selector" id="s_offline_theme" value>
<div onclick="openSelect(this.parentElement)"></div>
<div class="input-row-selector-overflow">
<p onclick="select(this, 0)">Light Mode</p>
<p onclick="select(this, 1)">Dark Mode</p>
</div>
<span></span>
</div>
<p class="input-row-helper">The App Normal Theme.</p>
</div>
<br>
<div class="input-row">
<label class="input-row-label">Comic Theme</label>
<div class="input-row-selector" id="s_comic_panel_theme" value>
<div onclick="openSelect(this.parentElement)"></div>
<div class="input-row-selector-overflow">
<p onclick="select(this, 0)">Light Mode</p>
<p onclick="select(this, 1)">Dark Mode</p>
</div>
<span></span>
</div>
<p class="input-row-helper">The Downloaded Comic Panel Theme.</p>
</div>
<br><br>
<label class="input-row-label d-block mb-3">Waiting Quality</label>
<div class="column-selector">
<div id="s_waiting_quality" value>
<button cs="0" onclick="columnSelector(this, 0);changeWaitingPreview(10)">Low</button>
<button cs="1" onclick="columnSelector(this, 1);changeWaitingPreview(20)">Medium</button>
<button cs="2" onclick="columnSelector(this, 2);changeWaitingPreview(30)">High</button>
</div>
<div id="waiting-preview">
<img class="spin" style="width:70px;height:70px;" src>
</div>
</div>
<p class="input-row-helper">The Waiting Quality (FPS)<br>Higher FPS = Smother, But More CPU Usage<br>Low => 10 FPS<br>Medium => 20 FPS (Recommend)<br>High => 30 FPS</p>
</div>
<div class="col-6 pr-5 pl-5">
<div class="input-row">
<label class="input-row-label">Pagination Theme</label>
<div class="input-row-selector" id="s_pagination_theme" value>
<div onclick="openSelect(this.parentElement)"></div>
<div class="input-row-selector-overflow">
<p onclick="select(this, 0)">Blue Mode</p>
<p onclick="select(this, 1)">Green Mode</p>
<p onclick="select(this, 2)">Red Mode</p>
<p onclick="select(this, 3)">Orange Mode</p>
<p onclick="select(this, 4)">Purple Mode</p>
<p onclick="select(this, 5)">Yellow Mode</p>
<p onclick="select(this, 6)">Gray Mode</p>
</div>
<span></span>
</div>
<p class="input-row-helper">The Downloaded Comic Pagination Theme.</p>
</div>
<br>
<div class="input-row">
<label class="input-row-label">Browser Theme</label>
<div class="input-row-selector" id="s_browser_theme" value>
<div onclick="openSelect(this.parentElement)"></div>
<div class="input-row-selector-overflow">
<p onclick="select(this, 0)">Light Mode</p>
<p onclick="select(this, 1)">Dark Mode</p>
</div>
<span></span>
</div>
<p class="input-row-helper">The Browser Theme.</p>
</div>
<br>
<div class="input-row">
<label class="input-row-label">Max Comics in a Page</label>
<input class="input-row-input" type="number" oninput="inputLimit(this, 100)" id="s_max_per_page">
<p class="input-row-helper">The Maximum Amount of Comics That Should Show in Offline Parts.<br>Min: 1, Max: 100</p>
</div>
<br><br>
<div class="input-row">
<div class="input-row-checkbox">
<label>Hoverable Downloader</label>
<div>
<input type="checkbox" id="s_hover_downloader">
</div>
</div>
<p class="input-row-helper">Hover The Downloader For Showed Up.</p>
</div>
<br><br>
<div class="input-row">
<div class="input-row-checkbox">
<label>Show Comics Pages</label>
<div>
<input type="checkbox" id="s_show_comic_pages">
</div>
</div>
<p class="input-row-helper">Allways show comic pages in offline overview (Disable Hover to show Comic Pages)</p>
</div>
</div>
</div>
<br><br><br>
<p class="row-title">Notification</p>
<div class="row">
<div class="col-6 pr-5 pl-5">
<div class="input-row">
<div class="input-row-checkbox">
<label>Download Finished</label>
<div>
<input type="checkbox" id="s_notification_download_finish">
</div>
</div>
<p class="input-row-helper">Show Notification When Download Finished.</p>
</div>
</div>
<div class="col-6 pr-5 pl-5">
<div class="input-row">
<div class="input-row-checkbox">
<label>Optimization Finished</label>
<div>
<input type="checkbox" id="s_notification_optimization_finish">
</div>
</div>
<p class="input-row-helper">Show Notification When Optimization Finished.</p>
</div>
</div>
</div>
<br><br><br>
<p class="row-title">Other</p>
<div class="row">
<div class="col-6 pr-5 pl-5">
<br>
<div class="input-row">
<div class="input-row-checkbox">
<label>Lazy Loading</label>
<div>
<input type="checkbox" id="s_lazy_loading">
</div>
</div>
<p class="input-row-helper">This Ability is Recommend.<br>Do not Start Loading The Images That aren't in viewport.</p>
</div>
<br><br>
<div class="input-row">
<label class="input-row-label">Max Multi-Downloading Comics</label>
<input class="input-row-input" type="number" oninput="inputLimit(this, 12)" id="s_download_limit">
<p class="input-row-helper">The Maximum Amount of Comics That Can Be Downloading At Same Time.<br>Min: 1, Max: 12</p>
</div>
<br><br>
<div class="input-row">
<p class="input-row-label">Download Location</p>
<div class="input-row-checkbox input-row-file">
<label title=""></label>
<div>
<button type="button" id="s_file_location" location="" onclick="if (downloadingList.length == 0) { GetFileLocationForInput(this) } else { PopAlert('You cannot Change Saving Location when downloading.', 'danger') }">Choose</button>
</div>
</div>
<p class="input-row-helper">Choose a Location For Saving Downloaded Comics.<br>If you Change The Location App will Reload.</p>
</div>
<br><br>
<div class="input-row">
<div class="input-row-checkbox">
<label>Show UnOptimize Comic</label>
<div>
<input type="checkbox" id="s_show_unoptimize">
</div>
</div>
<p class="input-row-helper">This Ability will Highlight UnOptimized Comics.</p>
</div>
<br><br>
<div class="input-row">
<div class="input-row-checkbox">
<label>Auto Close Optimize Panel</label>
<div>
<input type="checkbox" id="s_auto_close_optimize_panel">
</div>
</div>
<p class="input-row-helper">Automaticly Close Optimize Panel After Finishing Optimization.</p>
</div>
</div>
<div class="col-6 pr-5 pl-5">
<div class="input-row">
<label class="input-row-label">Downloading Image Quality</label>
<div class="input-row-selector" id="s_img_graphic" value>
<div onclick="openSelect(this.parentElement)"></div>
<div class="input-row-selector-overflow">
<p onclick="select(this, 0)">Low</p>
<p onclick="select(this, 1)">High</p>
</div>
<span></span>
</div>
<p class="input-row-helper">Recommend (High).<br>The Quality of Downloading Images.<br>(If High) App will check if Comic Have High Quality Image Then it will Download it, But If It Doesn't Then it will Download Low Quality.</p>
</div>
<br><br>
<div class="input-row">
<label class="input-row-label">Search Speed</label>
<div class="input-row-selector" id="s_search_speed" value>
<div onclick="openSelect(this.parentElement)"></div>
<div class="input-row-selector-overflow">
<p onclick="select(this, 0)">Dynamic</p>
<p onclick="select(this, 1)">Fast</p>
<p onclick="select(this, 2)">Normal</p>
<p onclick="select(this, 3)">Slow</p>
</div>
<span></span>
</div>
<p class="input-row-helper">Recommend (Normal/Fast).<br>The Delay of searching in Downloaded Comics.<br>Dynamic = No Delay (Not Recommended For Low PC)<br>Fast = 0.3 Secend<br>Normal = 0.7 Secend<br>Slow = 1 Secend (For Low-End PC)</p>
</div>
<br><br><br>
<div class="input-row">
<div class="input-row-checkbox">
<label>Auto Update Check</label>
<div>
<input type="checkbox" id="s_check_update">
</div>
</div>
<p class="input-row-helper">Check App Update After App Loading.</p>
</div>
<br><br>
<div class="input-row">
<div class="input-row-checkbox">
<label>Open Browser On Startup</label>
<div>
<input type="checkbox" id="s_open_br_startup">
</div>
</div>
<p class="input-row-helper">OpenUp The Browser on App Startup (After Loading Finished).</p>
</div>
</div>
</div>
<br><br><br>
<div class="row">
<div class="col-6 pr-5 pl-5">
<button onclick="saveSetting(false)" class="btn btn-primary" title="Save Setting | Ctrl+S">Save</button>
<button onclick="closeSetting()" class="btn btn-danger" title="Cancel | Ctrl+W">Cancel</button>
<button onclick="CheckUpdate(true)" class="btn btn-primary">Check Update</button>
</div>
<div class="col-6 pr-5 pl-5"></div>
</div>
</div>
<!-- New Release -->
<div id="new-release">
<button type="button" onclick="this.parentElement.style.display='none'" id="release-close">X</button>
<p>Title</p>
<button type="button" onclick="UpdateApp()">Update</button>
<button type="button" onclick="UpdateNotes()">What's New?</button>
</div>
<!-- Release Note -->
<div id="release-note">
<div onclick="closeReleaseNote()"></div>
<div id="r-n-n-c">
<div id="r-n-n-v"></div>
<div id="r-n-n-n"></div>
<div></div>
</div>
</div>
<!-- Export Panel -->
<div id="export-panel">
<div onclick="closeComicExportPanel()"></div>
<button type="button" onclick="closeComicExportPanel()">X</button>
<div>
<h1>Export Comic</h1>
<br>
<p>Export Location:</p>
<div class="ex-p-loc">
<input type="text" id="ex-p-l-input" placeholder="Export Location...">
<button type="button" onclick="exportComicBrowseLocation()">Browse</button>
</div>
<br>
<p>Export FileName:</p>
<input type="text" id="ex-p-l-fname" placeholder="FileName...">
<br>
<p style="text-align:center">Export Format:</p>
<div id="ex-p-f" f='zip'>
<div>
<input type="radio" name="ex-f" value="zip" onclick="this.parentElement.parentElement.setAttribute('f', 'zip')" checked>
<span>Zip</span>
</div>
<div>
<input type="radio" name="ex-f" value="cbr" onclick="this.parentElement.parentElement.setAttribute('f', 'cbr')">
<span>Cbr</span>
</div>
</div>
<p style="text-align:center;color:#f00;font-size:14px;margin-bottom:7px;"><strong>Warning:</strong> More Pages(Images) Comic have + space, will make Exporting Harder, so be careful, maybe App Crash!<br><strong>Note:</strong> For Faster Procress and Lower The RAM Usage and Lowering The Output Size, Please Optimize Comic First.</p>
<div style="display:flex;justify-content:center;align-items:center;width:100%">
<button class="btn btn-primary" type="button" onclick="checkExportComicInfo()" title="Export">Export</button>
</div>
</div>
</div>
</body>
</html>