mirror of
https://github.com/hyprwm/hyprland-website.git
synced 2024-12-23 02:39:48 +01:00
12 lines
No EOL
352 B
JavaScript
12 lines
No EOL
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");
|
|
}); |