Adjust for mobile and HTML5/ECMAScript2023
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
//import("js/navigation.mjs");
|
||||
import("./js/lazyload.mjs");
|
||||
import("./js/highlight.mjs");
|
||||
import("./js/mediaplayer.mjs");
|
||||
import("./js/mediabox.mjs");
|
||||
|
||||
Reference in New Issue
Block a user