Update OEAPI to transit.ztn.sh
This commit is contained in:
parent
0457d7c591
commit
0580629884
|
@ -87,7 +87,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex p-2" style="width: 40%">
|
<div class="d-flex p-2" style="width: 40%">
|
||||||
<form style="width: 100%" method="GET" action="/OEAPI">
|
<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/>
|
<br/>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="text" class="form-control" name="link" placeholder="paste link / shortcode here">
|
<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";
|
var oepage = "oeffisear.ch";
|
||||||
if (link.Contains("oeffisear.ch"))
|
if (link.Contains("oeffisear.ch"))
|
||||||
shortcode = link.Split("/#/").Last();
|
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();
|
shortcode = link.Split("/#/").Last();
|
||||||
oepage = "xn--v-0ga.ztn.sh";
|
oepage = "transit.ztn.sh";
|
||||||
}
|
}
|
||||||
var jid = shortcode.Split("/").Last();
|
var jid = shortcode.Split("/").Last();
|
||||||
shortcode = shortcode.Split("/").First();
|
shortcode = shortcode.Split("/").First();
|
||||||
|
|
|
@ -170,7 +170,7 @@ else {
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex p-2" style="width: 40%">
|
<div class="d-flex p-2" style="width: 40%">
|
||||||
<form style="width: 100%" method="GET" action="/OEAPI">
|
<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/>
|
<br/>
|
||||||
<input type="hidden" name="action" value="addleg">
|
<input type="hidden" name="action" value="addleg">
|
||||||
<input type="hidden" name="tripid" value="@Request.Query["id"]">
|
<input type="hidden" name="tripid" value="@Request.Query["id"]">
|
||||||
|
|
Reference in a new issue