Update OEAPI to transit.ztn.sh

This commit is contained in:
Laura Hausmann 2022-04-27 18:00:49 +02:00
parent 0457d7c591
commit 0580629884
Signed by: zotan
GPG Key ID: D044E84C5BE01605
3 changed files with 6 additions and 6 deletions

View File

@ -87,7 +87,7 @@
</div>
<div class="d-flex p-2" style="width: 40%">
<form style="width: 100%" method="GET" action="/OEAPI">
<h3>Add trip from <a href="https://oeffisear.ch" target="_blank">oeffisear.ch</a> or <a href="https://öv.ztn.sh" target="_blank">öv.ztn.sh</a></h3>
<h3>Add trip from <a href="https://oeffisear.ch" target="_blank">oeffisear.ch</a> or <a href="https://transit.ztn.sh" target="_blank">transit.ztn.sh</a></h3>
<br/>
<div class="form-group">
<input type="text" class="form-control" name="link" placeholder="paste link / shortcode here">

View File

@ -25,9 +25,9 @@ namespace bahnplan.web.Pages {
var oepage = "oeffisear.ch";
if (link.Contains("oeffisear.ch"))
shortcode = link.Split("/#/").Last();
else if (link.Contains("öv.ztn.sh") || link.Contains("xn--v-0ga.ztn.sh")) {
else if (link.Contains("transit.ztn.sh")) {
shortcode = link.Split("/#/").Last();
oepage = "xn--v-0ga.ztn.sh";
oepage = "transit.ztn.sh";
}
var jid = shortcode.Split("/").Last();
shortcode = shortcode.Split("/").First();
@ -73,4 +73,4 @@ namespace bahnplan.web.Pages {
TripId = tripId;
}
}
}
}

View File

@ -170,7 +170,7 @@ else {
</div>
<div class="d-flex p-2" style="width: 40%">
<form style="width: 100%" method="GET" action="/OEAPI">
<h3>Add leg(s) from <a href="https://oeffisear.ch" target="_blank">oeffisear.ch</a> or <a href="https://öv.ztn.sh" target="_blank">öv.ztn.sh</a></h3>
<h3>Add leg(s) from <a href="https://oeffisear.ch" target="_blank">oeffisear.ch</a> or <a href="https://transit.ztn.sh" target="_blank">transitztn.sh</a></h3>
<br/>
<input type="hidden" name="action" value="addleg">
<input type="hidden" name="tripid" value="@Request.Query["id"]">
@ -182,4 +182,4 @@ else {
</form>
</div>
</div>
}
}