Skip to content

Commit

Permalink
add test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ChlodAlejandro committed Jan 25, 2024
1 parent 7715fbf commit 6edda7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6edda7e

Please sign in to comment.