4 Commits

Author SHA1 Message Date
c0f1be346c Merge pull request #14 from JoshNotWright/feature/better-refresh
Update styles.css: fix sections
2024-02-18 18:24:11 -05:00
1b376b4aa1 styles.css: fix sections 2024-02-18 18:23:27 -05:00
941871d766 Merge pull request #11 from JoshNotWright/feature/better-refresh
index.html: fix game score not appearing
2024-02-18 18:08:50 -05:00
7cc8913a00 index.html: fix game score not appearing 2024-02-18 18:08:01 -05:00
2 changed files with 7 additions and 5 deletions

View File

@@ -72,6 +72,7 @@ function generateGameBoxes(games, state) {
html += '<span class="team-power-play">' + game['Home Power Play'] + '</span>'; html += '<span class="team-power-play">' + game['Home Power Play'] + '</span>';
html += '</div>'; html += '</div>';
html += '<span class="team-score">' + game['Home Score'] + '</span>'; html += '<span class="team-score">' + game['Home Score'] + '</span>';
html += '</div>';
html += '<div class="game-info">'; html += '<div class="game-info">';
if (game['Intermission']) { if (game['Intermission']) {
html += '<div class="live-state-intermission">' html += '<div class="live-state-intermission">'
@@ -104,7 +105,7 @@ function generateGameBoxes(games, state) {
html += '<div class="live-time">' + game['Time Remaining'] + '</div>'; html += '<div class="live-time">' + game['Time Remaining'] + '</div>';
} }
html += '</div>'; html += '</div>';
html += '<div class="game-info>'; html += '<div class="game-info">';
html += '<strong>Game Score: </strong>' + game['Priority']; html += '<strong>Game Score: </strong>' + game['Priority'];
html += '</div>'; html += '</div>';
html += '</div>'; html += '</div>';

View File

@@ -76,9 +76,10 @@ h1 {
} }
.game-info { .game-info {
margin-top: 10px; margin-top: 12px;
color: #aaa; /* Lighten the text color */ color: #aaa; /* Lighten the text color */
text-align: center; text-align: center;
font-size: 14px;
} }
.game-info strong { .game-info strong {
@@ -171,7 +172,7 @@ h1 {
z-index: 1; /* Ensure the time box is above other content */ z-index: 1; /* Ensure the time box is above other content */
} }
.live-games-section { #live-games-section {
display: flex; display: flex;
align-items: start; align-items: start;
flex-wrap: wrap; flex-wrap: wrap;
@@ -179,7 +180,7 @@ h1 {
margin-top: 20px; margin-top: 20px;
} }
.pre-games-section { #pre-games-section {
display: flex; display: flex;
align-items: start; align-items: start;
flex-wrap: wrap; flex-wrap: wrap;
@@ -187,7 +188,7 @@ h1 {
margin-top: 20px; margin-top: 20px;
} }
.final-games-section { #final-games-section {
display: flex; display: flex;
align-items: start; align-items: start;
flex-wrap: wrap; flex-wrap: wrap;