|
|
@ -246,19 +246,14 @@ function csk() { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (focusedElement.id === 'stationName') { |
|
|
|
|
|
|
|
goToTrain(document.activeElement.value.trim()) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
focusedElement.click() |
|
|
|
focusedElement.click() |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
window.addEventListener('load', function (e) { |
|
|
|
window.addEventListener('load', function (e) { |
|
|
|
if (window.localStorage) { |
|
|
|
if (window.localStorage) { |
|
|
|
var maybeStarred = JSON.parse(localStorage.getItem('stations/starred')) |
|
|
|
var maybeStarred = JSON.parse(localStorage.getItem('stations/starred')) |
|
|
|
if (maybeStarred) { |
|
|
|
if (maybeStarred) { |
|
|
|
starred = maybeStarred |
|
|
|
starred = maybeStarred.filter(function (item) { return item.id }) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|