Add notes
This commit is contained in:
parent
d2ba491675
commit
caf4ce5611
@ -4,6 +4,8 @@ RUN npm i uglifyjs-folder uglifycss html-minifier-terser -g
|
|||||||
COPY . /data/in
|
COPY . /data/in
|
||||||
RUN bash /data/in/conf/deploy.sh
|
RUN bash /data/in/conf/deploy.sh
|
||||||
|
|
||||||
|
## Maybe use: georgjung/nginx-brotli:mainline-alpine
|
||||||
|
## Instead?
|
||||||
FROM fholzer/nginx-brotli:latest
|
FROM fholzer/nginx-brotli:latest
|
||||||
RUN rm /etc/nginx/nginx.conf
|
RUN rm /etc/nginx/nginx.conf
|
||||||
RUN apk update && apk add --upgrade libxml2 libxslt
|
RUN apk update && apk add --upgrade libxml2 libxslt
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* eslint-disable no-unused-vars */
|
/* eslint-disable no-unused-vars */
|
||||||
/* All Page Init */
|
/* All Page Init */
|
||||||
const version = '2023.6.1'
|
const version = '2023.6.4'
|
||||||
|
|
||||||
/* Feature Detectors */
|
/* Feature Detectors */
|
||||||
|
|
||||||
|
@ -78,29 +78,41 @@ async function displayOne(object) {
|
|||||||
for (const stop of publicStops) {
|
for (const stop of publicStops) {
|
||||||
stopRows += await createPublicStopTableRow(stop)
|
stopRows += await createPublicStopTableRow(stop)
|
||||||
}
|
}
|
||||||
|
// If there are no public stops, show non-public locations
|
||||||
|
if (!publicStops.length) {
|
||||||
|
for (const stop of object['stops']) {
|
||||||
|
stopRows += await createPublicStopTableRow(stop, 'wtt')
|
||||||
|
}
|
||||||
|
}
|
||||||
const displayBox = document.getElementById('train_data')
|
const displayBox = document.getElementById('train_data')
|
||||||
displayBox.innerHTML = ''
|
displayBox.innerHTML = ''
|
||||||
displayBox.insertAdjacentHTML('beforeend', dataTableHead + stopRows + dataTableClose)
|
displayBox.insertAdjacentHTML('beforeend', dataTableHead + stopRows + dataTableClose)
|
||||||
displayBox.style = 'display:block;'
|
displayBox.style = 'display:block;'
|
||||||
}
|
}
|
||||||
|
|
||||||
async function createPublicStopTableRow(stop) {
|
async function createPublicStopTableRow(stop, type='public') {
|
||||||
let data_tiploc = stop['tiploc'], public_arr = stop['publicArrival'],
|
let arr, dep
|
||||||
public_dep = stop['publicDeparture']
|
let data_tiploc = stop['tiploc']
|
||||||
|
if (type === 'wtt') {
|
||||||
|
arr = stop['wttArrival'], dep = stop['wttDeparture']
|
||||||
|
}
|
||||||
|
if (type === 'public') {
|
||||||
|
arr = stop['publicArrival'], dep = stop['publicDeparture']
|
||||||
|
}
|
||||||
if (typeof data_tiploc === 'undefined') {
|
if (typeof data_tiploc === 'undefined') {
|
||||||
data_tiploc = ''
|
data_tiploc = ''
|
||||||
}
|
}
|
||||||
if (typeof public_arr === 'undefined') {
|
if (typeof arr === 'undefined') {
|
||||||
public_arr = '-'
|
arr = '-'
|
||||||
}
|
}
|
||||||
if (typeof public_dep === 'undefined') {
|
if (typeof dep === 'undefined') {
|
||||||
public_dep = '-'
|
dep = '-'
|
||||||
}
|
}
|
||||||
return `
|
return `
|
||||||
<tr>
|
<tr>
|
||||||
<td id='data_tiploc'>${data_tiploc}</td>
|
<td id='data_tiploc'>${data_tiploc}</td>
|
||||||
<td id='public_arr'>${public_arr}</td>
|
<td id='public_arr'>${arr}</td>
|
||||||
<td id='public_dep'>${public_dep}</td>
|
<td id='public_dep'>${dep}</td>
|
||||||
</tr>
|
</tr>
|
||||||
`
|
`
|
||||||
}
|
}
|
2
pis.html
2
pis.html
@ -49,7 +49,7 @@
|
|||||||
<form action="javascript:findByHeadcode();">
|
<form action="javascript:findByHeadcode();">
|
||||||
<div id="crs-inputs">
|
<div id="crs-inputs">
|
||||||
<div class="crs-input">
|
<div class="crs-input">
|
||||||
<label for="pis">PIS Code:</label><br>
|
<label for="pis">Headcode:</label><br>
|
||||||
<input type="text" class="small-lookup-box pis-input" id="headcode" name="headcode" maxlength="4" autocomplete="off"><br><br>
|
<input type="text" class="small-lookup-box pis-input" id="headcode" name="headcode" maxlength="4" autocomplete="off"><br><br>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
2
sw.js
2
sw.js
@ -1,6 +1,6 @@
|
|||||||
/* Service Worker */
|
/* Service Worker */
|
||||||
|
|
||||||
const swVersion = '2023.6.1-1'
|
const swVersion = '2023.6.4-1'
|
||||||
const cacheName = `owlboard-${swVersion}`
|
const cacheName = `owlboard-${swVersion}`
|
||||||
const cacheIDs = [cacheName]
|
const cacheIDs = [cacheName]
|
||||||
let staticCache = [
|
let staticCache = [
|
||||||
|
Reference in New Issue
Block a user