mirror of
https://github.com/hyprwm/hyprland-website.git
synced 2024-12-23 10:49:49 +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");
|
||
|
});
|