From 51b3be61dd1fc7856371543f6ae7608bd0484c7e Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Sun, 31 Oct 2021 21:22:20 +0100 Subject: [PATCH] Show time in page title --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 7606c2d..6e8c3fa 100644 --- a/index.html +++ b/index.html @@ -29,8 +29,8 @@ on = true, t.blur(), tmr = setInterval(() => s == 0 - ? (on = false, clearInterval(tmr), t.value = "") - : t.value = (new Date(s-- * 1000)).toISOString().substr(11, 8).replace(/:/g, ':'), 1000) + ? (on = false, clearInterval(tmr), t.value = "", document.title = "TIMER") + : (t.value = (new Date(s-- * 1000)).toISOString().substr(11, 8).replace(/:/g, ':'), document.title = "TIMER − " + t.value), 1000) ) : 0 )