fix: Füge Farbkennzeichnung für exakten Tipp mit Joker hinzu
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
parent
2127a40b9e
commit
17c641d011
2 changed files with 19 additions and 3 deletions
|
|
@ -17,6 +17,7 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
|
|||
.col_exact { background-color: #28a745 !important; color: white; } /* Exaktes Ergebnis */
|
||||
.col_diff { background-color: #ffc107 !important; } /* Richtige Tordifferenz */
|
||||
.col_tendenz { background-color: #17a2b8 !important; color: white; } /* Richtige Tendenz */
|
||||
.col_joker_exact { background-color: #6f42c1 !important; color: white; } /* Exaktes Ergebnis mit Joker */
|
||||
.round-filter { margin-bottom: 20px; }
|
||||
.joker-icon { font-size: 0.7em; vertical-align: top; }
|
||||
th.game-header { white-space: normal; } /* Erlaubt Umbruch im Header */
|
||||
|
|
@ -69,8 +70,15 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
|
|||
<td><strong><?php echo $entry['score']; ?></strong></td>
|
||||
<td><?php echo $entry['round_score']; ?></td>
|
||||
<?php foreach ($games as $game): ?>
|
||||
<?php $tipp = $entry['tipps'][$game['id']]; ?>
|
||||
<td class="tipp-cell <?php echo htmlspecialchars($tipp['color']); ?>">
|
||||
<?php
|
||||
$tipp = $entry['tipps'][$game['id']];
|
||||
$td_class = $tipp['color'];
|
||||
// Spezielle Farbe für exakten Tipp mit Joker
|
||||
if ($td_class === 'col_exact' && $tipp['is_joker']) {
|
||||
$td_class = 'col_joker_exact';
|
||||
}
|
||||
?>
|
||||
<td class="tipp-cell <?php echo htmlspecialchars($td_class); ?>">
|
||||
<span title="Dein Tipp: <?php echo htmlspecialchars($tipp['text']); ?>">
|
||||
<?php echo $tipp['points']; ?>
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ require __DIR__ . '/partials/header.php';
|
|||
.col_exact { background-color: #28a745 !important; color: white; } /* Exaktes Ergebnis */
|
||||
.col_diff { background-color: #ffc107 !important; } /* Richtige Tordifferenz */
|
||||
.col_tendenz { background-color: #17a2b8 !important; color: white; } /* Richtige Tendenz */
|
||||
.col_joker_exact { background-color: #6f42c1 !important; color: white; } /* Exaktes Ergebnis mit Joker */
|
||||
.joker-icon { font-size: 0.7em; vertical-align: top; }
|
||||
th.game-header { white-space: normal; } /* Erlaubt Umbruch im Header */
|
||||
.table-container { width: 100%; overflow-x: auto; margin-top: 20px; }
|
||||
|
|
@ -68,7 +69,14 @@ require __DIR__ . '/partials/header.php';
|
|||
$is_joker = (bool)$tipp['joker'];
|
||||
}
|
||||
?>
|
||||
<td class="tipp-cell <?php echo htmlspecialchars($color); ?>">
|
||||
<?php
|
||||
$td_class = $color;
|
||||
// Spezielle Farbe für exakten Tipp mit Joker
|
||||
if ($td_class === 'col_exact' && $is_joker) {
|
||||
$td_class = 'col_joker_exact';
|
||||
}
|
||||
?>
|
||||
<td class="tipp-cell <?php echo htmlspecialchars($td_class); ?>">
|
||||
<?php echo htmlspecialchars($text); ?>
|
||||
<?php if ($is_joker && Game::isLocked($game['kickoff'])): ?>
|
||||
<span class="joker-icon" title="Joker">🃏</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue