From b300602878c12dcc2a204030bc566e89b4eb9a85 Mon Sep 17 00:00:00 2001 From: The Arrayser <68914060+TheArrayser@users.noreply.github.com> Date: Fri, 4 Nov 2022 17:22:09 +0100 Subject: [PATCH] enlengthend the nervous timer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 789zt 3452 98 z43 9z87 43 98z o2w 34098rtz pü240z/%/))=()/TRTZUIUZTRDF´ü=8uü0/)(&%P)(/5 v8/%RPO(&RP i8utzlo7T --- index.html | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index b69dba6..96b7fbe 100644 --- a/index.html +++ b/index.html @@ -362,9 +362,7 @@ var previousValue; function myTimer() { var d = new Date(); - if(Math.floor(d.getMilliseconds()/250) != previousValue){ - console.log("amogus"); - console.log(document.getElementById("clock").style.color); + if(Math.floor(d.getMilliseconds()/333) != previousValue){ if(document.getElementById("clock").isCringe == false){ document.getElementById("clock").isCringe = true; document.getElementById("clock").style.color = "#ff0000"; @@ -373,10 +371,9 @@ document.getElementById("clock").isCringe = false; document.getElementById("clock").style.color = "#ffff00"; document.getElementById("clock").style.backgroundColor = "#ff0000"; - console.log("amogus2"); } } - previousValue = Math.floor(d.getMilliseconds()/250); + previousValue = Math.floor(d.getMilliseconds()/333); document.getElementById("clock").innerHTML = d.getHours().toString().padStart(2, '0') + ":" + d.getMinutes().toString().padStart(2, '0') + ":" + d.getSeconds().toString().padStart(2, '0') + "." + d.getMilliseconds().toString().padStart(3, '0'); }