Add Navigation Arrow and simplify static page

This commit is contained in:
Florian Zumpe
2026-06-16 16:20:09 +02:00
parent 278813fba6
commit 4dfa7da08b
9 changed files with 667 additions and 194 deletions
+10 -2
View File
@@ -71,7 +71,7 @@
initializeJqueryUi();
mark('jquery-ui', 'done');
for (const module of ['config', 'api-client', 'distance', 'geolocation', 'slideshow', 'audio-player', 'app']) {
for (const module of ['config', 'api-client', 'distance', 'geolocation', 'orientation', 'slideshow', 'audio-player', 'app']) {
await loadScript(`js/${module}.js`, () => Boolean(window.Wegwichtel));
}
mark('modules', 'done');
@@ -90,6 +90,14 @@
}
}
retry.addEventListener('click', () => location.reload());
function retryBoot(event) {
if (event.type === 'keydown' && event.key !== 'Enter' && event.key !== ' ') return;
if (event.type === 'pointerup' && event.pointerType === 'mouse' && event.button !== 0) return;
event.preventDefault();
location.reload();
}
retry.addEventListener('pointerup', retryBoot);
retry.addEventListener('keydown', retryBoot);
boot();
}());