File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const eventEnd = import.meta.env.EVENT_END;
35
35
<h1
36
36
id =" countdown"
37
37
data-end ={ eventEnd }
38
- class =" text-9xl tracking-wider animate-squiggle uppercase"
38
+ class =" text-9xl font-black tracking-wider animate-squiggle uppercase font-mono "
39
39
>
40
40
--:--:--
41
41
</h1 >
@@ -81,11 +81,14 @@ const eventEnd = import.meta.env.EVENT_END;
81
81
2,
82
82
"0",
83
83
);
84
+ const miliseconds = String(
85
+ Math.floor((remainingTime % 1000) / 10),
86
+ ).padStart(2, "0");
84
87
85
- countdownElement.innerText = `${hours}:${minutes}:${seconds}`;
88
+ countdownElement.innerText = `${hours}:${minutes}:${seconds}.${miliseconds} `;
86
89
}
87
90
88
91
updateCountdown();
89
- const timer = setInterval(updateCountdown, 1000 );
92
+ const timer = setInterval(updateCountdown, 10 );
90
93
</script >
91
94
</BaseLayout >
You can’t perform that action at this time.
0 commit comments