feat: add intermission section separate from live games
Games in intermission now appear in their own section between Live and Scheduled. The section is hidden when no games are in intermission, matching the behavior of the other section headings. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,7 @@ async function fetchScoreboardData() {
|
||||
function updateScoreboard(data) {
|
||||
const sections = [
|
||||
{ sectionId: 'live-section', gridId: 'live-games-section', games: data.live_games, render: renderLiveGame },
|
||||
{ sectionId: 'intermission-section', gridId: 'intermission-games-section', games: data.intermission_games, render: renderLiveGame },
|
||||
{ sectionId: 'pre-section', gridId: 'pre-games-section', games: data.pre_games, render: renderPreGame },
|
||||
{ sectionId: 'final-section', gridId: 'final-games-section', games: data.final_games, render: renderFinalGame },
|
||||
];
|
||||
|
||||
@@ -21,6 +21,10 @@
|
||||
<h2 class="section-heading">Live</h2>
|
||||
<div id="live-games-section" class="games-grid"></div>
|
||||
</section>
|
||||
<section id="intermission-section" class="section hidden">
|
||||
<h2 class="section-heading">Intermission</h2>
|
||||
<div id="intermission-games-section" class="games-grid"></div>
|
||||
</section>
|
||||
<section id="pre-section" class="section hidden">
|
||||
<h2 class="section-heading">Scheduled</h2>
|
||||
<div id="pre-games-section" class="games-grid"></div>
|
||||
|
||||
Reference in New Issue
Block a user