diff --git a/htdocs/css/infoboards.css b/htdocs/css/infoboards.css
index 615bbe5..7811b07 100644
--- a/htdocs/css/infoboards.css
+++ b/htdocs/css/infoboards.css
@@ -70,6 +70,9 @@ tr.line .destination {
.delay.early {
color: #aad;
}
+ .delay.canceled {
+ color: #a55;
+ }
.departureH {
width: 0;
diff --git a/includes/StopInfoboard.php b/includes/StopInfoboard.php
index 1d30679..4a10fd2 100644
--- a/includes/StopInfoboard.php
+++ b/includes/StopInfoboard.php
@@ -181,7 +181,8 @@
echo '';
// Delay
- echo '
';
+ $class = "delay" . ($canceled ? ' canceled' : ($delay < 0 ? ' early' : ''));
+ echo ' | ';
if ($canceled) {
echo 'Rijdt niet';
} elseif (abs($delay) >= 60) {
@@ -192,23 +193,32 @@
// Departure time
echo ' | ';
- if (!$realtime) {
+ if ($canceled) echo '';
+ elseif (!$realtime) {
echo static::$theoreticalBefore;
}
echo $timeDT->format("H");
+ if ($canceled) echo '';
+
+ echo ' | ';
+ echo '';
+ if ($canceled) echo '';
+ echo ':';
+ if ($canceled) echo '';
echo ' | ';
- echo ': | ';
echo '';
+ if ($canceled) echo '';
echo $timeDT->format("i");
if ($realtime && intval($timeDT->format('s')) !== 0) {
echo ':' . $timeDT->format('s') . '';
}
- if (!$realtime) {
+ if ($canceled) echo '';
+ elseif (!$realtime) {
echo static::$theoreticalAfter;
}
|