From 25d826bb75a78eb674a63aed19f55e92d7ff8bca Mon Sep 17 00:00:00 2001 From: Filip ZybaƂa Date: Tue, 12 May 2020 14:58:05 +0200 Subject: Migrated resources to base-plugin --- plugins/base/src/main/resources/dokka/scripts/scripts.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 plugins/base/src/main/resources/dokka/scripts/scripts.js (limited to 'plugins/base/src/main/resources/dokka/scripts/scripts.js') diff --git a/plugins/base/src/main/resources/dokka/scripts/scripts.js b/plugins/base/src/main/resources/dokka/scripts/scripts.js new file mode 100644 index 00000000..c2e29b9f --- /dev/null +++ b/plugins/base/src/main/resources/dokka/scripts/scripts.js @@ -0,0 +1,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"); + } + } +} \ No newline at end of file -- cgit