Update landing page

This commit is contained in:
Patrick Jentsch
2020-02-17 12:01:36 +01:00
parent 1314993a60
commit 8166ca840b
3 changed files with 88 additions and 17 deletions

View File

@ -89,12 +89,11 @@ nopaque.navigation.init = function() {
}
}
tocElement = document.getElementById("roadmap");
if (!tocElement) {
return
}
for (let entry of tocElement.querySelectorAll("a")) {
if (entry.href === window.location.href) {
entry.classList.add("active");
if (tocElement) {
for (let entry of tocElement.querySelectorAll("a")) {
if (entry.href === window.location.href) {
entry.classList.add("active");
}
}
}
}