Merge pull request 'first commit' (#7) from zelda.fix-model-about-us-footer into main

Reviewed-on: #7
This commit is contained in:
zelda 2026-05-21 19:04:32 +10:00
commit 217b81a7fe
1 changed files with 11 additions and 0 deletions

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) {