From cf9d8399e0eaf409993745e5d2933f6b2fcd1a0e Mon Sep 17 00:00:00 2001 From: Quang Khai Nguyen Date: Mon, 12 Oct 2026 09:58:43 +0200 Subject: [PATCH] AI cleaned up --- index.html | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/index.html b/index.html index 8205481..59a8b22 100755 --- a/index.html +++ b/index.html @@ -78,7 +78,7 @@ - @@ -172,10 +172,10 @@
- - - - + + + +
@@ -316,23 +316,23 @@
- - + +
- - + +
- - + +
- - @@ -341,8 +341,8 @@
- - + +
@@ -710,13 +710,14 @@ function toggleMobileMenu() { const menu = document.getElementById('mobile-menu'); menu.classList.toggle('hidden'); + document.querySelector('[aria-controls="mobile-menu"]').setAttribute('aria-expanded', !menu.classList.contains('hidden')); } - function filterAttractions(category) { + function filterAttractions(category, event) { document.querySelectorAll('.filter-btn').forEach(btn => { btn.className = "filter-btn px-5 py-2 rounded-xl text-sm font-bold bg-white text-gray-600 hover:bg-gray-100 shadow-sm"; }); - event.target.className = "filter-btn active px-5 py-2 rounded-xl text-sm font-bold bg-brand-500 text-white shadow"; + event.currentTarget.className = "filter-btn active px-5 py-2 rounded-xl text-sm font-bold bg-brand-500 text-white shadow"; document.querySelectorAll('.attraction-card').forEach(card => { if (category === 'all' || card.getAttribute('data-category') === category) {