diff options
| author | Kyren223 <contact@kyren.codes> | 2026-10-09 03:40:03 +0300 |
|---|---|---|
| committer | Kyren223 <contact@kyren.codes> | 2026-10-09 03:40:03 +0300 |
| commit | d3aa8982bfb70cda8d04130347e2a870aebd2d19 (patch) | |
| tree | ebc477e34e054ed9d33fc78cef78c1841b51dcb9 /public/my_uptime.js | |
| parent | 9b03d2790b8b8db1b5a6755b6130f37e5f7f2455 (diff) | |
New blog post and a bunch of unrelated website changes
Diffstat (limited to 'public/my_uptime.js')
| -rw-r--r-- | public/my_uptime.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/public/my_uptime.js b/public/my_uptime.js index 25f549a..1fdb457 100644 --- a/public/my_uptime.js +++ b/public/my_uptime.js @@ -13,6 +13,7 @@ async function updateUptime() { } // Run on page load after all DOM elements loaded -DOMContentLoaded(updateUptime()); - -setInterval(updateUptime, 5 * 1000); // in ms +document.addEventListener("DOMContentLoaded", () => { + updateUptime(); + setInterval(updateUptime, 5 * 1000); // in ms +}); |
