nova-web/web/static/js/menu.js

15 lines
380 B
JavaScript
Raw Permalink Normal View History

2023-07-23 02:07:22 +02:00
window.addEventListener('load', function() {
menu = document.getElementById('menu');
links = document.getElementById('links');
menu.onclick = function() {
menu.classList.toggle('active');
links.classList.toggle('open');
}
links.onclick = function() {
menu.classList.remove('active');
links.classList.remove('open');
}
});