|
|
@ -225,7 +225,7 @@ function onItineraries(data) { |
|
|
|
var departureLink = document.createElement('a') |
|
|
|
var departureLink = document.createElement('a') |
|
|
|
departureHeading.appendChild(departureLink) |
|
|
|
departureHeading.appendChild(departureLink) |
|
|
|
departureLink.textContent = train.from |
|
|
|
departureLink.textContent = train.from |
|
|
|
departureLink.classList.add('no-custom-a') |
|
|
|
departureLink.classList.add('no-custom-a', 'items') |
|
|
|
var departureUrl = new URL('/view-station.html', window.location.origin) |
|
|
|
var departureUrl = new URL('/view-station.html', window.location.origin) |
|
|
|
departureUrl.searchParams.set('station', train.from) |
|
|
|
departureUrl.searchParams.set('station', train.from) |
|
|
|
departureLink.href = departureUrl.toString() |
|
|
|
departureLink.href = departureUrl.toString() |
|
|
@ -237,7 +237,7 @@ function onItineraries(data) { |
|
|
|
var trainLink = document.createElement('a') |
|
|
|
var trainLink = document.createElement('a') |
|
|
|
trainP.appendChild(trainLink) |
|
|
|
trainP.appendChild(trainLink) |
|
|
|
trainIdSpan(train.trainRank, train.trainNumber, trainLink) |
|
|
|
trainIdSpan(train.trainRank, train.trainNumber, trainLink) |
|
|
|
trainLink.classList.add('no-custom-a') |
|
|
|
trainLink.classList.add('no-custom-a', 'items') |
|
|
|
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() |
|
|
@ -256,7 +256,7 @@ function onItineraries(data) { |
|
|
|
var arrivalLink = document.createElement('a') |
|
|
|
var arrivalLink = document.createElement('a') |
|
|
|
arrivalHeading.appendChild(arrivalLink) |
|
|
|
arrivalHeading.appendChild(arrivalLink) |
|
|
|
arrivalLink.textContent = train.to |
|
|
|
arrivalLink.textContent = train.to |
|
|
|
arrivalLink.classList.add('no-custom-a') |
|
|
|
arrivalLink.classList.add('no-custom-a', 'items') |
|
|
|
var arrivalUrl = new URL('/view-station.html', window.location.origin) |
|
|
|
var arrivalUrl = new URL('/view-station.html', window.location.origin) |
|
|
|
arrivalUrl.searchParams.set('station', train.from) |
|
|
|
arrivalUrl.searchParams.set('station', train.from) |
|
|
|
arrivalLink.href = arrivalUrl.toString() |
|
|
|
arrivalLink.href = arrivalUrl.toString() |
|
|
|