Add operator names
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
6c2b0e6271
commit
e8c6d3bfc5
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
<div class="text-description">
|
<div class="text-description">
|
||||||
<p>This is a development release and is under testing.</p>
|
<p>This is a development release and is under testing.</p>
|
||||||
<p>Departure boards do not yet work and data may be stale.</p>
|
<p>Data may be stale.</p>
|
||||||
<p>Customise your quick links on the `Settings` page.</p>
|
<p>Customise your quick links on the `Settings` page.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -104,3 +104,46 @@ async function deflateAlerts() {
|
|||||||
document.getElementById("alert_expand_arrow").style = "transform: rotate(0deg);";
|
document.getElementById("alert_expand_arrow").style = "transform: rotate(0deg);";
|
||||||
document.getElementById("alerts_bar").setAttribute("onclick", "inflateAlerts()")
|
document.getElementById("alerts_bar").setAttribute("onclick", "inflateAlerts()")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function buildPrevCalls(data) {
|
||||||
|
/*
|
||||||
|
$data:
|
||||||
|
"previousCallingPoints":{
|
||||||
|
"callingPointList":{
|
||||||
|
"callingPoint":[
|
||||||
|
{
|
||||||
|
"locationName":"Rhymney",
|
||||||
|
"crs":"RHY",
|
||||||
|
"st":"10:27",
|
||||||
|
"at":"10:32"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"locationName":"Pontlottyn",
|
||||||
|
"crs":"PLT",
|
||||||
|
"st":"10:30",
|
||||||
|
"at":"10:36"
|
||||||
|
}...
|
||||||
|
]
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
async function builtNextCalls(data) {
|
||||||
|
/*
|
||||||
|
$data:
|
||||||
|
"subsequentCallingPoints":{
|
||||||
|
"callingPointList":{
|
||||||
|
"callingPoint":[
|
||||||
|
{
|
||||||
|
"locationName":"Pye Corner",
|
||||||
|
"crs":"PYE",
|
||||||
|
"st":"11:53",
|
||||||
|
"et":"On time"
|
||||||
|
},
|
||||||
|
{"locationName":"Rogerstone",
|
||||||
|
"crs":"ROR",
|
||||||
|
"st":"11:57",
|
||||||
|
"et":"On time"
|
||||||
|
}...
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
}
|
@ -141,6 +141,11 @@ async function displayService(svc) {
|
|||||||
</table>`
|
</table>`
|
||||||
// Put Table Row
|
// Put Table Row
|
||||||
table.insertAdjacentHTML("beforeend", row)
|
table.insertAdjacentHTML("beforeend", row)
|
||||||
|
// Display Operator
|
||||||
|
if (svc.operator) {
|
||||||
|
var opRow = `<p class="msg op">A ${svc.operator} service</p>`
|
||||||
|
table.insertAdjacentHTML("beforeend", opRow);
|
||||||
|
}
|
||||||
// Parse cancelReason & delayReason
|
// Parse cancelReason & delayReason
|
||||||
if (svc.cancelReason) {
|
if (svc.cancelReason) {
|
||||||
var cancelRow = `<p class="msg">${svc.cancelReason}</p>`
|
var cancelRow = `<p class="msg">${svc.cancelReason}</p>`
|
||||||
@ -214,6 +219,11 @@ async function displayBusService(svc) {
|
|||||||
</table>`
|
</table>`
|
||||||
// Put Table Row
|
// Put Table Row
|
||||||
table.insertAdjacentHTML("beforeend", row)
|
table.insertAdjacentHTML("beforeend", row)
|
||||||
|
// Display operator
|
||||||
|
if (svc.operator) {
|
||||||
|
var opRow = `<p class="msg op">A ${svc.operator} service</p>`
|
||||||
|
table.insertAdjacentHTML("beforeend", opRow);
|
||||||
|
}
|
||||||
// Parse cancelReason & delayReason
|
// Parse cancelReason & delayReason
|
||||||
if (svc.cancelReason) {
|
if (svc.cancelReason) {
|
||||||
var cancelRow = `<p class="msg">${svc.cancelReason}</p>`
|
var cancelRow = `<p class="msg">${svc.cancelReason}</p>`
|
||||||
|
Reference in New Issue
Block a user