owlcode.tech/public/js/index.js

11 lines
269 B
JavaScript
Raw Normal View History

2022-11-09 13:31:58 +01:00
"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');
});
};