diff --git a/web/index.html b/web/index.html
index 42f39a9..b1756b6 100644
--- a/web/index.html
+++ b/web/index.html
@@ -51,7 +51,7 @@
color: #000;
width: calc(100% - 32px);
}
- input[type=submit] {
+ input[type=submit], input[type=button] {
background: #c50e1f;
text-transform: uppercase;
font-weight: bold;
@@ -271,11 +271,15 @@
var aInfo = ''
var minD = ''
+ var doubleT = ''
if (json.request == 'departure') {
var d = new Date(json.arrival.time)
var dInfo = d.toString('en-GB').split(' ').slice(0,5).join(' ')
aInfo = `Your last arrival was on ${dInfo} in room ${json.arrival.room}.`
minD = `min="${localISOTimeMinutes(d)}"`
+ if (new Date() - d < 3 * 60 * 1000) {
+ doubleT = 'Your last sign in was less than 3 minutes ago. You might be accidentally trying to sign in twice. If you don\'t intend to log 2 arrivals within the last 3 minutes, please abort below.'
+ }
}
var now = localISOTimeMinutes(new Date())
@@ -289,7 +293,9 @@
${aInfo}
+ ${doubleT}
+
`