first commit

This commit is contained in:
2026-08-13 21:24:16 +08:00
commit a306eee7d5
24 changed files with 2457 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
(function () {
"use strict";
document.addEventListener("DOMContentLoaded", function () {
var toggle = document.getElementById("navToggle");
var nav = document.getElementById("mainNav");
if (!toggle || !nav) return;
toggle.addEventListener("click", function () {
nav.classList.toggle("open");
});
document.addEventListener("click", function (e) {
if (!nav.contains(e.target) && !toggle.contains(e.target)) {
nav.classList.remove("open");
}
});
});
})();