summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2023-01-16 01:30:33 -0500
committercyfraeviolae <cyfraeviolae>2023-01-16 01:30:33 -0500
commit9d836b29801864e8e56acd715283ba71df0d5aad (patch)
treec67dffc8ee84df2f6178e16823723725e7e3210c
parenta2b72f510f246196d200d8d7ea984c65bfa85b13 (diff)
fix challenge idx
-rw-r--r--static/script.js3
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) {