From 4fb0b34fccc80b963b357ed432c6fdd8f4e18dee Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Tue, 4 Apr 2023 18:42:55 +0100 Subject: [PATCH] Closes Issue: Show train length (https://git.fjla.uk/OwlBoard/backend/issues/9) --- index.html | 4 +--- js/simple-board.js | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index ba7a9eb..fcc9db7 100644 --- a/index.html +++ b/index.html @@ -60,9 +60,7 @@
-

A cache error means that some users are seeing a faulty layout on departure board pages, - an update to fix this has been made available but it may take a few days for this fix to - be downloaded to your device. +

A fault with our bandwidth provider is causing intermittent connectivity. Apologies for any inconvenience.

Customise your quick links on the Settings page.

diff --git a/js/simple-board.js b/js/simple-board.js index fe62945..d6ee334 100644 --- a/js/simple-board.js +++ b/js/simple-board.js @@ -141,6 +141,9 @@ async function displayService(svc) { // Display Operator if (svc.operator) { var opRow = `

A ${svc.operator} service

` + if (svc.length) { + opRow += `, with ${svc.length} carriages`; + } table.insertAdjacentHTML("beforeend", opRow); } // Parse cancelReason & delayReason