diff --git a/src/app.css b/src/app.css index 5faa7c0..0b0676f 100644 --- a/src/app.css +++ b/src/app.css @@ -56,7 +56,9 @@ body { color: var(--second-text-color); font-family: urwgothic, sans-serif; text-align: center; - padding-bottom: 60px; /*Footer height*/ + margin: auto; + width: 100%; + padding-bottom: 65px; } a { color: var(--link-color); diff --git a/src/lib/ldb/staff/service-row.svelte b/src/lib/ldb/staff/service-row.svelte deleted file mode 100644 index 29e0121..0000000 --- a/src/lib/ldb/staff/service-row.svelte +++ /dev/null @@ -1,158 +0,0 @@ - - -{#await generateServiceData(service)} -
Updated: {dataAge.toLocaleTimeString()} - Staff Boards under development | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | Arrival | -Departure | +Arrival | +Departure | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID | @@ -363,11 +363,11 @@ {#if busServices.length}
- | Arrival | -Departure | +Arrival | +Departure | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ID | @@ -433,76 +433,76 @@
- | Arrival | -Departure | -|||||
---|---|---|---|---|---|---|---|
ID | -From | -To | -Plat | -Sch | -Exp | -Sch | -Exp | -
Loading... | -|||||||
{service.trainid} | -{serviceStats.from} | -{serviceStats.to} | -{serviceStats.platform.number || '-'} | -{serviceStats.schArr} | -{serviceStats.isArrDelayed ? 'LATE' : serviceStats.expArr} | -{serviceStats.schDep} | -{serviceStats.isDepDelayed ? 'LATE' : serviceStats.expDep} | -
- {service.operator}
- {#if serviceStats.length} | {serviceStats.length} carriages{/if}
- - {#if service.cancelReason} - |
- |||||||
Unable to load service | -
+ | Arrival | +Departure | +|||||
---|---|---|---|---|---|---|---|
ID | +From | +To | +Plat | +Sch | +Exp | +Sch | +Exp | +
Loading... | +|||||||
{service.trainid} | +{serviceStats.from} | +{serviceStats.to} | +{serviceStats.platform.number || '-'} | +{serviceStats.schArr} | +{serviceStats.isArrDelayed ? 'LATE' : serviceStats.expArr} | +{serviceStats.schDep} | +{serviceStats.isDepDelayed ? 'LATE' : serviceStats.expDep} | +
+ {service.operator}
+ {#if serviceStats.length} | {serviceStats.length} carriages{/if}
+ + {#if service.cancelReason} + |
+ |||||||
Unable to load service | +
OwlBoard has a brand new look, making it even faster for you to access the data - you won't have to register again.
" + - "Live station data is still available right from the homepage. If you are signed up, you'll get improved data from the Staff board
" + + "Live station data is still available right from the homepage. If you are signed up, you'll get improved data from the Staff board. Bus and Ferry services are still included
" + 'Train Data & PIS is now available right from the homepage if you are searching by headcode, for other PIS searches, the PIS finder is in the bottom menu
', 'If you are registered, staff station boards will be available.
' + @@ -34,7 +34,7 @@ 'Everything else has moved to the 'More' menu, where you'll find the Reference Code lookup and software details." +
'
' +
- "
You won't see this welcome screen again
" + "You will only see this welcome page again when there are new updates
" ]; diff --git a/src/routes/train/+page.svelte b/src/routes/train/+page.svelte index 4802788..40f0f35 100644 --- a/src/routes/train/+page.svelte +++ b/src/routes/train/+page.svelte @@ -53,22 +53,22 @@ const url = `https://owlboard.info/api/v2/timetable/train/${date}/${searchType}/${id}`; try { const res = await fetch(url, options); + if (res.status == 200) { + return await res.json(); + } else if (res.status === 401) { + error = true; + errMsg = 'You must be logged into the staff version for this feature'; + return false; + } else { + error = true; + errMsg = 'Unable to connect, check your connection and try again'; + return false; + } } catch (err) { error = true; errMsg = 'Connection error, try again later'; } isLoading = false; - if (res.status == 200) { - return await res.json(); - } else if (res.status === 401) { - error = true; - errMsg = 'You must be logged into the staff version for this feature'; - return false; - } else { - error = true; - errMsg = 'Unable to connect, check your connection and try again'; - return false; - } }