aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/resources/dokka/scripts/scripts.js
blob: 85dfd86f945b70689060529aa61e3cbc2b63cb88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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");
    	}
	}
}

window.addEventListener("DOMContentLoaded", () => {
    document.getElementById("leftToggler").onclick = function() {
        document.getElementById("leftColumn").classList.toggle("open");
    }
}