pis #2
@ -140,9 +140,11 @@ async function displayService(svc) {
|
||||
table.insertAdjacentHTML("beforeend", row)
|
||||
// Display Operator
|
||||
if (svc.operator) {
|
||||
var opRow = `<p class="msg op">A ${svc.operator} service</p>`
|
||||
var opRow = `<p class="msg op">A ${svc.operator} service`
|
||||
if (svc.length) {
|
||||
opRow += `, with ${svc.length} carriages`;
|
||||
opRow += ` with ${svc.length} carriages</p>`;
|
||||
} else {
|
||||
opRow += `</p>`
|
||||
}
|
||||
table.insertAdjacentHTML("beforeend", opRow);
|
||||
}
|
||||
|
Reference in New Issue
Block a user