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:
parent
35e3fb59b8
commit
b300602878
@ -362,9 +362,7 @@
|
|||||||
var previousValue;
|
var previousValue;
|
||||||
function myTimer() {
|
function myTimer() {
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
if(Math.floor(d.getMilliseconds()/250) != previousValue){
|
if(Math.floor(d.getMilliseconds()/333) != previousValue){
|
||||||
console.log("amogus");
|
|
||||||
console.log(document.getElementById("clock").style.color);
|
|
||||||
if(document.getElementById("clock").isCringe == false){
|
if(document.getElementById("clock").isCringe == false){
|
||||||
document.getElementById("clock").isCringe = true;
|
document.getElementById("clock").isCringe = true;
|
||||||
document.getElementById("clock").style.color = "#ff0000";
|
document.getElementById("clock").style.color = "#ff0000";
|
||||||
@ -373,10 +371,9 @@
|
|||||||
document.getElementById("clock").isCringe = false;
|
document.getElementById("clock").isCringe = false;
|
||||||
document.getElementById("clock").style.color = "#ffff00";
|
document.getElementById("clock").style.color = "#ffff00";
|
||||||
document.getElementById("clock").style.backgroundColor = "#ff0000";
|
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');
|
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>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user