Add breadcrumb navigation and enhance button functionality
All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 5m12s

This commit is contained in:
2025-03-17 00:49:38 +01:00
parent 95fdd54d46
commit 72158d4464
4 changed files with 50 additions and 4 deletions

View File

@@ -9,4 +9,12 @@
var sidenavElems = document.querySelectorAll('.sidenav');
var sidenavInstances = M.Sidenav.init(sidenavElems, {});
});
document.querySelectorAll("button").forEach(button => {
const href = button.getAttribute("data-href");
if (!href) return;
button.addEventListener("click", () => {
window.location.href = button.getAttribute("data-href");
});
});
</script>