Skip to content

Commit

Permalink
add ability to go to old retrostats
Browse files Browse the repository at this point in the history
  • Loading branch information
kavigupta committed Aug 17, 2024
1 parent 17018cd commit 223f6c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion react/src/quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ async function loadPage() {
var quiz_kind = "juxtastat";
if (mode == "retro") {
document.title = "Retrostat";
const retro = get_retrostat_offset_number();
var retro = get_retrostat_offset_number();
if (urlParams.has('date')) {
retro = parseInt(urlParams.get('date'));
}
today = "W" + retro;
today_name = "Week " + retro;
todays_quiz = loadJSON("/retrostat/" + retro);
Expand Down

0 comments on commit 223f6c5

Please sign in to comment.