show train/bus icons in stop list
This commit is contained in:
parent
479ded0c72
commit
9218a40c13
2 changed files with 8 additions and 2 deletions
|
@ -24,7 +24,7 @@ $(document).ready(function() {
|
||||||
const res = $(document.createElement('p'));
|
const res = $(document.createElement('p'));
|
||||||
$.each(stops, function(i, stop) {
|
$.each(stops, function(i, stop) {
|
||||||
const parts = stop.split(';');
|
const parts = stop.split(';');
|
||||||
const node = $('<a class="tablerow" href="/s/' + parts[0] + '?hafas=' + parts[2] + '"><span>' + 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_bus' : 'train') + '</i>' + parts[1] + '</span></a>');
|
||||||
node.click(function() {
|
node.click(function() {
|
||||||
$('nav .preloader-wrapper').addClass('active');
|
$('nav .preloader-wrapper').addClass('active');
|
||||||
});
|
});
|
||||||
|
@ -51,7 +51,7 @@ $(document).ready(function() {
|
||||||
hafas = candidate.hafas,
|
hafas = candidate.hafas,
|
||||||
distance = candidate.distance.toFixed(1);
|
distance = candidate.distance.toFixed(1);
|
||||||
|
|
||||||
const node = $('<a class="tablerow" href="/s/' + eva + '?hafas=' + hafas + '"><span>' + name + '</span></a>');
|
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>');
|
||||||
node.click(function() {
|
node.click(function() {
|
||||||
$('nav .preloader-wrapper').addClass('active');
|
$('nav .preloader-wrapper').addClass('active');
|
||||||
});
|
});
|
||||||
|
|
|
@ -58,3 +58,9 @@ h3 {
|
||||||
font-size: 1.64rem;
|
font-size: 1.64rem;
|
||||||
margin: 1.0933333333rem 0 .656rem 0;
|
margin: 1.0933333333rem 0 .656rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.geolocation {
|
||||||
|
i.material-icons {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue