2020-12-01 13:08:40 +01:00
<!DOCTYPE html>
< html >
< head >
< title > FTracker< / title >
2021-04-12 21:20:09 +02:00
< meta charset = "utf-8" >
2020-12-01 15:34:09 +01:00
< meta name = "theme-color" content = "#c50e1f" >
< meta name = "viewport" content = "width=device-width, initial-scale=1, maximum-scale=1" >
2021-04-12 21:20:09 +02:00
< link href = "style.css" rel = "stylesheet" type = "text/css" >
2020-12-01 13:08:40 +01:00
< script >
2020-12-01 15:44:14 +01:00
// 1st script, prepares values needed for writing document
2020-12-01 13:08:40 +01:00
var cbt = {
2020-12-01 14:06:05 +01:00
'arrival': 'I have read and will adhere to the < a href = "/guidelines" target = "_blank" > protection guidelines< / a > ',
2020-12-01 13:08:40 +01:00
'departure': 'I have cleaned my workspace'
}
2021-10-14 13:45:00 +02:00
var testCheckBox = '< label class = "checkbox" > < input type = "checkbox" name = "tested" id = "tested" > < span > I fullfill one of the < a href = "https://www.bundesregierung.de/breg-de/aktuelles/bund-laender-beratung-corona-1949606" > 3G requirements< / a > < / span > < / label > '
2021-06-08 00:49:42 +02:00
var editTimeBox = '< label > Departure Date/Time:< input type = "datetime-local" name = "datetime" id = "datetime" required > < / label > '
2020-12-01 13:08:40 +01:00
function getParams() {
2021-06-08 00:49:42 +02:00
var qparams = document.location.search.substr(1)
if (qparams == "") return {}
qparams = qparams.split('& ')
var qps = {}
for (var qparam of qparams) {
var vals = qparam.split('=')
qps[vals[0]] = vals[1] || null
2020-12-01 13:08:40 +01:00
}
2021-06-08 00:49:42 +02:00
// Backwards compat
if (qps.arrival) {qps.action = 'arrival'; qps.room = qps.arrival}
if (qps.departure) {qps.action = 'departure'; qps.room = qps.departure}
return qps
2020-12-01 13:08:40 +01:00
}
var qp = getParams()
< / script >
< / head >
< body >
2020-12-01 15:34:09 +01:00
< h1 > < script >
2021-06-11 02:12:42 +02:00
document.write(qp.action ? (qp.action + "< br > Room " + qp.room) : 'FTracker< br > V1.1')
2020-12-01 15:34:09 +01:00
< / script > < / h1 >
2021-04-12 21:20:09 +02:00
< div id = "startpage" >
2021-10-30 20:47:07 +02:00
This is a web app to track which people were in the same rooms at
which times in order to backtrace potential viral infections.< br > < br >
If you've reached this page that either means your're testing
things or something has gone quite wrong with the URL.< br >
2021-04-12 21:20:09 +02:00
In the former case: Yay it works! In the latter you should
probably contact an admin or a dev nearby :(< br > < br >
Here are a few links for testing:< br >
< a href = "/view" > View Data< / a > ,
< a href = "/QRgen" > Door Sign Generator< / a > ,
< a href = "/?arrival=42" > Test Arrival< / a > ,
2021-11-03 10:10:27 +01:00
< a href = "/?departure=42" > Test Departure< / a > ,
< a href = "javascript:localStorage.removeItem('pushsub')" > Reset Push Subscription< / a > < br > < br >
2021-06-07 17:41:04 +02:00
© 2020 made by < a target = "_blank" href = "mailto:o.winkels@fasttube.de" > Oskar< / a >
2021-04-12 21:20:09 +02:00
for < a target = "_blank" href = "//fasttube.de" > FaSTTUBe< / a > .< br >
For source code & licensing see < a href = "//git.fasttube.de/FaSTTUBe/ftracker" > git repo< / a >
< / div >
< form id = "mainform" style = "display: none" >
2020-12-01 15:34:09 +01:00
< label >
Full Name:< br >
< input type = "text" name = "name" id = "name" placeholder = "John Doe" required >
< / label >
2021-06-08 00:49:42 +02:00
< script >
if (qp.edittime & & qp.edittime == 1)
document.write(editTimeBox)
< / script >
2021-04-12 21:20:09 +02:00
< label class = "checkbox" >
2020-12-01 15:34:09 +01:00
< input type = "checkbox" name = "agree" id = "agree" required >
2020-12-03 22:28:14 +01:00
< span > < script >
document.write(qp ? cbt[qp.action] : '')
< / script > < / span >
2020-12-01 15:34:09 +01:00
< / label >
2021-04-12 21:20:09 +02:00
< script >
2021-06-08 00:49:42 +02:00
if (qp.action & & qp.action == 'arrival')
2021-05-27 16:26:25 +02:00
document.write(testCheckBox)
2021-04-12 21:20:09 +02:00
< / script >
2020-12-01 15:34:09 +01:00
< input type = "submit" >
< / form >
2021-04-12 21:20:09 +02:00
< script src = "main.js" > < / script >
2020-12-01 13:08:40 +01:00
< / body >
< / html >