|
|
@ -241,6 +241,11 @@ function onItineraries(data) { |
|
|
|
var trainUrl = new URL('/view-train.html', window.location.origin) |
|
|
|
var trainUrl = new URL('/view-train.html', window.location.origin) |
|
|
|
trainUrl.searchParams.set('train', train.trainNumber) |
|
|
|
trainUrl.searchParams.set('train', train.trainNumber) |
|
|
|
trainLink.href = trainUrl.toString() |
|
|
|
trainLink.href = trainUrl.toString() |
|
|
|
|
|
|
|
trainP.appendChild(document.createTextNode(' ')) |
|
|
|
|
|
|
|
var trainCompany = document.createElement('span') |
|
|
|
|
|
|
|
trainP.appendChild(trainCompany) |
|
|
|
|
|
|
|
trainCompany.textContent = '(' + train.operator + ')' |
|
|
|
|
|
|
|
trainCompany.classList.add('company') |
|
|
|
|
|
|
|
|
|
|
|
var arrivalTimeP = document.createElement('p') |
|
|
|
var arrivalTimeP = document.createElement('p') |
|
|
|
trainDiv.appendChild(arrivalTimeP) |
|
|
|
trainDiv.appendChild(arrivalTimeP) |
|
|
|