@keyframes spin {
0% { transform: rotate(0deg);}
100% { transform: rotate(360deg);}
}
(async function() {
const dailyLectioRoot = ‘https://www.dailylectio.net/’;
const corsProxies = [
‘https://api.allorigins.win/raw?url=’,
‘https://corsproxy.io/?’
];
const fallbackLink = ‘https://www.streetangel.com.au/access-daily-morning-and-evening-prayer’;
const root = document.getElementById(‘app-root’);
async function fetchWithProxy(proxyIndex, url) {
if (proxyIndex >= corsProxies
" target="_blank" rel="noopener noreferrer" style="display: inline-block;margin-top: 15px;padding: 10px 20px;background: #1e88e5;color: #fff;text-decoration: none;border-radius: 8px">
View Daily Prayer on TheGoodNewsBlog.org
`;
return null;
}
try {
const cacheBuster = `cb=${Date.now()}`;
const proxiedUrl = url + (url.includes('?') ? '&' : '?') + cacheBuster;
const response = await fetch(corsProxies[proxyIndex] + encodeURIComponent(proxiedUrl));
if (!response.ok) throw new Error(`Failed to fetch via proxy ${proxyIndex + 1}`);
const html = await response.text();
return html;
} catch (error) {
return fetchWithProxy(proxyIndex + 1, url);
}
}
// Step 1: Fetch main page to get today's reading link
const mainPageHtml = await fetchWithProxy(0, dailyLectioRoot);
if (!mainPageHtml) return;
const parser = new DOMParser();
const mainDoc = parser.parseFromString(mainPageHtml, 'text/html');
// Find the "Today's Reading" button link
const todayLinkElement = mainDoc.querySelector('a.btn-primary.btn-lg[href*="/2025"]') || mainDoc.querySelector('a.btn-primary.btn-lg');
if (!todayLinkElement) {
root.innerHTML = `
Could not find today's reading link.
Please visit the official site directly:
`;
return;
}
const todayReadingUrl = dailyLectioRoot.replace(//$/, '') + todayLinkElement.getAttribute('href');
// Step 2: Fetch today's reading page
const readingPageHtml = await fetchWithProxy(0, todayReadingUrl);
if (!readingPageHtml) return;
const readingDoc = parser.parseFromString(readingPageHtml, 'text/html');
const readingContent = readingDoc.querySelector('.reading-content');
if (readingContent) {
root.innerHTML = `
Today's DailyLectio Reading
${readingContent.innerHTML}
`;
} else {
root.innerHTML = `
The DailyLectio reading content is currently unavailable.
Please visit the official site directly:
`;
}
})();
This content is provided for educational and public domain use only. For official readings and permissions, please visit DailyLectio.net.
Revised Common Lectionary Daily Readings copyright ยฉ 2005 Consultation on Common Texts admin. Augsburg Fortress.
New Revised Standard Version Bible, copyright ยฉ 1989 National Council of the Churches of Christ in the United States of America. All rights reserved.

