full reverse timer or sth

This commit is contained in:
The Arrayser 2023-01-06 18:38:27 +01:00 committed by GitHub
parent badfb3b5d3
commit 0f7bae23fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -402,7 +402,7 @@
} }
</script> </script>
</div> </div>
<div style="position:fixed;top:10px;left:10px; font-size: 7vh; border:1vh solid #ff0000"> <div style="position:fixed;top:10px;right:10px; font-size: 7vh; border:1vh solid #ff0000">
<div id="negclock" style="font-weight: bold; color:#ffff00; background-color: rgb(255,0,0);"> <div id="negclock" style="font-weight: bold; color:#ffff00; background-color: rgb(255,0,0);">
Amogus Amogus
</div> </div>
@ -423,7 +423,7 @@
} }
} }
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') + " - " + d.getHours().toString().padStart(2, '0') + ":" + d.getMinutes().toString().padStart(2, '0') + ":" + d.getSeconds().toString().padStart(2, '0') + "." + d.getMilliseconds().toString().padStart(3, '0'); 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');
} }
</script> </script>
</div> </div>