diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-12-28 17:32:53 +0100 |
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-12-28 17:32:53 +0100 |
| commit | a1b0bc8bfa848172321865c7c99f21e78b996472 (patch) | |
| tree | 37a8fc84e65eea5fea44a50597d8dd989b5272ea /public/static | |
| parent | 8f17811e420e7eaa4a5a4c6d86e3d7c665abd945 (diff) | |
landing page: always show latest stops
Diffstat (limited to 'public/static')
| -rw-r--r-- | public/static/js/geolocation.js | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/public/static/js/geolocation.js b/public/static/js/geolocation.js index fdf757a..58f14a1 100644 --- a/public/static/js/geolocation.js +++ b/public/static/js/geolocation.js @@ -18,25 +18,7 @@ $(document).ready(function() { $('div.geolocation').append(errnode); - const recent = $('div.geolocation').data('recent'); - if (recent) { - const stops = recent.split('|'); - const res = $(document.createElement('p')); - $.each(stops, function(i, stop) { - const parts = stop.split(';'); - const [ eva, name, dbris, efa, hafas, motis ] = parts; - - const node = $('<a class="tablerow" href="/s/' + eva + '?dbris=' + (dbris||0) + '&efa=' + (efa||0) + '&hafas=' + (hafas||0) + '&motis=' + (motis||0) + '"><span>' + name + '</span></a>'); - node.click(function() { - $('nav .preloader-wrapper').addClass('active'); - }); - res.append(node); - }); - $('p.geolocationhint').text('Letzte Ziele:'); - getPlaceholder().replaceWith(res); - } else { - getPlaceholder().remove(); - } + getPlaceholder().remove(); }; const processResult = function(data) { |
