Increase "canceled" visibility
This commit is contained in:
parent
543c7e76c7
commit
5d51ba6e0b
2 changed files with 17 additions and 4 deletions
|
@ -70,6 +70,9 @@ tr.line .destination {
|
|||
.delay.early {
|
||||
color: #aad;
|
||||
}
|
||||
.delay.canceled {
|
||||
color: #a55;
|
||||
}
|
||||
|
||||
.departureH {
|
||||
width: 0;
|
||||
|
|
|
@ -181,7 +181,8 @@
|
|||
echo '</td>';
|
||||
|
||||
// Delay
|
||||
echo '<td class="delay ' . ($delay < 0 ? 'early' : '') . '">';
|
||||
$class = "delay" . ($canceled ? ' canceled' : ($delay < 0 ? ' early' : ''));
|
||||
echo '<td class="delay ' . $class . '">';
|
||||
if ($canceled) {
|
||||
echo 'Rijdt niet';
|
||||
} elseif (abs($delay) >= 60) {
|
||||
|
@ -192,23 +193,32 @@
|
|||
// Departure time
|
||||
echo '<td class="departureH ' . ($realtime ? 'rt' : 'th') . '">';
|
||||
|
||||
if (!$realtime) {
|
||||
if ($canceled) echo '<del>';
|
||||
elseif (!$realtime) {
|
||||
echo static::$theoreticalBefore;
|
||||
}
|
||||
|
||||
echo $timeDT->format("H");
|
||||
|
||||
if ($canceled) echo '</del>';
|
||||
|
||||
echo '</td>';
|
||||
echo '<td class="departureSep">';
|
||||
if ($canceled) echo '<del>';
|
||||
echo ':';
|
||||
if ($canceled) echo '</del>';
|
||||
echo '</td>';
|
||||
echo '<td class="departureSep">:</td>';
|
||||
echo '<td class="departureMS ' . ($realtime ? 'rt' : 'th') . '">';
|
||||
|
||||
if ($canceled) echo '<del>';
|
||||
echo $timeDT->format("i");
|
||||
|
||||
if ($realtime && intval($timeDT->format('s')) !== 0) {
|
||||
echo '<span class="seconds">:' . $timeDT->format('s') . '</span>';
|
||||
}
|
||||
|
||||
if (!$realtime) {
|
||||
if ($canceled) echo '</del>';
|
||||
elseif (!$realtime) {
|
||||
echo static::$theoreticalAfter;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue