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

🔗

Script Description GitLab source Size Lines
image-show.js Click to zoom on images Link 551B 24
back-to-top.js Automatically appearing button to scroll to top Link 266B 13
theme-changer-preload.js “Load” the current theme as soon as possible Link 129B 4
theme-changer.js Change theme between light and dark (split in two files) Link 484B 19
js-styling-preload.js Show hidden elements (used solely by scripts) as soon as possible Link 81B 3
page-width.js Change whether text covers the whole width of the page or only the middle (applicable to wide screens) Link 597B 20

Data in browser storage

🔗

Local storage

🔗

Key Values Description
theme dark|light Saves which theme should be loaded
width norm|wide Saves in which width pages should be shown

^