From 6edda7e047f4b081081c3ec5270917d96fd073f3 Mon Sep 17 00:00:00 2001 From: Chlod Alejandro Date: Thu, 25 Jan 2024 09:47:15 +0800 Subject: [PATCH] add test mode --- index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.html b/index.html index 329379b..aadd473 100644 --- a/index.html +++ b/index.html @@ -260,10 +260,15 @@ var endTimestamp = new Date("2025-01-25T00:00:00+08:00").getTime(); var transitionTimestamp = new Date("2024-01-25T19:26:00+08:00").getTime(); + const testMode = new URLSearchParams(window.location.search).get("test") === '1'; + /** * @param {number} timestamp */ function offsetTime(timestamp) { + if (testMode) { + return timestamp; + } return timestamp + timeOffset; }