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 {
|
.delay.early {
|
||||||
color: #aad;
|
color: #aad;
|
||||||
}
|
}
|
||||||
|
.delay.canceled {
|
||||||
|
color: #a55;
|
||||||
|
}
|
||||||
|
|
||||||
.departureH {
|
.departureH {
|
||||||
width: 0;
|
width: 0;
|
||||||
|
|
|
@ -181,7 +181,8 @@
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
|
|
||||||
// Delay
|
// Delay
|
||||||
echo '<td class="delay ' . ($delay < 0 ? 'early' : '') . '">';
|
$class = "delay" . ($canceled ? ' canceled' : ($delay < 0 ? ' early' : ''));
|
||||||
|
echo '<td class="delay ' . $class . '">';
|
||||||
if ($canceled) {
|
if ($canceled) {
|
||||||
echo 'Rijdt niet';
|
echo 'Rijdt niet';
|
||||||
} elseif (abs($delay) >= 60) {
|
} elseif (abs($delay) >= 60) {
|
||||||
|
@ -192,23 +193,32 @@
|
||||||
// Departure time
|
// Departure time
|
||||||
echo '<td class="departureH ' . ($realtime ? 'rt' : 'th') . '">';
|
echo '<td class="departureH ' . ($realtime ? 'rt' : 'th') . '">';
|
||||||
|
|
||||||
if (!$realtime) {
|
if ($canceled) echo '<del>';
|
||||||
|
elseif (!$realtime) {
|
||||||
echo static::$theoreticalBefore;
|
echo static::$theoreticalBefore;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $timeDT->format("H");
|
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>';
|
||||||
echo '<td class="departureSep">:</td>';
|
|
||||||
echo '<td class="departureMS ' . ($realtime ? 'rt' : 'th') . '">';
|
echo '<td class="departureMS ' . ($realtime ? 'rt' : 'th') . '">';
|
||||||
|
|
||||||
|
if ($canceled) echo '<del>';
|
||||||
echo $timeDT->format("i");
|
echo $timeDT->format("i");
|
||||||
|
|
||||||
if ($realtime && intval($timeDT->format('s')) !== 0) {
|
if ($realtime && intval($timeDT->format('s')) !== 0) {
|
||||||
echo '<span class="seconds">:' . $timeDT->format('s') . '</span>';
|
echo '<span class="seconds">:' . $timeDT->format('s') . '</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$realtime) {
|
if ($canceled) echo '</del>';
|
||||||
|
elseif (!$realtime) {
|
||||||
echo static::$theoreticalAfter;
|
echo static::$theoreticalAfter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue