pis #2

Merged
fred.boniface merged 76 commits from pis into main 2023-05-06 21:53:45 +01:00
4 changed files with 6 additions and 4 deletions
Showing only changes of commit 28e306cbdb - Show all commits

View File

@ -36,9 +36,7 @@ async function insertData(json) {
for(var i = 0; i < json.length; i++) { // Hopefully can style output with CSS
tableData += `<tr><td class="pis-code">${json[i]['code']}</td>
<td class="station">${json[i]['stops'].join(', ')}</td></tr>`
log(`Count prior to incrementing: ${results}`)
results++
log(`Count after incrementing: ${results}`)
}
tableData += "</table>"
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
stopping patterns.</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>
<input type="text" class="small-lookup-box" id="origin" name="origin" maxlength="3"><br><br>
<label for="destination">Destination:</label><br>

View File

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

2
sw.js
View File

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