pis #2
@ -165,6 +165,13 @@ async function getApi(path,auth = false) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function showHideAuthNotice() {
|
||||||
|
let uuid = localStorage.getItem("uuid")
|
||||||
|
if (uuid) {
|
||||||
|
document.getElementById('auth-notice').style = 'display:none'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async function vibe(type) {
|
async function vibe(type) {
|
||||||
let canVibrate = "vibrate" in navigator || "mozVibrate" in navigator
|
let canVibrate = "vibrate" in navigator || "mozVibrate" in navigator
|
||||||
if (canVibrate && !("vibrate" in navigator)){
|
if (canVibrate && !("vibrate" in navigator)){
|
||||||
|
2
pis.html
2
pis.html
@ -46,7 +46,7 @@
|
|||||||
<p>Enter a services start and end station CRS codes to see code options and
|
<p>Enter a services start and end station CRS codes to see code options and
|
||||||
stopping patterns.</p>
|
stopping patterns.</p>
|
||||||
<p>Currently supported (Beta): GWR Bristol Metro region only.</p>
|
<p>Currently supported (Beta): GWR Bristol Metro region only.</p>
|
||||||
<p id="auth-required">You will need to be logged into a free <a href="./settings.html">rail staff version</a> account for this feature once it has finished testing.</p>
|
<p id="auth-required">You need to be logged into a free <a href="./settings.html">rail staff version</a> account for this feature.</p>
|
||||||
<label for="origin">Origin:</label><br>
|
<label for="origin">Origin:</label><br>
|
||||||
<input type="text" class="small-lookup-box" id="origin" name="origin" maxlength="3"><br><br>
|
<input type="text" class="small-lookup-box" id="origin" name="origin" maxlength="3"><br><br>
|
||||||
<label for="destination">Destination:</label><br>
|
<label for="destination">Destination:</label><br>
|
||||||
|
Reference in New Issue
Block a user