Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions src/static/js/schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,26 @@ document.addEventListener('DOMContentLoaded', () => {
resetCardBackgrounds();
hideAllSchedules();

// Always show FIRST card + its content
const firstCard = cards[2];
const today = new Date();
const day = today.getDate();
const month = today.getMonth();
const year = today.getFullYear();

let date_index = 0;

if (month === 8 && year === 2025) {
if (day <= 12) {
date_index = 0;
} else if (day === 13) {
date_index = 1;
} else if (day === 14) {
date_index = 2;
} else if (day >= 15) {
date_index = 3;
}
}

const firstCard = cards[date_index];
const firstContentId = firstCard.getAttribute('data-schedule');

highlight(firstCard);
Expand Down