ICEHL: Ban for Vienna Capitals crack after game 2!

‘; if (periodElement) { displayHTML += ‘

‘ + periodElement.textContent + ‘

‘; } countdownDisplay.innerHTML = displayHTML; } else { // No score available, show status message element.innerHTML = ‘Game started‘; } } }); } // Update countdowns immediately and then every second updateCountdowns(); setInterval(updateCountdowns, 1000); // Check if there are any live/in-progress games and reload widget every minute if so function checkForLiveGames() { const hasLiveGames = document.querySelectorAll(‘.text-danger’).length > 0; // Live games have text-danger class if (hasLiveGames) { setTimeout(function() { // Reload the entire page for live games updates // Note: Without jQuery, we’d need to implement custom AJAX loading // For now, we’ll reload the page which is simpler and more reliable window.location.reload(); }, 60000); // Reload after 60 seconds } } checkForLiveGames(); // Auto-scroll to first live game or today’s games function autoScrollToRelevantGame() { const container = document.querySelector(‘.week-games-container’); // First, try to find live games (games with text-danger class) const liveGameElement = document.querySelector(‘.text-danger’); if (liveGameElement) { const liveGame = liveGameElement.closest(‘.game-card’); if (liveGame) { const scrollLeft = liveGame.offsetLeft – 50; container.scrollTo({ left: scrollLeft, behavior: ‘smooth’ }); return; } } // If no live games, find today’s games const today = new Date(); const todayStr = today.getDate().toString().padStart(2, ‘0’) + ‘.’ + (today.getMonth() + 1).toString().padStart(2, ‘0’) + ‘.’ + today.getFullYear(); // Look for games with today’s date in the header let todayGame = null; document.querySelectorAll(‘.card-header’).forEach(function(header) { if (header.textContent.includes(todayStr)) { todayGame = header.closest(‘.game-card’); return; } }); if (todayGame) { const scrollLeft = todayGame.offsetLeft – 50; container.scrollTo({ left: scrollLeft, behavior: ‘smooth’ }); } } // Run auto-scroll after a short delay to ensure everything is loaded setTimeout(autoScrollToRelevantGame, 100); });