Commit Graph

10 Commits

Author SHA1 Message Date
Jeroen De Meerleer 3305c26750
Refactor easter egg functionality, fetch strings from JSON
- Refactored the `initEasterEgg` function to fetch easter egg strings from a JSON file instead of hardcoding them.
- Removed the unused `eastereggstrings` array.
- Updated event listener to use arrow function syntax (`evt`) instead of `event`.
- Added error handling for failed fetch requests.
2024-02-07 16:15:43 +01:00
Jeroen De Meerleer 1c38432467
Add Easter Egg functionality to the page.js file
This commit adds an Easter Egg feature to the page.js file. When the document is fully loaded, the initEasterEgg() function is called, which listens for clicks on the body element. If the clicked element is not an interactive element or does not trigger an event, a random hue shift filter is applied to the body and a random string from a predefined list of strings is displayed in a designated HTML element with class "easter-egg". The commit also includes a helper function, isInteractiveElement(), which checks if an element is interactive or triggers an event.
2024-02-07 12:42:38 +01:00
Jeroen De Meerleer 434159b285
Implemented new design 2023-03-21 15:36:26 +01:00
Jeroen De Meerleer 7942801015
ENHANCEMENT: using vite instead of webpack 2022-04-29 12:28:44 +02:00
Jeroen De Meerleer 0ae17fd1d9
BUGFIX: remove unnecessary scrolling 2022-01-27 15:55:56 +01:00
Jeroen De Meerleer 809fae2edd
BUGFIX: internal url can start with / 2021-12-31 18:22:31 +01:00
Jeroen De Meerleer 9c7be573e0
BUGFIX: styles 2021-08-06 10:48:30 +02:00
Jeroen De Meerleer f9cdcdc7c6
NEW FEATURE: travel back in time 2021-08-06 09:51:41 +02:00
Jeroen De Meerleer b65ae0ab71
ENHANCEMENT: backgrounds are so overrated 2021-08-05 16:18:16 +02:00
Jeroen De Meerleer 54778cb4a7
Initial commit 2021-08-05 13:56:02 +02:00