Adjust for mobile and HTML5/ECMAScript2023

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2024-09-07 11:32:43 +02:00
parent 0c9b9f61b9
commit d051309253
5 changed files with 41 additions and 38 deletions
-18
View File
@@ -1,18 +0,0 @@
'use strict';
function addNavigationControl() {
// Support for Mobile Devices
document.querySelector("#navigation-toggle").addEventListener("click", (ev) => {
document.querySelector("#header #navigation").classList.toggle("open");
});
}
if (document.readyState === "complete"
|| document.readyState === "loaded"
|| document.readyState === "interactive") {
addNavigationControl();
} else {
document.addEventListener('DOMContentLoaded', () => {
addNavigationControl();
});
}
+5
View File
@@ -0,0 +1,5 @@
//import("js/navigation.mjs");
import("./js/lazyload.mjs");
import("./js/highlight.mjs");
import("./js/mediaplayer.mjs");
import("./js/mediabox.mjs");