Integrated the help page into the base files and added more exception handling

This commit is contained in:
2026-01-21 14:01:34 +01:00
parent bb0ad2b621
commit 2627e5f44e
5 changed files with 327 additions and 289 deletions
+19
View File
@@ -391,3 +391,22 @@ existingDocs.addEventListener("change", async () => {
});
/*
Listeners for the help page
*/
//For the help page dropdown list
document.addEventListener("click", function (e) {
try {
const toc = document.getElementById("toc");
const toggle = document.querySelector(".toc-toggle");
if (!toc.contains(e.target) && !toggle.contains(e.target)) {
toc.classList.remove("show");
}
} catch (error) {
console.log(error);
}
});