enlengthend the nervous timer

789zt 3452 98 z43 9z87 43 98z o2w 34098rtz pü240z/%/))=()/TRTZUIUZTRDF´ü=8uü0/)(&%P)(/5 v8/%RPO(&RP i8utzlo7T
This commit is contained in:
The Arrayser 2022-11-04 17:22:09 +01:00 committed by GitHub
parent 35e3fb59b8
commit b300602878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');
}
</script>