Compare commits

..

No commits in common. "b134829e8c414c6c45c37d3a42f71f450c78e12f" and "86b2caf6e99f1b67771ae4970f2c6140b8ebbca1" have entirely different histories.

3 changed files with 8 additions and 8 deletions

View file

@ -162,7 +162,7 @@ p, ul {
margin: 0 8px; margin: 0 8px;
} }
p.link, a:not(.no-a-custom):not(.no-custom-a) { p.link, a:not(.no-a-custom) {
font-size: 17px; font-size: 17px;
font-weight: 700; font-weight: 700;
} }
@ -199,18 +199,18 @@ li.items:not(.disabled):hover:not(:focus) {
background-color: lightskyblue; background-color: lightskyblue;
} }
a:not(.no-a-custom):not(.no-custom-a) { a:not(.no-a-custom) {
display: block; display: block;
padding: 8px; padding: 8px;
color: black; color: black;
} }
a.no-a-custom, a.no-custom-a { a.no-a-custom {
color: inherit; color: inherit;
text-decoration: inherit; text-decoration: inherit;
} }
a.inline:not(.no-a-custom):not(.no-custom-a) { a.inline:not(.no-a-custom) {
display: inline; display: inline;
padding: 2px; padding: 2px;
} }

View file

@ -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', 'items') departureLink.classList.add('no-custom-a')
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', 'items') trainLink.classList.add('no-custom-a')
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', 'items') arrivalLink.classList.add('no-custom-a')
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()

2
sw.js
View file

@ -1,4 +1,4 @@
const VERSION = 'v27' const VERSION = 'v26'
const API_ORIGIN = 'https://scraper.infotren.dcdev.ro/' const API_ORIGIN = 'https://scraper.infotren.dcdev.ro/'
const API_TRAINS = `${API_ORIGIN}v3/trains` const API_TRAINS = `${API_ORIGIN}v3/trains`
const API_STATIONS = `${API_ORIGIN}v3/stations` const API_STATIONS = `${API_ORIGIN}v3/stations`