mirror of
https://github.com/derf/travelynx
synced 2024-11-30 00:10:18 +00:00
use more easily distinguishable icons for hafas/iris; document in legend
This commit is contained in:
parent
9218a40c13
commit
77238628cc
2 changed files with 10 additions and 2 deletions
|
@ -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');
|
||||
});
|
||||
|
|
|
@ -13,6 +13,14 @@
|
|||
<td>(HH:MM)</td>
|
||||
<td>Ein Einstieg (Abfahrtstafel) bzw. Ausstieg (Route) ist an dieser Station möglicherweise nicht vorgesehen.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><i class="material-icons">train</i></td>
|
||||
<td>Backend: DB IRIS. Bevorzugte Datenquelle für (mindestens teilweise) innerdeutsche Zugfahrten.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><i class="material-icons">directions</i></td>
|
||||
<td>Backend: DB HAFAS. Bevorzugte Datenquelle für Nahverkehr und vollständig außerdeutsche Zugfahrten. Weniger detailliert als IRIS.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3>Anschlusszüge</h3>
|
||||
|
|
Loading…
Reference in a new issue