mirror of
https://github.com/NovaOSS/nova-web.git
synced 2024-11-26 00:23:57 +01:00
15 lines
380 B
JavaScript
15 lines
380 B
JavaScript
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');
|
|
}
|
|
});
|