Basic cours support #44

Merged
Anri merged 67 commits from cours into main 2024-04-01 18:11:49 +02:00
Showing only changes of commit 97e5010443 - Show all commits

View file

@ -148,14 +148,17 @@ window.addEventListener("load", () => {
dataElement.remove(); dataElement.remove();
// Open nested openeded directories // Open nested openeded directories
const fullpath = window.location.href.split("?")[1].substring(2); const infoURL = window.location.href.split("?");
const path = fullpath.substring(0, fullpath.lastIndexOf("/")); if (infoURL.length > 1) {
const last_openeded = deepestNodeOpened( const fullpath = infoURL[1].substring(2);
path.split("/"), const path = fullpath.substring(0, fullpath.lastIndexOf("/"));
fileTreeElement.querySelector("ul").childNodes const last_openeded = deepestNodeOpened(
); path.split("/"),
fileTreeElement.querySelector("ul").childNodes
);
uncollapse(last_openeded); uncollapse(last_openeded);
}
// Fix SVG images // Fix SVG images
svgDarkTheme(); svgDarkTheme();