v1.0 du site web

This commit is contained in:
22107988t
2023-09-25 13:27:24 +02:00
parent 20cb812095
commit a94f68f22a
2787 changed files with 864804 additions and 0 deletions

20
app/node_modules/wikiapi/docs/scripts/collapse.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
function hideAllButCurrent(){
//by default all submenut items are hidden
//but we need to rehide them for search
document.querySelectorAll("nav > ul > li > ul li").forEach(function(parent) {
parent.style.display = "none";
});
//only current page (if it exists) should be opened
var file = window.location.pathname.split("/").pop().replace(/\.html/, '');
document.querySelectorAll("nav > ul > li > a").forEach(function(parent) {
var href = parent.attributes.href.value.replace(/\.html/, '');
if (file === href) {
parent.parentNode.querySelectorAll("ul li").forEach(function(elem) {
elem.style.display = "block";
});
}
});
}
hideAllButCurrent();