Ver servicios anteriores
Busca y mira servicios pasados, ordenados por serie de sermones, orador y tema.
var target = document.getElementById("subsplash-embed-xjwskjw");var script = document.createElement("script");script.type = "text/javascript";script.onload = function() {subsplashEmbed("+gpyb/lb/li/+xjwskjw?embed&branding&1791127091328","https://subsplash.com/","subsplash-embed-xjwskjw");};script.src = "https://dashboard.static.subsplash.com/production/web-client/external/embed-1.1.0.js";target.parentElement.insertBefore(script, target); function checkTimeAndDisplay() {
var now = new Date();
var day = now.getDay(); // Sunday - 0, Monday - 1, ..., Saturday - 6
var hours = now.getHours(); // 0 - 23
var livestream = document.querySelector('.livestream');
var mostrecent = document.querySelector('.mostrecent');
console.log("Current day: " + day); // Debugging
console.log("Current hours: " + hours); // Debugging
if (day === 0 && hours >= 7 && hours < 12) { // If it's Sunday between 7am and 12pm
console.log("Displaying livestream"); // Debugging
livestream.classList.remove('hidden');
mostrecent.classList.add('hidden');
} else {
console.log("Displaying most recent"); // Debugging
livestream.classList.add('hidden');
mostrecent.classList.remove('hidden');
}
}
// Run the function when the page loads
window.onload = checkTimeAndDisplay;