diff --git a/route.css b/route.css index 5fa6c3e..2e5dcf3 100644 --- a/route.css +++ b/route.css @@ -58,3 +58,8 @@ margin-left: 2px; margin-right: 2px; } + +.train .company { + font-size: 0.8em; + font-style: italic; +} diff --git a/route.js b/route.js index 2424504..07dcc2c 100644 --- a/route.js +++ b/route.js @@ -241,6 +241,11 @@ function onItineraries(data) { var trainUrl = new URL('/view-train.html', window.location.origin) trainUrl.searchParams.set('train', train.trainNumber) 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') trainDiv.appendChild(arrivalTimeP) diff --git a/sw.js b/sw.js index 4d34b2b..7b9b09c 100755 --- a/sw.js +++ b/sw.js @@ -1,4 +1,4 @@ -const VERSION = 'v32' +const VERSION = 'v33' const API_ORIGIN = 'https://scraper.infotren.dcdev.ro/' const API_TRAINS = `${API_ORIGIN}v3/trains` const API_STATIONS = `${API_ORIGIN}v3/stations`