Update OEAPI to transit.ztn.sh
This commit is contained in:
parent
0457d7c591
commit
0580629884
|
@ -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">
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue