@ -1,4 +1,4 @@
const VERSION = 'v22'
const VERSION = 'v23'
const API_ORIGIN = 'https://scraper.infotren.dcdev.ro/'
const API_TRAINS = `${API_ORIGIN}v3/trains`
const API_STATIONS = `${API_ORIGIN}v3/stations`
@ -209,6 +209,12 @@ window.addEventListener('load', function (e) {
})
if (navigator.canShare && navigator.canShare({ url: '' })) {
document.getElementById('title').addEventListener('click', function () {
navigator.share({ url: '' });
}
refresh()
setInterval(function () {
@ -518,6 +518,12 @@ window.addEventListener('load', function (e) {
var content = document.getElementsByClassName('content')[0]
content.focus()
content.addEventListener('keydown', function (e) {