forked from MarshMeadow/dantotustatic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.html
899 lines (880 loc) · 50 KB
/
install.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
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Explore our open-source mobile app tailored for Anilist enthusiasts. Inspired by Saikou, our app is powered by Tachi/Aniyomi extensions for an enhanced experience. Download our app now to immerse yourself in a world of Anime and Manga like never before!">
<meta name="keywords" content="Anilist Client, OpenSource, Tachiyomi, Aniyomi, Anime app, Anilist Sync">
<meta property="og:title" content="Install Jeanne On Your Device">
<meta property="og:description" content="Open source mobile Anilist client based off Saikou with Tachi/Aniyomi extensions">
<meta property="og:url" content="/install">
<meta property="og:image" content="https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6110204-X922sXE3M8RC.png">
<meta name="theme-color" content="#b24b60" />
<link rel="apple-touch-icon" sizes="180x180" href="https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6110204-X922sXE3M8RC.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6110204-X922sXE3M8RC.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6110204-X922sXE3M8RC.png">
<link rel="manifest" href="favicons/site.webmanifest">
<link href="style.css" rel="stylesheet" type="text/css" />
<meta name="msapplication-TileColor" content="#da532c">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://kit.fontawesome.com/0a1007e48a.js" crossorigin="anonymous"></script>
<title>Jeanne</title>
<style>
/* CSS Animation for shaking */
@keyframes shake {
0% {
transform: translateX(0);
}
25% {
transform: translateX(-5px) rotate(-1deg);
}
50% {
transform: translateX(5px) rotate(1deg);
}
75% {
transform: translateX(-5px) rotate(-1deg);
}
100% {
transform: translateX(0);
}
}
.shake:hover {
animation: shake 0.5s infinite;
}
</style>
<style>
/* CSS Animation for shaking */
@keyframes shake {
0% {
transform: translateX(0);
}
25% {
transform: translateX(-5px) rotate(-1deg);
}
50% {
transform: translateX(5px) rotate(1deg);
}
75% {
transform: translateX(-5px) rotate(-1deg);
}
100% {
transform: translateX(0);
}
}
.shake:hover {
animation: shake 0.5s infinite;
}
</style>
</head>
<style>
html,
body {
overflow-x: hidden;
scroll-behavior: smooth;
}
</style>
<body class="bg-indigo-950">
<!-- NAVBAR -->
<nav class="bg-slate-950 bg-opacity-0 transition bg-transition text-white p-2 fixed w-full z-40">
<div class="container mx-auto flex justify-between">
<div class="flex items-center">
<a href="javascript:void(0);" onclick="incrementCounter()" class="text-2xl font-bold">
<img src="https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6110204-X922sXE3M8RC.png" alt="Dantotsu" class="h-10 transition-opacity hover:opacity-80" />
</a>
<script>
// Retrieve counter value from sessionStorage or default to 0
var cursedCounter = parseInt(sessionStorage.getItem("cursedCounter")) || 0;
function incrementCounter() {
cursedCounter++;
if (cursedCounter % 3 === 0) {
// Redirect to rickroll video
window.location.href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ";
// Reset counter after redirect
sessionStorage.removeItem("cursedCounter");
} else {
// Store the updated counter value in sessionStorage
sessionStorage.setItem("cursedCounter", cursedCounter);
// Reload the page
window.location.reload(true);
}
}
</script>
</div>
<div class="flex items-center">
<!-- <div class="relative group"><button id="languageDropdown" class="mr-4 transition-colors hover:text-purple-500"><i class="fa-solid fa-globe"></i></button><ul id="languageOptions" class="absolute hidden bg-white text-black p-2 space-y-1 rounded-lg shadow-md right-0 mt-3"><button class="language-button" data-lang="en">English</button><button class="language-button" data-lang="hi">Hindi</button><button class="language-button" data-lang="es">Spanish</button></ul></div> -->
<!--<a href="https://www.buymeacoffee.com/rebelonion" class="mr-4 transition-colors hover:text-purple-500">
<i class="fa-solid fa-mug-saucer"></i>
</a>
<a href="https://discord.com/invite/4HPZ5nAWwM" class="mr-4 transition-colors hover:text-purple-500">
<i class="fa-brands fa-discord"></i>
</a>
<a href="https://t.me/+gzBCQExtLQo1YTNh" class="mr-4 transition-colors hover:text-purple-500">
<i class="fa-brands fa-telegram"></i>
</a>
<a href="https://github.com/rebelonion/Dantotsu" class="mr-4 transition-colors hover:text-purple-500">
<i class="fa-brands fa-github"></i>
</a>-->
</div>
</div>
</nav>
<!-- HERO -->
<section id="hero" class="text-white py-20 h-screen shadow-lg relative" style="background-image: url('images/ei_1698849603612-removebg-preview-1.png'); background-size: cover; background-position: center;">
<div class="container h-full mx-auto flex flex-col justify-center items-center relative z-10">
<div class="text-center">
<h1 class="text-5xl font-bold" data-lang="en">Installation</h1> <p class="text-sm" data-lang="en">Join for support! <a href="https://discord.com/invite/4HPZ5nAWwM">
<b>Discord <b>
</a> or <a href="https://t.me/+gzBCQExtLQo1YTNh"> Telegram</a>
<div class="block md:flex justify-center items-center mt-8 space-x-4 w-auto">
<!-- Download button for Universal app -->
<div class="mb-4">
<button id="downloadButton1" class="bg-purple-950 hover:bg-purple-600 text-white font-bold py-3 px-7 rounded-full transition-colors" onclick="toggleUniversalArchitecturePopup()">DOWNLOAD STABLE RELEASE</button>
</div>
<!-- Universal Architecture selection popup -->
<div id="universalArchitecturePopup" style="display: none; width: 315px; padding-bottom: 20px; top: calc(40% + 3px); left: 50%; transform: translateX(-50%); background-color: #212126;" class="rounded-md absolute z-10 bg-opacity-75 p-4 popup">
<!-- Close button -->
<button class="absolute top-0 right-0 mt-2 mr-2 text-gray-500 hover:text-gray-700 focus:outline-none" onclick="closeUniversalArchitecturePopup()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
<br>
<!-- Release Notes -->
<h2 class="text-lg font-semibold mb-1" style="font-family: Arial, sans-serif; font-size: 14px;">What's New On Stable Release?</h2>
<!-- Transparent Line -->
<div style="border-bottom: 1px solid #32373e; margin-bottom: 10px;"></div>
<p id="universalReleaseNotes" class="text-xs mb-2" style="font-family: 'Roboto', sans-serif; font-weight: normal;"></p>
<!-- View Full Changelogs button -->
<button class="text-blue-500 hover:underline text-sm mb-2" onclick="viewFullChangelogs('universal')" style="font-family: Arial, sans-serif; font-size: 10px;">View All Changelogs</button>
<!-- Last updated timestamp for Beta -->
<p id="universalLastUpdate" class="text-xs mb-2" style="font-family: 'Roboto', sans-serif; font-weight: normal;"></p>
<!-- Transparent Line -->
<div style="border-bottom: 1px solid #32373e; margin-bottom: 10px;"></div>
<!-- Title -->
<h2 class="text-lg font-semibold mb-1" style="font-family: Arial, sans-serif; font-size: 14px;">Download</h2>
<!-- Architecture options -->
<ul class="space-y-2" id="universalArchitectureList">
<!-- Architecture options will be dynamically added here -->
</ul>
</div>
<!-- Download button for Beta app -->
<div class="mb-4">
<button id="downloadButton2" class="text-white bg-gradient-to-r from-blue-500 to-cyan-500 hover:bg-gradient-to-l focus:ring-4 focus:outline-none focus:ring-purple-200 dark:focus:ring-purple-800 rounded-full py-3 px-10 font-bold" onclick="toggleBetaArchitecturePopup()">DOWNLOAD BETA RELEASE</button>
</div>
<!-- Beta Architecture selection popup -->
<div id="betaArchitecturePopup" style="display: none; width: 315px; padding-bottom: 20px; top: calc(40% + 3px); left: 50%; transform: translateX(-50%); background-color: #212126;" class="rounded-md absolute z-10 bg-opacity-75 p-4 popup">
<!-- Close button -->
<button class="absolute top-0 right-0 mt-2 mr-2 text-gray-500 hover:text-gray-700 focus:outline-none" onclick="closeBetaArchitecturePopup()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
<br>
<!-- Release Notes -->
<h2 class="text-lg font-semibold mb-1" style="font-family: Arial, sans-serif; font-size: 14px;">What's New On Beta Release?</h2>
<!-- Transparent Line -->
<div style="border-bottom: 1px solid #32373e; margin-bottom: 10px;"></div>
<p id="betaReleaseNotes" class="text-xs mb-2" style="font-family: 'Roboto', sans-serif; font-weight: normal;"></p>
<!-- View Full Changelogs button -->
<button class="text-blue-500 hover:underline text-sm mb-2" onclick="viewFullChangelogs('beta')" style="font-family: Arial, sans-serif; font-size: 10px;">View All Changelogs</button>
<!-- Last updated timestamp for Beta -->
<p id="betaLastUpdate" class="text-xs mb-2" style="font-family: 'Roboto', sans-serif; font-weight: normal;"></p>
<!-- Transparent Line -->
<div style="border-bottom: 1px solid #32373e; margin-bottom: 10px;"></div>
<!-- Title -->
<h2 class="text-lg font-semibold mb-1" style="font-family: Arial, sans-serif; font-size: 14px;">Download</h2>
<!-- Architecture options -->
<ul class="space-y-2" id="betaArchitectureList">
<!-- Architecture options will be dynamically added here -->
</ul>
</div>
<!-- Download button for Alpha app -->
<div>
<button id="downloadButton3" class="text-white bg-gradient-to-r from-red-500 to-pink-500 hover:bg-gradient-to-l focus:ring-4 focus:outline-none focus:ring-purple-200 dark:focus:ring-purple-800 rounded-full py-3 px-10 font-bold" onclick="toggleAlphaArchitecturePopup()">DOWNLOAD ALPHA RELEASE</button>
</div>
<!-- Alpha Architecture selection popup -->
<div id="architecturePopup" style="display: none; width: 315px; padding-bottom: 20px; top: calc(40% + 3px); left: 50%; transform: translateX(-50%); background-color: #212126;" class="rounded-md absolute z-10 bg-opacity-75 p-4 popup">
<!-- Close button -->
<button class="absolute top-0 right-0 mt-2 mr-2 text-gray-500 hover:text-gray-700 focus:outline-none" onclick="closeArchitecturePopup()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
<br>
<!-- Release Notes -->
<h2 class="text-lg font-semibold mb-1" style="font-family: Arial, sans-serif; font-size: 14px;">What's New On Alpha Release?</h2>
<!-- Transparent Line -->
<div style="border-bottom: 1px solid #32373e; margin-bottom: 10px;"></div>
<p id="alphaReleaseNotes" class="text-xs mb-2" style="font-family: 'Roboto', sans-serif; font-weight: normal;"></p>
<!-- View Full Changelogs button -->
<button class="text-blue-500 hover:underline text-sm mb-2" onclick="viewFullChangelogs('alpha')" style="font-family: Arial, sans-serif; font-size: 10px;">View All Changelogs</button>
<!-- Last updated timestamp for Alpha -->
<p id="alphaLastUpdate" class="text-xs mb-2" style="font-family: 'Roboto', sans-serif; font-weight: normal;"></p>
<!-- Transparent Line -->
<div style="border-bottom: 1px solid #32373e; margin-bottom: 10px;"></div>
<!-- Title -->
<h2 class="text-lg font-semibold mb-1" style="font-family: Arial, sans-serif; font-size: 14px;">Download</h2>
<!-- Architecture options -->
<ul class="space-y-2" id="architectureList">
<!-- Architecture options will be dynamically added here -->
</ul>
<!-- Information link -->
<div class="text-center mt-4">
<a href="#" onclick="toggleInfoPopup()" class="text-blue-500 hover:underline text-sm" style="font-family: Arial, sans-serif; font-size: 10px;">ⓘ Click For Info On Architecture</a>
</div>
</div>
<!-- Information popup -->
<div id="infoPopup" style="display: none; width: 315px; padding-bottom: 20px; top: calc(40% + 3px); left: 50%; transform: translateX(-50%); background-color: #212126;" class="rounded-md absolute z-10 bg-opacity-75 p-4 popup">
<!-- Close button -->
<button class="absolute top-0 left-2 mt-2 mr-2 text-gray-500 hover:text-gray-700 focus:outline-none" onclick="toggleInfoPopup()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
</svg>
</button>
<br>
<!-- Information text -->
<div class="text-xs">
<p class="mb-1">
<strong>
<u>ARM64-v8a</u> • </strong>
<i>Newer devices (post-2016)</i>
</p>
<p class="mb-1">
<strong>
<u>armeabi-v7a</u> • </strong>
<i>Older or budget devices (pre-2016)</i>
</p>
<p class="mb-1">
<strong>
<u>x86</u> • </strong>
<i>Some tablets with Intel processors</i>
</p>
<p class="mb-1">
<strong>
<u>x86_64</u> • </strong>
<i>Newer tablets with 64-bit Intel processors</i>
</p>
<br>
<p class="mb-1">
<strong>
<u>To check:</u>
</strong>
</p>
<p class="mb-1">
<strong>
<u>App</u> • </strong>
<i>Use "CPU-Z" or "Droid Hardware Info" from Google Play</i>
</p>
<p class="mb-1">
<strong>
<u>Online</u> • </strong>
<i>Check the manufacturer's website or tech review sites</i>
</p>
</div>
</div>
<style>
.popup {
border: 0px solid white;
}
</style>
<script>
let currentPopup = null;
// Function to toggle the architecture selection popup for Universal App
function toggleUniversalArchitecturePopup() {
fetchUniversalReleaseInfo(); // Fetch Universal release info
togglePopup('universalArchitecturePopup');
}
// Function to toggle the architecture selection popup for Beta App
function toggleBetaArchitecturePopup() {
fetchBetaReleaseInfo(); // Fetch Beta release info
togglePopup('betaArchitecturePopup');
}
// Function to toggle the architecture selection popup for Alpha App
function toggleAlphaArchitecturePopup() {
fetchReleaseInfo(); // Fetch Alpha release info
togglePopup('architecturePopup');
}
// Function to toggle any popup by ID
function togglePopup(popupId) {
const popup = document.getElementById(popupId);
if (popup.style.display === 'none') {
closeCurrentPopup(); // Close current popup if any
popup.style.display = 'block'; // Open new popup
currentPopup = popup;
} else {
popup.style.display = 'none'; // Close popup if already open
currentPopup = null;
}
}
// Function to close the current popup
function closeCurrentPopup() {
if (currentPopup) {
currentPopup.style.display = 'none';
currentPopup = null;
}
}
// Function to fetch release information for Universal App from GitHub API
async function fetchUniversalReleaseInfo() {
const repo = 'rebelonion/Dantotsu'; // GitHub repository owner and name
const apiUrl = `https://api.github.com/repos/${repo}/releases/latest`;
try {
const response = await fetch(apiUrl);
const data = await response.json();
if (response.ok) {
// Update release notes
document.getElementById('universalReleaseNotes').textContent = data.body;
// Truncate release notes to 5 lines initially
truncateReleaseNotes('universalReleaseNotes');
updateUniversalArchitectureButtons(data.assets);
// Add last update timestamp
const lastUpdateTimestamp = new Date(data.published_at).toISOString(); // Convert to ISO string
document.getElementById('universalLastUpdate').innerHTML = `Last update:
<time datetime="${lastUpdateTimestamp}">${formatTimestamp(lastUpdateTimestamp)}</time>`;
} else {
console.error('Failed to fetch release information:', data.message);
}
} catch (error) {
console.error('Error fetching release information:', error);
}
}
// Function to redirect to the download link for the Alpha APK
function redirectToUniversalApkDownload(downloadUrl) {
// Check if the download URL is provided
if (downloadUrl) {
// Open the download link in a new tab
window.open(downloadUrl, '_blank');
} else {
// Notify the user if the download link is not available
alert('Download link is not available.');
}
}
// Function to fetch release information for Beta App from GitHub API
async function fetchBetaReleaseInfo() {
const repo = 'rebelonion/Dantotsu'; // GitHub repository owner and name
const apiUrl = `https://api.github.com/repos/${repo}/releases`;
try {
const response = await fetch(apiUrl);
const data = await response.json();
if (response.ok) {
// Filter out releases with "beta" in their name
const betaRelease = data.find(release => release.name.toLowerCase().includes('beta'));
if (betaRelease) {
// Update release notes
document.getElementById('betaReleaseNotes').textContent = betaRelease.body;
// Truncate release notes to 5 lines initially
truncateReleaseNotes('betaReleaseNotes');
updateBetaArchitectureButtons(betaRelease.assets);
// Add last update timestamp
const lastUpdateTimestamp = new Date(betaRelease.published_at).toISOString(); // Use betaRelease's timestamp
document.getElementById('betaLastUpdate').innerHTML = `Last update:
<time datetime="${lastUpdateTimestamp}">${formatTimestamp(lastUpdateTimestamp)}</time>`;
} else {
console.error('No beta release found.');
alert('No beta release found.');
}
} else {
console.error('Failed to fetch release information from GitHub.');
alert('Failed to fetch release information from GitHub.');
}
} catch (error) {
console.error('Error fetching beta release information:', error);
alert('Error fetching beta release information from GitHub.');
}
}
// Function to redirect to the download link for the Beta APK
function redirectToBetaApkDownload(downloadUrl) {
// Check if the download URL is provided
if (downloadUrl) {
// Open the download link in a new tab
window.open(downloadUrl, '_blank');
} else {
// Notify the user if the download link is not available
alert('Download link is not available.');
}
}
// Function to fetch release information for Alpha App from GitHub API
async function fetchReleaseInfo() {
const repo = 'kaorlol/dantotsu-updater'; // GitHub repository owner and name
const apiUrl = `https://api.github.com/repos/${repo}/releases/latest`;
try {
const response = await fetch(apiUrl);
const data = await response.json();
if (response.ok) {
// Update release notes
document.getElementById('alphaReleaseNotes').textContent = data.body;
// Truncate release notes to 5 lines initially
truncateReleaseNotes('alphaReleaseNotes');
updateArchitectureButtons(data.assets);
// Add last update timestamp
const lastUpdateTimestamp = new Date(data.published_at).toISOString(); // Convert to ISO string
document.getElementById('alphaLastUpdate').innerHTML = `Last update:
<time datetime="${lastUpdateTimestamp}">${formatTimestamp(lastUpdateTimestamp)}</time>`;
} else {
console.error('Failed to fetch release information:', data.message);
}
} catch (error) {
console.error('Error fetching release information:', error);
}
}
// Function to format timestamp in human-readable format
function formatTimestamp(timestamp) {
const currentDate = new Date();
const lastUpdateDate = new Date(timestamp); // Use provided timestamp
const diff = Math.floor((currentDate - lastUpdateDate) / 1000); // Difference in seconds
if (diff < 60) {
return 'just now';
} else if (diff < 3600) {
const minutes = Math.floor(diff / 60);
return `${minutes} minute${minutes > 1 ? 's' : ''} ago`;
} else if (diff < 86400) {
const hours = Math.floor(diff / 3600);
return `${hours} hour${hours > 1 ? 's' : ''} ago`;
} else {
const days = Math.floor(diff / 86400);
return `${days} day${days > 1 ? 's' : ''} ago`;
}
}
// Call fetch function to load release information
fetchReleaseInfo();
fetchUniversalReleaseInfo();
fetchBetaReleaseInfo();
// Function to redirect to the download link for the Alpha APK
function redirectToApkDownload(downloadUrl) {
// Check if the download URL is provided
if (downloadUrl) {
// Open the download link in a new tab
window.open(downloadUrl, '_blank');
} else {
// Notify the user if the download link is not available
alert('Download link is not available.');
}
}
// Function to update architecture buttons for Universal App with file sizes and download icons
function updateUniversalArchitectureButtons(assets) {
const universalArchitectureList = document.getElementById('universalArchitectureList');
universalArchitectureList.innerHTML = ''; // Clear existing buttons
assets.forEach(asset => {
const architecture = asset.name.split('.')[0]; // Extract architecture from file name
const fileSize = (asset.size / (1024 * 1024)).toFixed(2); // Convert bytes to MB
const listItem = document.createElement('li');
listItem.classList.add('text-center'); // Align content center
const dot = document.createElement('span');
dot.textContent = '\u2022 '; // Unicode character for bullet point
listItem.appendChild(dot);
const button = document.createElement('button');
button.textContent = `${architecture} (${fileSize} MB)`;
button.classList.add('text-base', 'font-normal', 'hover:underline', 'focus:outline-none', 'focus:ring', 'rounded-md', 'py-1');
button.onclick = () => redirectToUniversalApkDownload(asset.browser_download_url); // Use browser download URL
const downloadIcon = document.createElement('i');
downloadIcon.className = 'fa fa-download ml-2'; // Adding downloading icon
button.appendChild(downloadIcon); // Adding download icon
listItem.appendChild(button);
universalArchitectureList.appendChild(listItem);
});
}
// Function to update architecture buttons for Beta App with file sizes and download icons
function updateBetaArchitectureButtons(assets) {
const betaArchitectureList = document.getElementById('betaArchitectureList');
betaArchitectureList.innerHTML = ''; // Clear existing buttons
assets.forEach(asset => {
const architecture = asset.name.split('.')[0]; // Extract architecture from file name
const fileSize = (asset.size / (1024 * 1024)).toFixed(2); // Convert bytes to MB
const listItem = document.createElement('li');
listItem.classList.add('text-center'); // Align content center
const dot = document.createElement('span');
dot.textContent = '\u2022 '; // Unicode character for bullet point
listItem.appendChild(dot);
const button = document.createElement('button');
button.textContent = `${architecture} (${fileSize} MB)`;
button.classList.add('text-base', 'font-normal', 'hover:underline', 'focus:outline-none', 'focus:ring', 'rounded-md', 'py-1');
button.onclick = () => redirectToBetaApkDownload(asset.browser_download_url); // Use browser download URL
const downloadIcon = document.createElement('i');
downloadIcon.className = 'fa fa-download ml-2'; // Adding downloading icon
button.appendChild(downloadIcon); // Adding download icon
listItem.appendChild(button);
betaArchitectureList.appendChild(listItem);
});
}
// Function to update architecture buttons for Alpha App with file sizes and download icons
function updateArchitectureButtons(assets) {
const architectureList = document.getElementById('architectureList');
architectureList.innerHTML = ''; // Clear existing buttons
assets.forEach(asset => {
const architecture = asset.name.split('.')[0]; // Extract architecture from file name
const fileSize = (asset.size / (1024 * 1024)).toFixed(2); // Convert bytes to MB
const listItem = document.createElement('li');
listItem.classList.add('text-center'); // Align content center
const dot = document.createElement('span');
dot.textContent = '\u2022 '; // Unicode character for bullet point
listItem.appendChild(dot);
const button = document.createElement('button');
button.textContent = `${architecture} (${fileSize} MB)`;
button.classList.add('text-base', 'font-normal', 'hover:underline', 'focus:outline-none', 'focus:ring', 'rounded-md', 'py-1');
button.onclick = () => redirectToApkDownload(asset.browser_download_url); // Use browser download URL
const downloadIcon = document.createElement('i');
downloadIcon.className = 'fa fa-download ml-2'; // Adding downloading icon
button.appendChild(downloadIcon); // Adding download icon
listItem.appendChild(button);
architectureList.appendChild(listItem);
});
}
// Function to truncate release notes to 5 lines
function truncateReleaseNotes(elementId) {
const releaseNotes = document.getElementById(elementId);
const lines = releaseNotes.textContent.split('\n');
if (lines.length > 10) {
releaseNotes.textContent = lines.slice(0, 10).join('\n') + '...';
}
}
// Function to close the architecture selection popup for Universal App
function closeUniversalArchitecturePopup() {
const universalArchitecturePopup = document.getElementById('universalArchitecturePopup');
universalArchitecturePopup.style.display = 'none';
}
// Function to close the architecture selection popup for Beta App
function closeBetaArchitecturePopup() {
const BetaArchitecturePopup = document.getElementById('betaArchitecturePopup');
betaArchitecturePopup.style.display = 'none';
}
// Function to close the architecture selection popup for Alpha App
function closeArchitecturePopup() {
const architecturePopup = document.getElementById('architecturePopup');
architecturePopup.style.display = 'none';
}
// Function to toggle the information popup
function toggleInfoPopup() {
const infoPopup = document.getElementById('infoPopup');
const architecturePopup = document.getElementById('architecturePopup');
if (infoPopup.style.display === 'none') {
infoPopup.style.display = 'block';
architecturePopup.style.display = 'none'; // Hide architecture popup
} else {
infoPopup.style.display = 'none';
architecturePopup.style.display = 'block'; // Show architecture popup
}
}
// Function to view full changelogs of universal
function viewFullChangelogs(app) {
let url;
switch (app) {
case 'universal':
url = 'https://github.com/rebelonion/Dantotsu/releases/latest';
break;
case 'beta':
fetchFullBetaChangelogs();
return;
case 'alpha':
url = 'https://github.com/kaorlol/dantotsu-updater/releases';
break;
default:
return;
}
window.open(url, '_blank');
}
// Function to fetch full changelogs of beta
async function fetchFullBetaChangelogs() {
const apiUrl = 'https://api.github.com/repos/rebelonion/Dantotsu/releases';
try {
const response = await fetch(apiUrl);
if (!response.ok) throw new Error('Failed to fetch release information');
const data = await response.json();
const betaRelease = data.find(release => release.name.toLowerCase().includes('beta'));
if (betaRelease) {
window.open(betaRelease.html_url, '_blank');
} else {
console.error('No beta release found.');
alert('No beta release found.');
}
} catch (error) {
console.error('Error fetching beta release information:', error);
alert('Error fetching beta release information from GitHub.');
}
}
</script>
<br>
<!-- Extension button -->
<a href="#" class="bg-purple-950 hover:bg-purple-600 text-white font-bold py-3 px-6 rounded-full font-bold transition-colors" onclick="toggleExtensionPopup()">Extensions</a>
<!-- Extension selection popup -->
<div id="extensionPopup" style="display: none; width: 230px; padding-bottom: 20px; top: calc(73% + 3px); left: 50%; transform: translateX(-50%); background-color: #212126;" class="rounded-md absolute z-10 bg-opacity-75 p-4 popup">
<!-- Close button -->
<button class="absolute top-0 right-0 mt-2 mr-2 text-gray-500 hover:text-gray-700 focus:outline-none" onclick="closeExtensionPopup()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
<!-- Buttons for anime and manga -->
<button class="bg-purple-700 hover:bg-purple-500 text-white font-bold py-2 px-4 rounded-full font-bold transition-colors mr-2" onclick="selectCategory('anime')">Anime</button>
<button class="bg-purple-700 hover:bg-purple-500 text-white font-bold py-2 px-4 rounded-full font-bold transition-colors" onclick="selectCategory('manga')">Manga</button>
</div>
<script>
// Function to toggle the extension selection popup
function toggleExtensionPopup() {
togglePopup('extensionPopup');
}
// Function to toggle any popup by ID
function togglePopup(popupId) {
const popup = document.getElementById(popupId);
if (popup.style.display === 'none') {
closeCurrentPopup(); // Close current popup if any
popup.style.display = 'block'; // Open new popup
currentPopup = popup;
} else {
popup.style.display = 'none'; // Close popup if already open
currentPopup = null;
}
}
// Function to close the current popup
function closeExtensionPopup() {
if (currentPopup) {
currentPopup.style.display = 'none';
currentPopup = null;
}
}
// Function to handle category selection
function selectCategory(category) {
if (category === 'anime') {
window.location.href = "/anime-extensions";
} else if (category === 'manga') {
window.location.href = "/manga-extensions";
}
}
</script>
<!-- View versions -->
<!--<a href="https://github.com/rebelonion/Dantotsu/releases" class="bg-purple-950 hover:bg-purple-600 text-white font-bold py-3 px-6 rounded-full font-bold transition-colors">Versions</a>-->
</div>
<br>
<div style="display: flex; flex-direction: column; align-items: center;">
<!-- Total download count button -->
<button id="totalDownloadCountButton" class="bg-purple-950 hover:bg-purple-600 text-white font-bold py-2 px-6 rounded-md font-bold transition-colors" style="background-color: #555454; opacity: 0.8; height: 40px; display: flex; align-items: center;">
<img src="images/androidicon.png" alt="Android Icon" style="width: 20px; height: 20px; margin-right: 5px;">
<span>Downloads</span>
</button>
</div>
<script>
// Function to fetch and display the total download count
async function fetchTotalDownloadCount() {
const stableRepo = 'rebelonion/Dantotsu'; // GitHub repository owner and name for stable and beta release
const alphaRepo = 'kaorlol/dantotsu-updater'; // GitHub repository owner and name for alpha release
try {
const stableResponse = await fetch(`https://api.github.com/repos/${stableRepo}/releases`);
const alphaResponse = await fetch(`https://api.github.com/repos/${alphaRepo}/releases`);
const [stableData, alphaData] = await Promise.all([stableResponse.json(), alphaResponse.json()]);
const totalDownloadCount = calculateTotalDownloadCount(stableData) + calculateTotalDownloadCount(alphaData);
// Update the button text with the total download count and the Android icon
document.getElementById('totalDownloadCountButton').innerHTML = `
<img src="images/androidicon.png" alt="Android Icon" style="width: 20px; height: 20px; margin-right: 5px;"> Downloads: ${totalDownloadCount}`;
} catch (error) {
console.error('Error fetching total download count:', error);
// Display an error message to the user if there's an issue fetching the download count
alert('Error fetching total download count. Please try again later.');
}
}
// Function to calculate the total download count for a given set of releases
function calculateTotalDownloadCount(releases) {
return releases.reduce((acc, release) => {
return acc + release.assets.reduce((assetAcc, asset) => assetAcc + asset.download_count, 0);
}, 0);
}
// Call fetchTotalDownloadCount() when the page loads
window.onload = fetchTotalDownloadCount;
</script>
</div>
</div>
</div>
<div id="opbg" class="absolute inset-0 bg-black bg-opacity-80 transition-colors"></div>
</section>
<div id="staffPopup" class="fixed inset-0 z-50 flex items-center justify-center hidden rounded-md">
<div class="bg-slate-800 p-4 md:mx-4 rounded-lg shadow-lg w-full md:w-auto max-h-[80vh] overflow-y-auto">
<div class="text-right">
<button id="closePopup" class="text-white hover:text-gray-500 text-xl p-4">
<i class="fa-solid fa-times"></i>
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div class="bg-slate-900 p-4 rounded-lg shadow-md">
<img src="https://avatars.githubusercontent.com/u/87634197?v=4" alt="Rebel Union" class="w-20 h-20 rounded-full mb-2 shake" id="rebelOnionAvatarPopup" />
<p class="text-lg text-purple-600 font-bold mb-2" id="rebelOnionName"> Rebel Onion </p>
<p class="text-gray-500" id="rebelOnionDesc">Creator of Jeanne</p>
<!-- social icons-->
<div class="flex items-center mt-4">
<a href="https://www.buymeacoffee.com/rebelonion" class="mr-4 text-white hover:text-purple-500">
<i class="fa-solid fa-mug-saucer"></i>
</a>
<a href="https://www.github.com/rebelonion" class="mr-4 text-white hover:text-purple-500">
<i class="fa-brands fa-github"></i>
</a>
<a href="https://discordapp.com/users/714249925248024617" class="mr-4 text-white hover:text-purple-500">
<i class="fa-brands fa-discord"></i>
</a>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
// Initial values
const originalName = "Rebel Onion";
const originalDesc = "Creator of Jeanne";
const originalAvatarSrc = "https://avatars.githubusercontent.com/u/87634197?v=4";
let hoverCount = 0;
let shakeCount = 0;
// Function to start shaking the avatar
function shakeAvatar() {
document.getElementById("rebelOnionAvatarPopup").classList.add("shake");
setTimeout(function() {
document.getElementById("rebelOnionAvatarPopup").classList.remove("shake");
}, 500); // Stop shaking after 0.5 seconds
}
function triggerEasterEgg() {
console.log("Easter egg triggered!"); // Check if this message appears in the console
document.getElementById("rebelOnionName").textContent = "Miku is Love❤️❤️❤️";
document.getElementById("rebelOnionDesc").textContent = "Worlds No 1 Hatsune Miku Fan";
}
// Reset counts and enable shaking when the popup is opened
function resetCountsAndShaking() {
hoverCount = 0;
shakeCount = 0;
}
// Event handler for mouseover event on the avatar
function handleHover() {
if (hoverCount < 3) {
hoverCount++;
shakeAvatar();
if (hoverCount === 3) {
triggerEasterEgg();
}
}
}
// Event handler for click event on the avatar (for mobile devices)
function handleClick() {
if (shakeCount < 3) {
shakeCount++;
shakeAvatar();
if (shakeCount === 3) {
triggerEasterEgg();
}
}
}
// Open the staff showcase popup
document.getElementById("openPopup").addEventListener("click", function() {
document.getElementById("staffPopup").classList.remove("hidden");
resetCountsAndShaking(); // Reset counts and enable shaking
// Enable shaking on the profile picture
document.getElementById("rebelOnionAvatarPopup").addEventListener("mouseover", handleHover);
// Enable shaking on mobile devices by clicking the profile picture
let isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
if (isMobile) {
document.getElementById("rebelOnionAvatarPopup").addEventListener("click", handleClick);
}
});
// Close the staff showcase popup
document.getElementById("closePopup").addEventListener("click", function() {
document.getElementById("staffPopup").classList.add("hidden");
// Reset elements to their original values
document.getElementById("rebelOnionName").textContent = originalName;
document.getElementById("rebelOnionDesc").textContent = originalDesc;
document.getElementById("rebelOnionAvatarPopup").src = originalAvatarSrc;
// Remove event listeners
document.getElementById("rebelOnionAvatarPopup").removeEventListener("mouseover", handleHover);
document.getElementById("rebelOnionAvatarPopup").removeEventListener("click", handleClick);
});
});
</script>
</script>
<div class="bg-slate-900 p-4 rounded-lg shadow-md">
<img src="https://avatars.githubusercontent.com/u/167056923?v=4" alt="aayush262" class="w-20 h-20 rounded-full mb-2" />
<p class="text-lg text-purple-600 font-bold mb-2">Itsmechinmoy</p>
<p class="text-gray-500">I'm a master of hiding Easter eggs! Think you've got what it takes to uncover it on the site? It's like a digital treasure hunt with a mischievous twist!</p>
<div class="flex items-center mt-4">
<a href="https://github.com/u/itsmechinmoy" class="mr-4 text-white hover:text-purple-500">
<i class="fa-brands fa-github"></i>
</a>
<a href="https://discord.com/users/523539866311720963" class="mr-4 text-white hover:text-purple-500">
<i class="fa-brands fa-discord"></i>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- FOOTER -->
<footer class="bg-slate-950 text-white py-4">
<div class="container mx-auto flex flex-col md:flex-row md:items-center md:justify-between">
<div class="md:w-full text-center md:text-left mb-2 md:mb-0">
<p class="text-sm">
<i class="fa-solid fa-code"></i> with <i class="fa-solid fa-heart"></i> by Jeanne Contributors
</p>
</div>
<p>
<center>
<!--<a href="https://pastebin.com/raw/M0nTU8Bg">DMCA</a> • <a href="https://www.buymeacoffee.com/rebelonion">Donate</a> • <a href="https://discord.com/invite/4HPZ5nAWwM">Discord</a> • <a href="https://t.me/+gzBCQExtLQo1YTNh">Telegram</a> • <a href="https://github.com/rebelonion/Dantotsu">Github</a>-->
</center>
</p>
<div class="md:w-full text-center md:text-right">
<button id="openPopup" class="bg-purple-500 hover:bg-purple-600 text-white font-bold py-2 px-4 rounded-full">Credits</button>
</div>
</div>
</footer>
</body>
<script>
// navbar
window.addEventListener('scroll', function() {
const navbar = document.querySelector('nav');
if (window.scrollY > 0) {
navbar.classList.add('bg-opacity-80');
} else {
navbar.classList.remove('bg-opacity-80');
}
});
// // JavaScript to handle the language dropdown
// const languageDropdown = document.getElementById('languageDropdown');
// const languageOptions = document.getElementById('languageOptions');
// // Toggle the visibility of language options when the dropdown button is clicked
// languageDropdown.addEventListener('click', () => {
// languageOptions.classList.toggle('hidden');
// });
// // // Close the language options when a language is selected
// // const languageLinks = languageOptions.querySelectorAll('a');
// languageLinks.forEach((link) => {
// link.addEventListener('click', () => {
// languageOptions.classList.add('hidden');
// });
// });
// // Close the language options when clicking outside of the dropdown
// window.addEventListener('click', (event) => {
// if (!languageDropdown.contains(event.target) && !languageOptions.contains(event.target)) {
// languageOptions.classList.add('hidden');
// }
// });
// const languageButtons = document.querySelectorAll('.language-button');
// Change the language when a language button is clicked
// keep the language buttons unhidden
// languageButtons.forEach((button) => {
// button.addEventListener('click', () => {
// const language = button.dataset.lang;
// const elements = document.querySelectorAll(`[data-lang]`);
// elements.forEach((element) => {
// element.style.display = 'none';
// });
// const elementsToShow = document.querySelectorAll(`[data-lang=${language}]`);
// elementsToShow.forEach((element) => {
// element.style.display = 'block';
// });
// });
// });
// hero
window.addEventListener('scroll', function() {
const opbg = document.querySelector('#opbg');
if (window.scrollY > 600) {
opbg.classList.add('bg-opacity-100');
} else {
opbg.classList.remove('bg-opacity-100');
}
});
// reviews
const collapsibleButton = document.getElementById("collapsible");
const content = document.getElementById("content");
let isContentVisible = false;
collapsibleButton.addEventListener("click", function() {
isContentVisible = !isContentVisible;
content.style.display = isContentVisible ? "block" : "none";
});
</script>
</html>