summaryrefslogtreecommitdiff
path: root/public/static
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-12-28 17:32:53 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2025-12-28 17:32:53 +0100
commita1b0bc8bfa848172321865c7c99f21e78b996472 (patch)
tree37a8fc84e65eea5fea44a50597d8dd989b5272ea /public/static
parent8f17811e420e7eaa4a5a4c6d86e3d7c665abd945 (diff)
landing page: always show latest stops
Diffstat (limited to 'public/static')
-rw-r--r--public/static/js/geolocation.js20
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) + '&amp;efa=' + (efa||0) + '&amp;hafas=' + (hafas||0) + '&amp;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) {