Skip to content
Snippets Groups Projects
Commit 5f6c035b authored by Mohammed Elmir's avatar Mohammed Elmir
Browse files

Update layout.html

parent 1387693b
No related branches found
No related tags found
No related merge requests found
Pipeline #193690 passed
......@@ -46,5 +46,23 @@
<!-- Bootstrap Bundle with Popper -->
<script src="{{ url_for('static', filename = 'bootstrap.bundle.min.js') }}"></script>
<script>
const menuBtn = document.querySelector(' .menu-btn');
const menuItems = document.querySelector(' .menu-items');
const expandBtn = document.querySelectorAll('.expand-btn');
// hamburger toggle
menuBtn.addEventListener("click", () =>{
menuBtn.classList.toggle("open");
menuItems.classList.toggle("open");
});
// mobile menu expand
expandBtn.forEach((btn) =>{
btn.addEventListener("click", () => {
btn.classList.toggle("open");
});
});
</script>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment