Skip to content

Commit d4f39a8

Browse files
author
ZENTAXA Team
committed
Fix mobile navigation issue: link script.js and update initialization
1 parent 82f0c3e commit d4f39a8

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

index.html

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -618,32 +618,7 @@ <h3 class="mb-4">Get started for free</h3>
618618

619619

620620

621-
<script>
622-
623-
// Mobile Menu Toggle
624-
const mobileMenuButton = document.getElementById('mobile-menu-button');
625-
const mobileMenu = document.getElementById('mobile-menu');
626-
627-
if (mobileMenuButton && mobileMenu) {
628-
mobileMenuButton.addEventListener('click', () => {
629-
const isExpanded = mobileMenuButton.getAttribute('aria-expanded') === 'true';
630-
mobileMenuButton.setAttribute('aria-expanded', !isExpanded);
631-
mobileMenu.classList.toggle('show');
632-
});
633-
}
634-
635-
// Mobile menu only
636-
const mobileMenuButton = document.getElementById('mobile-menu-button');
637-
const mobileMenu = document.getElementById('mobile-menu');
638-
639-
if (mobileMenuButton && mobileMenu) {
640-
mobileMenuButton.addEventListener('click', () => {
641-
const isExpanded = mobileMenuButton.getAttribute('aria-expanded') === 'true';
642-
mobileMenuButton.setAttribute('aria-expanded', !isExpanded);
643-
mobileMenu.classList.toggle('show');
644-
});
645-
}
646-
</script>
621+
<script src="script.js"></script>
647622
</body>
648623

649624
</html>

0 commit comments

Comments
 (0)