| Server IP : 213.186.33.4 / Your IP : 216.73.216.59 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awebpaca/lessarmoudes/ |
Upload File : |
const navToggle = document.querySelector(".nav-toggle");
const navLinks = document.querySelector(".nav-links");
navToggle?.addEventListener("click", () => {
const isOpen = navToggle.getAttribute("aria-expanded") === "true";
navToggle.setAttribute("aria-expanded", String(!isOpen));
navLinks?.classList.toggle("open", !isOpen);
document.body.classList.toggle("nav-open", !isOpen);
});
navLinks?.querySelectorAll("a").forEach((link) => {
link.addEventListener("click", () => {
navToggle?.setAttribute("aria-expanded", "false");
navLinks.classList.remove("open");
document.body.classList.remove("nav-open");
});
});
document.addEventListener("keydown", (event) => {
if (event.key === "Escape") {
navToggle?.setAttribute("aria-expanded", "false");
navLinks?.classList.remove("open");
document.body.classList.remove("nav-open");
}
});
const tabs = document.querySelectorAll(".tab");
const galleryItems = document.querySelectorAll(".gallery-grid a");
tabs.forEach((tab) => {
tab.addEventListener("click", () => {
const filter = tab.dataset.filter;
tabs.forEach((item) => item.classList.remove("active"));
tab.classList.add("active");
galleryItems.forEach((item) => {
const shouldShow = filter === "all" || item.dataset.category === filter;
item.classList.toggle("hidden", !shouldShow);
});
});
});