Kenneth Bruen
c0c5f3e7c4
Show time in monospace
2 years ago
Kenneth Bruen
04e2019afe
Fix date handling on API request
2 years ago
Kenneth Bruen
220f6666a5
Add support for IC trains
2 years ago
Kenneth Bruen
255dae9dec
Add service worker version on about page
2 years ago
Kenneth Bruen
3b007ce548
Add defer to script loading
2 years ago
Kenneth Bruen
fd1e7c0729
Add back button
...
Also: change PWA to standalone
2 years ago
Kenneth Bruen
32f52fe549
Fix refresh button on view station page
2 years ago
Kenneth Bruen
c2ea04de4b
Enable service worker for Safari
...
For future reference: the preflight request must return these headers:
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, HEAD, OPTIONS
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization, Pragma, Cache-Control
Otherwise, Safari will refuse requests made inside a service worker
reporting a preflight check fail.
2 years ago
Kenneth Bruen
9d4442de45
Fix service worker cache, handle refresh better
2 years ago
Kenneth Bruen
0827a1ec31
Add delay information next to time at view train
...
When a train has a 2 minute delay, currently the scheduled time is
displayed with strikethrough and the actual time is displayed below.
This change adds a +2 after the original time to also have the relative
delay, not just the absolute one.
2 years ago
Kenneth Bruen
1fb1153f13
Fix station search bug
...
When writing "cala" in order to search for "Călărași", it wouldn't work
because only the first ă was replaced with a.
2 years ago
Kenneth Bruen
6e4b6a609a
Add label
2 years ago
Kenneth Bruen
1d86207143
Change input type to search, add label
2 years ago
Kenneth Bruen
002086c74c
Fix bug in sw caching API
2 years ago
Kenneth Bruen
c748f117c3
Fix bug in yesterday date computation
2 years ago
Kenneth Bruen
7bd7b26256
Add alert about yesterday train feature
2 years ago
Kenneth Bruen
f1141b1e06
Allow viewing yesterday's train
...
This can be achieved by selecting the date in the view train screen.
2 years ago
Kenneth Bruen
a6757f394a
Implement selectable links for station names
...
Also prepare for date switcher
2 years ago
Kenneth Bruen
ee86e741eb
Add CSS rules for uncustomised <a>
2 years ago
Kenneth Bruen
dd666466ee
Remove number input type from station input
2 years ago
Kenneth Bruen
ebb0b5f0ba
Add loading text
2 years ago
Kenneth Bruen
3ca35ce91d
Prevent refresh on back to group select
...
If train data is already known, don't refresh when going back to the group
selection screen.
2 years ago
Kenneth Bruen
35b19ffe80
Add station arrivals/departures pages
2 years ago
Kenneth Bruen
e4b8a25b60
Add support for tabs
2 years ago
Kenneth Bruen
555f80aa1c
Allow choosing train that is not known/suggested
2 years ago
Kenneth Bruen
f4ae034812
Show only first 100 results to prevent lag
2 years ago
Kenneth Bruen
5531f908af
Allow pages to be properly printable
2 years ago
Kenneth Bruen
a1628d6297
Apply different background color for even items
2 years ago
Kenneth Bruen
729f047903
Attempt at keeping print items not page broken
2 years ago
Kenneth Bruen
0765bc8232
Modify title of view train page when data is found
2 years ago
Kenneth Bruen
5c95dec36d
Improve promise handling
2 years ago
Kenneth Bruen
2aa147060a
Move common js files to folder
2 years ago
Kenneth Bruen
c60c20a736
Add train notes
2 years ago
Kenneth Bruen
ccc3d8e127
Move to API v3, support train groups
2 years ago
Kenneth Bruen
9f229be704
Improve train search sorting
2 years ago
Kenneth Bruen
b84caadaae
Added service worker
2 years ago
Kenneth Bruen
29d0671282
Add PWA manifest
2 years ago
Kenneth Bruen
cdb5243e00
Fix last refreshed with "now"
3 years ago
Kenneth Bruen
7e3e928682
Fix error handling when refreshing
3 years ago
Kenneth Bruen
43160d153e
Show time in local format instead of custom one
3 years ago
Kenneth Bruen
b85c722d26
Changed "No delay" to "On time"
3 years ago
Kenneth Bruen
db6c4284d0
Made Refresh RSK show a hand
3 years ago
Kenneth Bruen
78a639f368
Fix time alignment
3 years ago
Kenneth Bruen
98b4832111
Added hoved to selectable li
3 years ago
Kenneth Bruen
1d17cbbdb6
Removed Atkinson Hyperlegible font
...
On some devices, it is not rendered;
Will probably add again as a setting
3 years ago
Kenneth Bruen
7905df4f52
Added last updated message
3 years ago
Kenneth Bruen
b1df8dfc7a
Changed km toggle keybind to 7
3 years ago
Kenneth Bruen
463fcc30f9
Implemented changing date using 1 and 3
3 years ago
Kenneth Bruen
c86c7c14ad
Added date on view train page
3 years ago
Kenneth Bruen
b0afb0dfea
Implemented click on CSK on train search page
3 years ago