// Array of section IDs corresponding to each day's Bible verse const sections = [ '#verse-one', '#verse-two', '#verse-three', '#verse-four', '#verse-five', '#verse-six', '#verse-seven', '#verse-eight', '#verse-nine', '#verse-ten', ]; // Function to show the section corresponding to the current day function showDailyVerse() { // Get the current day of the month (1 - 31) const today = new Date().getDate(); // Hide all sections first sections.forEach(section => { const el = document.querySelector(section); if (el) el.style.display = 'none'; }); // Show the section corresponding to today's date const verseOfTheDay = sections[today - 1]; // Adjust for 0-based array const verseElement = document.querySelector(verseOfTheDay); if (verseElement) verseElement.style.display = 'block'; } // Run the function when the page loads window.onload = showDailyVerse;