blob: c2e29b9f87106f8e4edda4da015e0d37cf52d3e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
document.getElementById("navigationFilter").oninput = function (e) {
var input = e.target.value;
var menuParts = document.getElementsByClassName("sideMenuPart")
for (let part of menuParts) {
if(part.querySelector("a").textContent.startsWith(input)) {
part.classList.remove("filtered");
} else {
part.classList.add("filtered");
}
}
}
|