This commit is contained in:
LifeAdventurer
2025-03-09 09:00:57 +00:00
parent c2d9bf0a82
commit 146426f66f
2 changed files with 6 additions and 4 deletions

View File

@@ -353,9 +353,11 @@ async function init_page() {
}
}
special_events_index = ip.split(".").map(num => parseInt(num)).reduce((acc, cur) => acc + cur);
special_events_index %= current_day_special_events.length;
special_events_index = current_day_special_events[special_events_index];
if (current_day_special_events.length) {
special_events_index = ip.split(".").map(num => parseInt(num)).reduce((acc, cur) => acc + cur);
special_events_index %= current_day_special_events.length;
special_events_index = current_day_special_events[special_events_index];
}
// if there is upcoming event then show
for (let eventIndex = 0; eventIndex < showSpecialEventCount; eventIndex++) {

View File

@@ -1 +1 @@
{ "commit_hash": "f9f0f9c1a4c6bd2207ff884a63c6fd2fbda04f33" }
{ "commit_hash": "c80c879af161deeeb817344db45f789ef2d8a9a0" }