From 01e4f057ce481d3cd506f0a593a6d86ca8b16fad Mon Sep 17 00:00:00 2001 From: The Arrayser <68914060+TheArrayser@users.noreply.github.com> Date: Fri, 6 Jan 2023 18:39:50 +0100 Subject: [PATCH] added more brakets, cuz brackets are cul --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index fcffd2b..750f379 100644 --- a/index.html +++ b/index.html @@ -411,7 +411,7 @@ var previousValue2; function myTimer() { var d = new Date(); - if(Math.floor(d.getMilliseconds() + 1000 * (d.getSeconds() % 2)/400) != previousValue2){ + if(Math.floor((d.getMilliseconds() + 1000 * (d.getSeconds() % 2))/400) != previousValue2){ if(document.getElementById("negclock").isCringe == false){ document.getElementById("negclock").isCringe = true; document.getElementById("negclock").style.color = "#ff0000"; @@ -422,7 +422,7 @@ document.getElementById("negclock").style.backgroundColor = "#ff0000"; } } - previousValue2 = Math.floor(d.getMilliseconds() + 1000 * (d.getSeconds() % 2)/400); + previousValue2 = Math.floor((d.getMilliseconds() + 1000 * (d.getSeconds()) % 2)/400); document.getElementById("negclock").innerHTML = (365 - d.getDay()).toString().padStart(3, '0') + "-" + (24 - d.getHours()).toString().padStart(2, '0') + ":" + (60 - d.getMinutes()).toString().padStart(2, '0') + ":" + (60 - d.getSeconds()).toString().padStart(2, '0') + "." + d.getMilliseconds().toString().padStart(3, '0'); }