summaryrefslogtreecommitdiff
path: root/public/static
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-08-17 17:15:18 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-08-17 17:15:18 +0200
commit77238628cc9da8582ec718216beb45adb2d2a28d (patch)
treef08e69acd61acce6def17ca2005e476cf404d21f /public/static
parent9218a40c1345c56a1721b3a67dc12faf08975d74 (diff)
use more easily distinguishable icons for hafas/iris; document in legend
Diffstat (limited to 'public/static')
-rw-r--r--public/static/js/geolocation.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/static/js/geolocation.js b/public/static/js/geolocation.js
index 302047a..03857a1 100644
--- a/public/static/js/geolocation.js
+++ b/public/static/js/geolocation.js
@@ -24,7 +24,7 @@ $(document).ready(function() {
const res = $(document.createElement('p'));
$.each(stops, function(i, stop) {
const parts = stop.split(';');
- const node = $('<a class="tablerow" href="/s/' + parts[0] + '?hafas=' + parts[2] + '"><span><i class="material-icons" aria-hidden="true">' + (parseInt(parts[2]) ? 'directions_bus' : 'train') + '</i>' + parts[1] + '</span></a>');
+ const node = $('<a class="tablerow" href="/s/' + parts[0] + '?hafas=' + parts[2] + '"><span><i class="material-icons" aria-hidden="true">' + (parseInt(parts[2]) ? 'directions' : 'train') + '</i>' + parts[1] + '</span></a>');
node.click(function() {
$('nav .preloader-wrapper').addClass('active');
});
@@ -51,7 +51,7 @@ $(document).ready(function() {
hafas = candidate.hafas,
distance = candidate.distance.toFixed(1);
- const node = $('<a class="tablerow" href="/s/' + eva + '?hafas=' + hafas + '"><span><i class="material-icons" aria-hidden="true">' + (parseInt(hafas) ? 'directions_bus' : 'train') + '</i>' + name + '</span></a>');
+ const node = $('<a class="tablerow" href="/s/' + eva + '?hafas=' + hafas + '"><span><i class="material-icons" aria-hidden="true">' + (parseInt(hafas) ? 'directions' : 'train') + '</i>' + name + '</span></a>');
node.click(function() {
$('nav .preloader-wrapper').addClass('active');
});