-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscreenshots.html
More file actions
941 lines (741 loc) · 20.3 KB
/
screenshots.html
File metadata and controls
941 lines (741 loc) · 20.3 KB
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
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title>Feedback</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<!-- ANCHOR CSS -->
<style>
@media (max-width: 430px) {
img:not(.img_inline) { /* Target all img tags that DO NOT have the class .inline */
width: 100% !important;
height: auto !important; /* Maintain aspect ratio */
}
ul {
padding-left: 1rem !important;
}
ol {
padding-left: 1rem !important;
}
.warning {
margin-left: 0% !important;
margin-right: 0% !important;
}
.info {
margin-left: 0% !important;
margin-right: 0% !important;
}
.tip {
margin-left: 0% !important;
margin-right: 0% !important;
}
#TocButton {
top: auto !important;
bottom: 2% !important;
left: 3% !important;
right: auto !important;
font-size: 1rem !important;
}
#nextHeadingBtn {
top: auto !important;
bottom: 2% !important;
font-size: 1rem !important;
}
.switch {
top: 1% !important;
left: auto !important;
right: 3% !important;
}
}
html{
font-size: 100%;
}
body {
font-family: 'mavenpro', Arial, sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
transition: background-color 0.5s;
font-synthesis: none;
max-width: 100%;
overflow-x: hidden; /* Hide the horizontal scrollbar */
}
/* LIGHT THEME COLORS */
:root {
--bg-color: #FDF6E3;
--container-color: #FFFCFD;
--text-color: #1F1800;
--red-color: #EF5350;
--green-color: #79B900;
--blue-color: #1D91FD;
--orange-color: #F59E0B;
--link-color: #26A69A;
--external-color: #b720d1;
}
/* DARK THEME COLORS */
body.dark {
--bg-color: #0E0801;
--container-color: #2B2A27;
--text-color: #F8E9C2;
--red-color: #ff615b;
--green-color: #d5ec0c;
--blue-color: #4FC3F7;
--orange-color: #FFB911;
--link-color: #56d8c9;
--external-color: #ff61c5;
}
/* STANDARD FONT */
@font-face {
font-family: 'mavenpro';
src: url('pictures/MavenPro-VariableFont_wght.ttf') format('truetype');
font-style: normal;
font-weight: 400 700;
font-display: swap;
}
/* ICONS FONT */
@font-face {
font-family: 'microns';
src: url('pictures/microns.otf') format('opentype');
font-style: normal;
font-weight: normal;
font-display: swap;
}
/* ICONS CLASS */
.microns {
font-family: 'microns';
color: var(--orange-color);
font-size: 1.4rem;
text-shadow: black 2px;
}
/* MAIN DIV */
.outer-container {
max-width: 80ch;
margin: 0 auto;
background-color: var(--container-color);
padding-left: 2%;
padding-right: 2%;
padding-bottom: 3%;
box-shadow: 0 0 5px 0px var(--text-color);
transition: background-color 0.5s;
border-radius: 8px;
}
/* TWO COLUMN DIV - USED INSIDE OUTER*/
.double-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.centering-div {
width: fit-content;
margin: 0 auto;
}
a {
font-weight: 600;
text-decoration: none;
color: var(--link-color);
border-bottom: solid 1px var(--link-color);
padding: 0.2rem 0.3rem 0.2rem 0.3rem;
}
a:hover {
background-color: var(--link-color);
color: var(--container-color);
border-radius: 6px;
}
.internalink {
font-family: microns;
font-weight: bold;
font-size: 1.7rem;
border-bottom: none;
color: var(--blue-color);
padding: 0.4rem;
border-radius: 50%;
}
.internalink:hover {
background-color: var(--blue-color);
color: var(--container-color);
}
b {
font-weight: 600;
}
p {
line-height: 185%;
color: var(--text-color);
text-align: justify;
text-indent: 1.6rem;
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
hr {
border: 0;
height: 2px;
background-image: linear-gradient(to right, #00000000, #faaf3f, #00000000);
margin-top: 3rem;
margin-bottom: 3rem;
}
ul {
margin-top: 0.2rem; margin-bottom: 1.4rem; margin-left: 0rem;
padding-left: 0;
padding-left: 2.7rem;
list-style: disc;
}
ol {
margin-top: 0.2rem; margin-bottom: 1.4rem; margin-left: 0rem;
padding-left: 0;
padding-left: 2.9rem;
}
li {
text-indent: 0rem;
line-height: 180%;
color: var(--text-color);
text-align: justify;
margin-top: 0.45rem;
margin-bottom: 0.45rem;
list-style-position: outside;
}
li::marker {
font-weight: bold;
}
/* GENERAL IMAGES */
img {
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 2%;
margin-bottom: 3%;
box-shadow: 0 4px 7px rgba(0, 0, 0, 0.35);
max-width: 100%;
border-radius: 8px;
background: var(--container-color);
}
/* Dark mode image dimming */
.dark img {
filter: brightness(0.7) contrast(1.3) sepia(0.2);
transition: filter 0.4s ease;
}
.dark img:hover {
filter: none;
}
/* INLINE IMAGES */
.img_inline {
display: inline;
margin-top: 0;
margin-bottom: 0;
box-shadow: none;
background: #FFF;
border-radius: 50%;
}
.grid-table {
border-collapse: collapse;
width: 85%;
margin-top: 1rem;
margin-left: 0rem;
}
.grid-table td {
height: 1.4rem;
text-align: center;
padding: 0.5rem 0.5rem 0.5rem 0.5rem;
border-bottom: 1px solid var(--orange-color);
}
/* MAIN CHAPTER HEADINGS - CENTERED */
.L1-Chapter-heading {
font-weight: 700;
font-size:1.8rem;
line-height: 2.6rem;
text-align: center;
color: var(--orange-color);
background-color: var(--bg-color);
padding-top: 0.5rem;
padding-bottom: 0.5rem;
margin-top: 5rem;
margin-bottom: 1rem;
box-shadow: 0px 3px 5px -1px var(--text-color) inset;
border-radius: 12px;
break-before: page;
}
/* SUB HEADINGS - CENTERED */
.L2-Sub-heading {
font-weight: 600;
font-size: 1.5rem;
text-align: center;
line-height: 2rem;
margin-top: 2.4rem;
color: var(--orange-color);
}
/* SMALL HEADINGS - LEFT ALIGNED */
.L3-Smaller-heading {
font-weight: 600;
font-size: 1.2rem;
color: var(--orange-color);
margin-top: 2rem;
}
/* TIP, NOTE, WARNING BOX LABELS */
.label_red {
font-weight: 700;
color: #FFF;
background-color: var(--red-color);
border-radius: 4px;
padding: 0.3rem;
}
.label_blue {
font-weight: 700;
color: #FFF;
background-color: var(--blue-color);
border-radius: 4px;
padding: 0.3rem;
}
.label_green {
font-weight: 700;
color: #FFF;
background-color: var(--green-color);
border-radius: 4px;
padding: 0.3rem;
}
.label_orange {
font-weight: bold; font-weight: 700; color: #FFF;
background-color: var(--orange-color);
border-radius: 4px;
padding: 0.3rem;
}
/* COLORED TEXTS */
/* USER INTERFACE ELEMENTS OF KOREADER - BLUE */
.ui {
font-weight: 600;
color: var(--blue-color);
}
/* EXTERNAL LINKS AND SERVICES - PURPLE */
.external {
font-weight: 600;
color: var(--external-color);
}
/* MENU PATHS OF ACTIONS - GREEN */
.menu-breadcrumbs {
font-weight: 600;
font-size: 1rem;
line-height: 1.6rem;
letter-spacing: 0rem;
color: var(--green-color);
text-align: center;
margin-top: 0.4rem;
margin-bottom: 1rem;
}
.menu-breadcrumbs::before {
font-family: microns;
content: "";
color: var(--green-color);
padding-right: 0.1rem;
display: inline-block;
}
/* TIP, NOTE, WARNING BOXES */
.warning {
border: 0px solid var(--red-color);
border-radius: 8px;
box-shadow: 0 1px 4px 0px var(--red-color);
color: var(--text-color);
line-height: 180%;
margin-top: 1.2rem;
margin-bottom: 1.2rem;
margin-left: 15%;
margin-right: 15%;
padding: 1% 1.8% 1% 1.8%;
text-align: justify;
text-indent: 0em;
}
.info {
border: 0px solid var(--blue-color);
border-radius: 8px;
box-shadow: 0 1px 4px 0px var(--blue-color);
color: var(--text-color);
line-height: 180%;
margin-top: 1.2rem;
margin-bottom: 1.2rem;
margin-left: 15%;
margin-right: 15%;
padding: 1% 1.8% 1% 1.8%;
text-align: justify;
text-indent: 0em;
}
.tip {
border: 0px solid var(--green-color);
border-radius: 8px;
box-shadow: 0 1px 4px 0px var(--green-color);
color: var(--text-color);
line-height: 180%;
margin-top: 1.2rem;
margin-bottom: 1.2rem;
margin-left: 15%;
margin-right: 15%;
padding: 1% 1.8% 1% 1.8%;
text-align: justify;
text-indent: 0em;
}
/* TOC styles*/
.TOC-heading {
font-weight: 600;
font-size:2rem;
line-height: 2rem;
text-align: center;
color: var(--orange-color);
break-before: page;
}
.toc {
list-style: none;
padding: 0;
margin: 0;
}
.toc a {
font-weight: 500;
text-decoration: none;
color: var(--text-color);
border-bottom: none;
padding: 0.5rem;
text-align: left;
}
.toc a:hover {
font-weight: 700;
background-color: var(--orange-color);
color: var(--container-color);
border-bottom: none;
box-shadow: -1px 4px 7px -2px var(--text-color) inset;
border-radius: 6px;
}
.toc ul {
list-style: none;
padding-left: 0.8em;
margin: 0rem;
}
/* Styling for 2nd level */
.toc ul ul {
padding-left: 2.6em;
}
/* Main level square bullet */
.toc > li > a::before {
content: "";
display: inline-block;
margin-right: 0.5em;
vertical-align: middle;
background-color: var(--orange-color);
width: 1.1rem;
height: 1.1rem;
transition: background-color 0.5s ease; /* Add transition for smooth color change */
}
.toc > li > a:hover::before {
background-color: var(--container-color);
}
.toc > li > a {
font-weight: 600 !important;
color: var(--orange-color);
margin-top: 0rem;
font-size: 1.2rem;
line-height: 1.2rem;
font-weight: bold;
display: inline-flex;
align-items: center;
text-align: left;
}
/* More space after the main section headers */
.toc > li {
margin-top: 0rem;
margin-bottom: 1.6rem;
line-height: 100%;
}
/* Adding a little space before a nested list */
.toc li > ul {
margin-left: 1rem;
margin-top: 0rem;
}
/* GO TO THE ToC BUTTON */
#TocButton {
display: none; /* Hidden by default */
outline: none;
position: fixed;
top: 0.5rem;
bottom: auto;
left: auto;
right: 1rem;
z-index: 99;
background-color: var(--red-color);
border: 1px solid #FDF6E3;
padding: 0.6rem 0.8rem 0.6rem 0.8rem;
color: white;
cursor: pointer;
border-radius: 8px;
box-shadow: 0 4px 6px var(--red-color);
font-family: mavenpro;
font-size: 1.1rem;
font-weight: bold;
text-indent: 0em;
}
#TocButton:hover {
text-shadow: 0px 0px 6px #FFFCFD;
}
/* NEXT HEADING button */
#nextHeadingBtn {
display: none; /* Hidden by default */
outline: none;
position: fixed;
top: 4rem;
bottom: auto;
right: 1rem;
z-index: 99;
background-color: var(--orange-color);
border: 1px solid #FDF6E3;
padding: 0.6rem 0.8rem 0.6rem 0.8rem;
color: white;
cursor: pointer;
border-radius: 8px;
box-shadow: 0 4px 6px var(--orange-color);
font-family: mavenpro;
font-size: 1.1rem;
font-weight: bold;
text-indent: 0em;
}
#nextHeadingBtn.show {
display: block;
opacity: 1;
}
#nextHeadingBtn:hover {
text-shadow: 0px 0px 6px #FFFCFD;
}
/* DARK MODE SWITCH */
.switch {
position: absolute;
top: 1%;
left: 3%;
right: auto;
display: inline-block;
width: 44px;
height: 44px;
z-index: 1000;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* Night mode bg color*/
.switch input:checked + .slider {
background-color: var(--container-color);
}
.switch input:checked + .slider:before {
background-color: transparent;
border-radius: 50%;
border-top-color: transparent;
border-left-color: transparent;
border-right-color: transparent;
box-shadow: inset -36px 0px 0 #ffdf2c;
}
.switch .slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--text-color);
transition: 0.4s;
border-radius: 50%;
}
.switch .slider:before {
position: absolute;
content: "";
height: 34px;
width: 34px;
left: 5px;
bottom: 5px;
transition: 0.4s;
border-radius: 50%;
text-align: center;
line-height: 16px;
box-shadow: inset -8px -4px 0 #f6eb59;
}
/* PROOFREADING MARKERS */
.yellow-mark {
border-radius: 0.4em 1em 0.6em;
padding: 2px 6px;
margin: -3px -6px;
color: #322814;
padding: 6px;
font-weight: bold;
color: #322814;
text-shadow: 0px 0px 1px var(--bold-shadow-color);
line-height: 2rem;
background-image: linear-gradient(
100deg,
hsl(58deg 87% 94%) 0%,
hsl(57deg 91% 87%) 5%,
hsl(57deg 94% 78%) 30%,
hsl(57deg 94% 78%) 65%,
hsl(57deg 91% 87%) 95%,
hsl(58deg 87% 94%) 100%
);
}
.green-mark {
border-radius: 0.4em 1em 0.6em;
padding: 2px 6px;
margin: -3px -6px;
color: #322814;
background-image: linear-gradient(
100deg,
hsl(93deg 100% 96%) 0%,
hsl(82deg 99% 83%) 10%,
hsl(80deg 96% 75%) 39%,
hsl(80deg 96% 75%) 59%,
hsl(82deg 99% 83%) 85%,
hsl(93deg 100% 96%) 100%
);
}
#progress-bar-container {
width: 8px; /* Thickness of the vertical bar */
height: 100%;
position: fixed;
top: 0;
right: 0;
z-index: 1000;
/* box-shadow: 2px 0 5px rgba(0, 0, 0, 0.666); */
}
#progress-bar {
background-image: linear-gradient(to bottom, var(--bg-color) , var(--orange-color));
border-radius: 3px;
}
</style>
</head>
<body>
<div id="progress-bar-container">
<div id="progress-bar"></div>
</div>
<button id="nextHeadingBtn" title="Jump to Next Heading"><span style="font-family: microns; color: #FFF"></span> </button>
<button onclick="topFunction()" id="TocButton" title="Back to Table of Contents"><span style="font-family: microns; color: #FFF"></span></button>
<script>
document.addEventListener('DOMContentLoaded', function() {
const themeSwitcher = document.getElementById('theme-switcher');
// Load saved theme preference
const savedTheme = localStorage.getItem('theme');
if (savedTheme === 'dark') {
document.body.classList.add('dark');
themeSwitcher.checked = true;
}
// // Detect OS preference if no saved preference
// else if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
// document.body.classList.add('dark');
// themeSwitcher.checked = true;
// }
// Handle toggle switch
themeSwitcher.addEventListener('change', function() {
document.body.classList.toggle('dark');
localStorage.setItem('theme', this.checked ? 'dark' : 'light');
});
});
</script>
<script>
// Get the button
let mybutton = document.getElementById("TocButton");
// When the user scrolls down 2000px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 2000 || document.documentElement.scrollTop > 2000) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
var targetElement = document.getElementById("toc");
if (targetElement) {
targetElement.scrollIntoView({ behavior: "smooth" }); // Smooth scrolling
}
}
</script>
<div class="outer-container">
<label class="switch">
<input type="checkbox" id="theme-switcher">
<span class="slider round"></span>
</label>
<br>
<div class="L1-Chapter-heading">Main list of screenshots</div>
<p>This heading contains the list of screenshots that will be prepared for each of the platforms below - Phone, Generic and Desktop. Please decide which ones we will make.</p>
<div class="L3-Smaller-heading">1. Reading screen with highlight types (day/night split except desktop/flatpak)</div>
<p><span class="yellow-mark"><b>QUESTION:</b> Should I make some colored highlights to show the color capability?</span></p>
<div class="L3-Smaller-heading">2. Reading screen CJK split</div>
<p><span class="yellow-mark"><b>QUESTION:</b> I was thinking of making a 3-way CJK split but maybe just Chinese is enough to show the CJK capabilities. Probably we have the majority of Asian users from there. What do you say?</span></p>
<div class="L3-Smaller-heading">3. Reading screen Hebrew/Persian split</div>
<p><span class="yellow-mark"><b>QUESTION:</b> I was also thinking of making a 2-way split with Persian/Hebrew as the RTL example but considering the recent climate, this might not be a good idea. People can be offended much more easily now and I don't want KOReader to be involved in such unnecesary troubles. Removing just one of them might look like making a statement too so maybe we can skip this screenshot. What do you think?</span></p>
<div class="L3-Smaller-heading">4. Book map</div>
<div class="L3-Smaller-heading">5. Page browser</div>
<hr>
<p><span class="yellow-mark"><b>QUESTION:</b> Which ones to add from these MAYBE items below?</span></p>
<div class="L3-Smaller-heading">6. MAYBE - Bottom menu items from the FONT tab to show weight/hinting/kerning capabilities</div>
<div class="L3-Smaller-heading">7. MAYBE - Search menu screenshot to show the Dictionary/Wikipedia/Translate capabilities</div>
<div class="L3-Smaller-heading">8. MAYBE - File Browser</div>
<div class="L1-Chapter-heading">Phone (1080x1920)</div>
<div class="L1-Chapter-heading">Generic (1404x1872)</div>
<div class="L1-Chapter-heading">Desktop (2000x1400)</div>
<!-- <p><b>REMINDER: We can't use split screen screenshots here because Flathub prohibit edits</b></p> -->
<!-- OUTER DIV-->
</div>
<script>
const nextHeadingBtn = document.getElementById('nextHeadingBtn');
const headings = document.querySelectorAll('.L1-Chapter-heading, .L2-Sub-heading, .L3-Smaller-heading'); // Your heading selectors
let currentHeadingIndex = -1;
function findNextHeading() {
currentHeadingIndex = (currentHeadingIndex + 1) % headings.length;
return currentHeadingIndex;
}
function scrollToHeading(index) {
if (index >= 0 && index < headings.length) {
headings[index].scrollIntoView({ behavior: 'smooth', block: 'start' });
}
}
function updateCurrentHeadingIndex() {
const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
let lastVisibleHeadingIndex = -1;
for (let i = 0; i < headings.length; i++) {
const headingRect = headings[i].getBoundingClientRect();
const headingTop = headingRect.top + scrollTop;
if (headingTop < scrollTop + 1) {
lastVisibleHeadingIndex = i;
} else {
break;
}
}
if (lastVisibleHeadingIndex !== -1) {
currentHeadingIndex = lastVisibleHeadingIndex;
}
}
function updateButtonVisibility() {
if (headings.length > 0) {
nextHeadingBtn.classList.add('show');
} else {
nextHeadingBtn.classList.remove('show');
}
}
nextHeadingBtn.addEventListener('click', () => {
const nextIndex = findNextHeading();
scrollToHeading(nextIndex);
});
window.addEventListener('scroll', updateCurrentHeadingIndex);
window.addEventListener('resize', updateButtonVisibility);
updateButtonVisibility();
updateCurrentHeadingIndex();
</script>
<script>
window.addEventListener('scroll', function() {
const progressBar = document.getElementById('progress-bar');
const winScroll = document.body.scrollTop || document.documentElement.scrollTop;
const height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
const scrolled = (winScroll / height) * 100;
progressBar.style.height = scrolled + '%'; // Update the HEIGHT
});
</script>
<!-- ANCHOR TEMPLATES -->
<!--
<img loading="lazy" src="pictures/" style="width:600px;">
<img class="img_inline" src="pictures/" style="width:22px;">
ANCHOR - Used to indicate a section in the file
TODO - An item that is awaiting completion
FIXME - An item that requires a bugfix
REVIEW - An item that requires additional review
NOTE - An important note for a specific code section
-->
</body>
</html>