ctucx.git: trainsearch

web based trip-planner, fork of https://cyberchaos.dev/yuka/trainsearch

commit 6287f3e3b18821f4ea261d7bcacfa27cfb21c945
parent 24c289fa4af4f49b3c4cd51c24c77dcbc3056c5b
Author: Yureka <yuka@yuka.dev>
Date: Sat, 10 Sep 2022 18:46:24 +0200

bahn.expert
1 file changed, 4 insertions(+), 4 deletions(-)
M
src/tripView.js
|
8
++++----
diff --git a/src/tripView.js b/src/tripView.js
@@ -55,9 +55,9 @@ const tripTemplate = (data, profile) => {
 		'other': allRemarks.filter(r => r.type !== 'status' && r.type !== 'hint'),
 	};
 
-	let marudorUrl = null;
+	let bahnExpertUrl = null;
 	if (data.line && (data.line.product == 'nationalExpress' || data.line.product == 'national' || data.line.product == 'regionalExp' || data.line.product == 'regional')) {
-		marudorUrl = 'https://marudor.de/details/' + encodeURIComponent(getAdditionalName(data.line) || data.line.name) + '/' + Number(data.plannedDeparture);
+		bahnExpertUrl = 'https://bahn.expert/details/' + encodeURIComponent(getAdditionalName(data.line) || data.line.name) + '/' + Number(data.plannedDeparture);
 	}
 
 					//<p>b>${t('duration')}: ${formatDuration(duration)} | ${t('changes')}: ${changes-1} | ${t('date')}: ${formatDateTime(data.plannedDeparture, 'date')}${settings.showPrices && data.price ? html` | ${t('price')}: <td><span>${formatPrice(data.price)}</span></td>` : ''}</b></p>

@@ -76,8 +76,8 @@ const tripTemplate = (data, profile) => {
 				<thead>
 					<tr>
 						<td colspan="4">
-							<span>${marudorUrl ? html`
-								<a href="${marudorUrl}">${data.line.name}${data.direction ? html` → ${data.direction}` : ''}</a>
+							<span>${bahnExpertUrl ? html`
+								<a href="${bahnExpertUrl}">${data.line.name}${data.direction ? html` → ${data.direction}` : ''}</a>
 							` : html `
 								${data.line.name}${data.direction ? html` → ${data.direction}` : ''}
 							`}