Add navigation highlighting.

This commit is contained in:
Patrick Jentsch 2019-09-10 16:09:35 +02:00
parent 51d2623e2e
commit 15a418cf7c

View File

@ -193,6 +193,12 @@
document.getElementById("new-job"),
{"coverTrigger": false}
);
var entry;
for (entry of document.querySelectorAll("#slide-out a:not(.subheader)")) {
if (entry.href === window.location.href) {
entry.parentNode.classList.add("active");
}
}
{% for message in get_flashed_messages() %}
M.toast({html: '{{ message }}'})
{% endfor %}