moved a bracket and renamed a function or sth

This commit is contained in:
The Arrayser 2023-01-06 18:41:19 +01:00 committed by GitHub
parent 01e4f057ce
commit 2fd848b8ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -407,9 +407,9 @@
Amogus
</div>
<script>
var myVar2 = setInterval(function() {myTimer();}, 10);
var myVar2 = setInterval(function() {myTimer2();}, 10);
var previousValue2;
function myTimer() {
function myTimer2() {
var d = new Date();
if(Math.floor((d.getMilliseconds() + 1000 * (d.getSeconds() % 2))/400) != previousValue2){
if(document.getElementById("negclock").isCringe == false){
@ -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');
}
</script>