mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
Integrated the help page into the base files and added more exception handling
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user