From 017b01af3ebded3339175cf83d968ae92de281b0 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Wed, 27 Nov 2019 09:52:35 +0100 Subject: [PATCH] Unfocus client from input on timer start --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 373b406..137dd6c 100644 --- a/index.html +++ b/index.html @@ -27,6 +27,7 @@ (e, s = t.value.split(':').reduce((a, x) => (60 * a) + +x)) => e.keyCode == 13 && !on ? ( 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)