From b7162b681fbdf728fc2650122e11016ff9120fda Mon Sep 17 00:00:00 2001 From: Sora Arakawa Date: Mon, 26 Feb 2024 15:34:49 +0900 Subject: [PATCH] Reload every 30 minutes --- public/js/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/main.js b/public/js/main.js index fefc07e..bc1e915 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -45,6 +45,9 @@ function main() { if (ct == 4) { ct = 0; } + if (now.getSeconds() <= 6 && (min == "00" || min == "30")) { + location.reload(); + } } // 時刻を文字列に変換