We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaab40b commit 6e3227eCopy full SHA for 6e3227e
1 file changed
src/static/js/schedule.js
@@ -28,8 +28,26 @@ document.addEventListener('DOMContentLoaded', () => {
28
resetCardBackgrounds();
29
hideAllSchedules();
30
31
- // Always show FIRST card + its content
32
- const firstCard = cards[2];
+ const today = new Date();
+ const day = today.getDate();
33
+ const month = today.getMonth();
34
+ const year = today.getFullYear();
35
+
36
+ let date_index = 0;
37
38
+ if (month === 8 && year === 2025) {
39
+ if (day <= 12) {
40
+ date_index = 0;
41
+ } else if (day === 13) {
42
+ date_index = 1;
43
+ } else if (day === 14) {
44
+ date_index = 2;
45
+ } else if (day >= 15) {
46
+ date_index = 3;
47
+ }
48
49
50
+ const firstCard = cards[date_index];
51
const firstContentId = firstCard.getAttribute('data-schedule');
52
53
highlight(firstCard);
0 commit comments