Add breadcrumb navigation and enhance button functionality
All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 5m12s
All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 5m12s
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user