diff options
author | cyfraeviolae <cyfraeviolae> | 2023-01-16 01:30:33 -0500 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2023-01-16 01:30:33 -0500 |
commit | 9d836b29801864e8e56acd715283ba71df0d5aad (patch) | |
tree | c67dffc8ee84df2f6178e16823723725e7e3210c /static | |
parent | a2b72f510f246196d200d8d7ea984c65bfa85b13 (diff) |
fix challenge idx
Diffstat (limited to 'static')
-rw-r--r-- | static/script.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/static/script.js b/static/script.js index c9b89e8..fd544b7 100644 --- a/static/script.js +++ b/static/script.js @@ -273,8 +273,7 @@ function getDayOfYear() { } function getChallengeIdx() { - var idx = getDayOfYear() - 57 - return Math.min(idx, challenges.length-1) + return challenges.length-1 } function focus(el) { |