diff --git a/web/index.html b/web/index.html index fd7a3a1..8de5a01 100644 --- a/web/index.html +++ b/web/index.html @@ -12,7 +12,7 @@ 'arrival': 'I have read and will adhere to the protection guidelines', 'departure': 'I have cleaned my workspace' } - var testCheckBox = '' + var testCheckBox = '' var editTimeBox = '' function getParams() { var qparams = document.location.search.substr(1) diff --git a/web/main.js b/web/main.js index d97172f..c04f35d 100644 --- a/web/main.js +++ b/web/main.js @@ -43,7 +43,7 @@ function sendMainData() { 'name': name, 'arrival': datetime, 'agreetoguidelines': agreed, - 'tested': tested + 'tested': tested // = 3G } : { 'name': name, @@ -104,7 +104,7 @@ function handleRequestSubmit(e, json) { var iso = new Date(input).toISOString() if (e.srcElement.length > 1) - tested = e.srcElement[1].checked + tested = e.srcElement[1].checked // = 3G // POST JSON. See docs/API.md var payload = (json.request == 'arrival') ? @@ -113,7 +113,7 @@ function handleRequestSubmit(e, json) { 'name': name, 'arrival': iso, 'agreetoguidelines': agreed, - 'tested': tested + 'tested': tested // = 3G } : { 'name': name, diff --git a/web/view.css b/web/view.css index 2b3ad5f..b45b372 100644 --- a/web/view.css +++ b/web/view.css @@ -70,7 +70,7 @@ main > section.times, #timeheader { .times span.implausible { background: linear-gradient(to right, #c50e1f, rgba(197,14,31,0.2) 1000px); } -.times span.implausible.tested { +.times span.implausible.tested { /* = 3G */ background: linear-gradient(to right, rgb(0,136,0), rgba(0,136,0,0.2) 1000px); } .viewheader.row { diff --git a/web/view.js b/web/view.js index 3b18429..f9811b7 100644 --- a/web/view.js +++ b/web/view.js @@ -163,7 +163,7 @@ function renderData() { block.style.left = arr + 'px' // 1px/min block.style.width = Math.max(0,(dur-14)) + 'px' // 1px/min if (entry.tested) - block.classList.add('tested') + block.classList.add('tested') // = 3G if (dur > 60 * 24) block.classList.add('implausible')