W=9249|P=/tmp/.m7x2k9q4v1.dat|S=9249| FM / js
/home1/kilifi/public_html/assets/js
NameSizeModeActions
main.js11840644editdlrm
Edit: /home1/kilifi/public_html/assets/js/main.js (1184B)
// KCCF Main JavaScript document.addEventListener('DOMContentLoaded', function() { // Smooth scrolling for anchor links document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function (e) { e.preventDefault(); document.querySelector(this.getAttribute('href')).scrollIntoView({ behavior: 'smooth' }); }); }); // Simple Form Validation Feedback const forms = document.querySelectorAll('.needs-validation'); Array.from(forms).forEach(form => { form.addEventListener('submit', event => { if (!form.checkValidity()) { event.preventDefault(); event.stopPropagation(); } form.classList.add('was-validated'); }, false); }); // Dynamic stats animation (Impact Page) const stats = document.querySelectorAll('.display-5'); stats.forEach(stat => { const value = parseInt(stat.innerText.replace(/\D/g,'')); if(!isNaN(value)) { // Logic for counter animation could be added here } }); });