From 9218a40c1345c56a1721b3a67dc12faf08975d74 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 16 Aug 2023 21:45:25 +0200 Subject: [PATCH] show train/bus icons in stop list --- public/static/js/geolocation.js | 4 ++-- sass/src/common/local.scss | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/public/static/js/geolocation.js b/public/static/js/geolocation.js index 5da28d8..302047a 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 = $('' + parts[1] + ''); + const node = $('' + parts[1] + ''); 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 = $('' + name + ''); + const node = $('' + name + ''); node.click(function() { $('nav .preloader-wrapper').addClass('active'); }); diff --git a/sass/src/common/local.scss b/sass/src/common/local.scss index 32f66da..b9362df 100644 --- a/sass/src/common/local.scss +++ b/sass/src/common/local.scss @@ -58,3 +58,9 @@ h3 { font-size: 1.64rem; margin: 1.0933333333rem 0 .656rem 0; } + +.geolocation { + i.material-icons { + font-size: 16px; + } +}