CoolFace
Apppublic

taurus256/oceanic-breeze-brand-refresh

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
script.js17 linesDownload Raw Back to root
1document.addEventListener('DOMContentLoaded', () => {2    // Smooth scroll for anchor links3    document.querySelectorAll('a[href^="#"]').forEach(anchor => {4        anchor.addEventListener('click', function (e) {5            e.preventDefault();6            document.querySelector(this.getAttribute('href')).scrollIntoView({7                behavior: 'smooth'8            });9        });10    });11 12    // Dynamic year for footer13    const yearElement = document.getElementById('current-year');14    if (yearElement) {15        yearElement.textContent = new Date().getFullYear();16    }17});