Fix: Special event bug

This commit is contained in:
lifeadventurer
2024-10-14 02:03:02 +08:00
parent 32e3b5b9a3
commit 5ca0f68b5f

View File

@@ -101,8 +101,8 @@ async function init_page() {
$('#date').html(showDate);
$('#weekday').html(showDay);
const showSpecialEventCount = 2, eventIndexPtr = 0;
const eventIndexList = Array(showSpecialEventCount).fill(-1);
const showSpecialEventCount = 2;
let eventIndexPtr = 0, eventIndexList = Array(showSpecialEventCount).fill(-1);
// check if there is special event today
for (let i = 0; i < special_events.length; i++) {
if (daysDiff(i) > 0) {