document.addEventListener('DOMContentLoaded', function() { // Set the current year in the footer document.getElementById('current-year').textContent = new Date().getFullYear(); });