Use strings, not numbers

master
Kuba Orlik 9 months ago
parent 4613025579
commit b660bd9769

@ -59,7 +59,8 @@ export default new (class DashboardPage extends StatefulPage<State, typeof actio
return (
<div style="font-size: 2rem">
<div style="font-size: 10rem; text-align: center;">
{date.getHours()}:{date.getMinutes().toString().padStart(2, "0")}
{date.getHours().toString().padStart(2, "0")}:
{date.getMinutes().toString().padStart(2, "0")}
</div>
<table style="margin: 0 auto">
<tbody>
@ -76,9 +77,10 @@ export default new (class DashboardPage extends StatefulPage<State, typeof actio
{
/* HTML */ `<script>
setInterval(function () {
(function () {
document.location = document.location;
}, 15 * 1000);
}),
15 * 1000;
</script>`
}
</div>

Loading…
Cancel
Save