Bump version, add auth required

This commit is contained in:
Fred Boniface 2023-04-25 20:56:59 +01:00
parent 255382710f
commit 28e306cbdb
4 changed files with 6 additions and 4 deletions

View File

@ -36,9 +36,7 @@ async function insertData(json) {
for(var i = 0; i < json.length; i++) { // Hopefully can style output with CSS for(var i = 0; i < json.length; i++) { // Hopefully can style output with CSS
tableData += `<tr><td class="pis-code">${json[i]['code']}</td> tableData += `<tr><td class="pis-code">${json[i]['code']}</td>
<td class="station">${json[i]['stops'].join(', ')}</td></tr>` <td class="station">${json[i]['stops'].join(', ')}</td></tr>`
log(`Count prior to incrementing: ${results}`)
results++ results++
log(`Count after incrementing: ${results}`)
} }
tableData += "</table>" tableData += "</table>"
div.insertAdjacentHTML("beforeend", tableData) div.insertAdjacentHTML("beforeend", tableData)

View File

@ -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 hidden>You must be logged into the free <a href="./settings.html">staff version</a> for this feature</p> <p id="auth-required">You must be logged into the free <a href="./settings.html">staff version</a> 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>

View File

@ -301,6 +301,10 @@ label {
transition: 0.5s; transition: 0.5s;
} }
#auth-required {
color: crimson;
}
/* Footer Styles */ /* Footer Styles */
footer { footer {
background-color: var(--accent-color); background-color: var(--accent-color);

2
sw.js
View File

@ -1,6 +1,6 @@
/* Service Worker */ /* Service Worker */
const appVersion = "1.2.4-dev-pis" const appVersion = "PIS-DEV-23042501"
const cacheName = `owlboard-${appVersion}`; const cacheName = `owlboard-${appVersion}`;
const cacheIDs = [cacheName]; const cacheIDs = [cacheName];
const cacheFiles = [ const cacheFiles = [