mirror of
https://github.com/NovaOSS/nova-web.git
synced 2024-11-29 13:33:58 +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');
|
||
|
}
|
||
|
});
|