commit 5073058a2121460f0e69159c2569a475e5df2c89
parent 46e6e7889175cef85ef5e8866fa683f38c4d5529
Author: Laura Hausmann <laura@hausmann.dev>
Date: Fri, 27 Jan 2023 18:26:25 +0100
parent 46e6e7889175cef85ef5e8866fa683f38c4d5529
Author: Laura Hausmann <laura@hausmann.dev>
Date: Fri, 27 Jan 2023 18:26:25 +0100
Update marudor.de urls to bahn.expert
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/client/js/journeyView.js b/client/js/journeyView.js @@ -61,9 +61,9 @@ const legTemplate = (leg) => { } if (!leg.line.additionalName) { - marudorUrl = 'https://marudor.de/details/' + leg.line.name + '/' + (leg.departure.plannedTime*1000) + marudorUrl = 'https://bahn.expert/details/' + leg.line.name + '/' + (leg.departure.plannedTime*1000) } else { - marudorUrl = 'https://marudor.de/details/' + leg.line.additionalName + "/" + (leg.departure.plannedTime*1000) + marudorUrl = 'https://bahn.expert/details/' + leg.line.additionalName + "/" + (leg.departure.plannedTime*1000) } } @@ -118,7 +118,7 @@ const legTemplate = (leg) => { </thead> <tbody> ${leg.stopovers.map(stop => html` - <tr class="stop ${stop.cancelled ? 'cancelled' : ''}" @click=${() => {location.href = "https://marudor.de/"+stop.stop.id+"?searchType=hafas"}}> + <tr class="stop ${stop.cancelled ? 'cancelled' : ''}" @click=${() => {location.href = "https://bahn.expert/"+stop.stop.id+"?searchType=hafas"}}> <td><span>${timeTemplate(stop.arrival)}</span></td> <td><span>${timeTemplate(stop.departure)}</span></td> <td><span>${stop.stop.name} ${ds100Names(stop.stop.id)}</span></td>