From 404a995e4f56fe8a6b8e5df806c3ed3bacf61d08 Mon Sep 17 00:00:00 2001 From: Oskar Date: Mon, 11 Oct 2021 19:39:07 +0200 Subject: [PATCH] also fade tested entries --- web/view.css | 3 +++ web/view.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/view.css b/web/view.css index ed7b8c1..2b3ad5f 100644 --- a/web/view.css +++ b/web/view.css @@ -70,6 +70,9 @@ main > section.times, #timeheader { .times span.implausible { background: linear-gradient(to right, #c50e1f, rgba(197,14,31,0.2) 1000px); } +.times span.implausible.tested { + background: linear-gradient(to right, rgb(0,136,0), rgba(0,136,0,0.2) 1000px); +} .viewheader.row { height: 30px; background: #ddd !important; diff --git a/web/view.js b/web/view.js index ac7b9d8..3b18429 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.style.background = '#080' + block.classList.add('tested') if (dur > 60 * 24) block.classList.add('implausible')