mirror of
https://github.com/hyprwm/hyprland-website.git
synced 2024-11-17 02:45:59 +01:00
12 lines
352 B
JavaScript
12 lines
352 B
JavaScript
|
const doc = document;
|
||
|
const menuOpen = doc.querySelector(".mob-menu");
|
||
|
const menuClose = doc.querySelector(".close");
|
||
|
const overlay = doc.querySelector(".overlay");
|
||
|
|
||
|
menuOpen.addEventListener("click", () => {
|
||
|
overlay.classList.add("overlay--active");
|
||
|
});
|
||
|
|
||
|
menuClose.addEventListener("click", () => {
|
||
|
overlay.classList.remove("overlay--active");
|
||
|
});
|