Mobile navigation, merchandise content

This commit is contained in:
Andre Beging
2020-02-29 18:15:12 +01:00
parent 5f9ae37008
commit 801ac69a01
19 changed files with 2150 additions and 17 deletions

View File

@@ -8,6 +8,11 @@ if (document.body.classList.contains("hero")) {
});
}
// Sidebar toggle
document.querySelector('[data-action="toggle-sidebar"]').addEventListener("click",() => {
document.body.classList.toggle("sidebar");
});
document.querySelector('form').addEventListener('submit', (e : any) => {
let targetUrl = e.target.action;