From b134829e8c414c6c45c37d3a42f71f450c78e12f Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Sat, 31 Dec 2022 14:00:34 +0200 Subject: [PATCH] Add arrow navigation to route page --- route.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/route.js b/route.js index aefc05c..2424504 100644 --- a/route.js +++ b/route.js @@ -225,7 +225,7 @@ function onItineraries(data) { var departureLink = document.createElement('a') departureHeading.appendChild(departureLink) 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) departureUrl.searchParams.set('station', train.from) departureLink.href = departureUrl.toString() @@ -237,7 +237,7 @@ function onItineraries(data) { var trainLink = document.createElement('a') trainP.appendChild(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) trainUrl.searchParams.set('train', train.trainNumber) trainLink.href = trainUrl.toString() @@ -256,7 +256,7 @@ function onItineraries(data) { var arrivalLink = document.createElement('a') arrivalHeading.appendChild(arrivalLink) 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) arrivalUrl.searchParams.set('station', train.from) arrivalLink.href = arrivalUrl.toString()