Summary Files Commits Branches @commit @diff @stats
path: root / src / regarding-js.du
blob: 2251d3ff091682d93be66b61f3b6e7035f0b6bc0 (plain) (blame)
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
# Regarding usage of JavaScript

On 20.02.2022 I decided to lift the "ban" on usage of JavaScript in this website. This gives me the freedom to implement some useful features for those that have it enabled. [=Any content that doesn't depend on JavaScript will be perfectly consumable without it!=]

Any user data that might be saved isn't, and never will be, used for purposes not listed here. There isn't, and won't ever be, any form of tracking or data collection that isn't required for some feature (listed here).

## Implemented features

:table_5
|= Script
|= Description
|= GitLab source
|= Size
|= Lines

|: [url /scripts/image-show.js image-show.js]
|: Click to zoom on images
|: [url https://gitlab.com/Syndamia/syndamiadotcom/-/tree/master/src/scripts/image-show.js Link]
|: 551B
|: 24

|: [url /scripts/back-to-top.js back-to-top.js]
|: Automatically appearing button to scroll to top
|: [url https://gitlab.com/Syndamia/syndamiadotcom/-/tree/master/src/scripts/back-to-top.js Link]
|: 378B
|: 15

|: [url /scripts/styling-preload.js styling-preload.js]
|: Disable/enable certain stylesheets before page rendering
|: [url https://gitlab.com/Syndamia/syndamiadotcom/-/tree/master/src/scripts/styling-preload.js Link]
|: 385B
|: 13

|: [url /scripts/theme-changer.js theme-changer.js]
|: Change theme between light and dark (split in two files)
|: [url https://gitlab.com/Syndamia/syndamiadotcom/-/tree/master/src/scripts/theme-changer.js Link]
|: 468B
|: 18

|: [url /scripts/page-width.js page-width.js]
|: Change whether text covers the whole width of the page or only the middle (applicable to wide screens)
|: [url https://gitlab.com/Syndamia/syndamiadotcom/-/tree/master/src/scripts/page-width.js Link]
|: 640B
|: 23

|: [url /scripts/expand-navbar.js expand-navbar.js]
|: Button to shrink and expand the sidebar
|: [url https://gitlab.com/Syndamia/syndamiadotcom/-/tree/master/src/scripts/expand-navbar.js Link]
|: 728B
|: 20

|: [url /scripts/presentation.js presentation.js]
|: Presentation logic (button capabilities and other) [=Loaded only on pages with presentations!=]
|: [url https://gitlab.com/Syndamia/syndamiadotcom/-/tree/master/src/scripts/presentation.js Link]
|: 6.1KB
|: 204

|: [url /scripts/keyboard.js keyboard.js]
|: Implements keyboard shortcuts
|: [url https://gitlab.com/Syndamia/syndamiadotcom/-/tree/master/src/scripts/keyboard.js Link]
|: 810B
|: 40

|: [url /scripts/snow.js snow.js]
|: Adds and manages falling snowflakes. Functional only in December and January.
|: [url https://gitlab.com/Syndamia/syndamiadotcom/-/tree/master/src/scripts/snow.js Link]
|: 814B
|: 36

|: [url /scripts/snow-preload.js snow-preload.js]
|: Initializes falling snowflake elements
|: [url https://gitlab.com/Syndamia/syndamiadotcom/-/tree/master/src/scripts/snow-preload.js Link]
|: 561B
|: 20

|:
|: Total without presentation.js
|:
|: 5.3KB
|: 209

|:
|: Total with presentation.js
|:
|: 11.4KB
|: 413


## Data in browser storage

.p

### Local storage

:table_3
|= Key
|= Values
|= Description

|: [`theme`]
|: [`dark`] | [`light`]
|: Saves which theme should be loaded

|: [`width`]
|: [`norm`] | [`wide`]
|: Saves in which width pages should be shown

|: [`navbar`]
|: [`norm`] | [`hidden`]
|: Saves whether the navbar should be expanded or shrunk

|: [`snow`]
|: [`on`] | [`off`]
|: Saves whether snowflakes are shown (and animated). Functional only in December and January.


.p