MyRedland/public/js/index.js
2022-12-05 17:15:27 +01:00

11 lines
269 B
JavaScript

"use strict";
window.onload = () => {
let menu_expand = document.querySelector('a.menu-expand');
let mobile_foldable = document.querySelector('nav.mobile-foldable');
menu_expand.addEventListener('click', () => {
mobile_foldable.classList.toggle('show');
});
};