first commit #7

Merged
zelda merged 1 commits from zelda.fix-model-about-us-footer into main 2026-05-21 19:04:33 +10:00
1 changed files with 11 additions and 0 deletions
Showing only changes of commit bb47283766 - Show all commits

View File

@ -264,6 +264,17 @@ document.addEventListener("DOMContentLoaded", () => {
sections.forEach((section) => observer.observe(section));
// Hide scroll indicator when footer is visible
const footerEl = document.querySelector("footer.page-footer");
if (footerEl && scrollIndicator) {
const footerObserver = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
scrollIndicator.style.opacity = entry.isIntersecting ? "0" : "";
});
}, { threshold: 0.05 });
footerObserver.observe(footerEl);
}
// ============ SMOOTH SCROLL (Navbar) ============
document.querySelectorAll('a[href^="#"]').forEach((anchor) => {
anchor.addEventListener("click", function (e) {