summaryrefslogtreecommitdiff
path: root/public/script.js
diff options
context:
space:
mode:
authorShipwreckt <Shipwreckt@mailfence.com>2024-07-17 17:39:54 +0100
committerShipwreckt <Shipwreckt@mailfence.com>2024-07-17 17:39:54 +0100
commitb61aca6682042e415e52b4546255b2a0bcd7b42a (patch)
tree7e141aa190061223575a5e7539be33131abdf8f8 /public/script.js
parentb663eae365f70f13ed4a3447198dff0a32d203eb (diff)
Website overhaul
Diffstat (limited to 'public/script.js')
-rw-r--r--public/script.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/public/script.js b/public/script.js
deleted file mode 100644
index a82229c..0000000
--- a/public/script.js
+++ /dev/null
@@ -1,27 +0,0 @@
-document.addEventListener("DOMContentLoaded", function() {
- function loadSection() {
- // Hide all sections
- document.querySelectorAll('main > section').forEach(section => {
- section.style.display = 'none';
- });
-
- // Show the section based on the hash
- const hash = window.location.hash.substring(1);
- if (hash) {
- const section = document.getElementById(hash);
- if (section) {
- section.style.display = 'block';
- }
- } else {
- // Default to showing the welcome section if no hash is present
- document.getElementById('welcome').style.display = 'block';
- }
- }
-
- // Load the correct section on initial page load
- loadSection();
-
- // Load the correct section when the hash changes
- window.addEventListener('hashchange', loadSection);
-});
-