bugs in index (fix #90)
This commit is contained in:
parent
d14c3a8781
commit
ef40ea96d7
1 changed files with 18 additions and 20 deletions
|
@ -137,8 +137,7 @@ window.addEventListener("load", () => {
|
||||||
|
|
||||||
// Open nested openeded directories
|
// Open nested openeded directories
|
||||||
const infoURL = window.location.href.split("?");
|
const infoURL = window.location.href.split("?");
|
||||||
if (infoURL.length > 1) {
|
const fullpath = infoURL.length > 1 ? infoURL[1].substring(2) : "index.md";
|
||||||
const fullpath = infoURL[1].substring(2);
|
|
||||||
const path = fullpath.substring(0, fullpath.lastIndexOf("/"));
|
const path = fullpath.substring(0, fullpath.lastIndexOf("/"));
|
||||||
|
|
||||||
const currentlyOpen = deepestNodeOpened(
|
const currentlyOpen = deepestNodeOpened(
|
||||||
|
@ -159,7 +158,6 @@ window.addEventListener("load", () => {
|
||||||
document.getElementById("searchBar").addEventListener("input", (e) => {
|
document.getElementById("searchBar").addEventListener("input", (e) => {
|
||||||
searchFiles(e.target.value, fileTreeElement, currentlyOpen);
|
searchFiles(e.target.value, fileTreeElement, currentlyOpen);
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
// Responsive menu
|
// Responsive menu
|
||||||
let menuOpen = false;
|
let menuOpen = false;
|
||||||
|
|
Loading…
Reference in a new issue