Render hero top bar only if there is an event on that day

This commit is contained in:
Leilukin 2024-04-16 00:12:49 +08:00 committed by Helen Chong
parent af21cf417b
commit ce3d1917e4

View File

@ -46,9 +46,7 @@
headerImgEl.classList.add(getBanner(todayEvent));
headerTopBarEl.innerHTML = getBlurbHtml(todayEvent);
}
} else {
headerTopBarEl.textContent = "Welcome to Leilukin's Hub!";
};
}
function getTodayEvent() {
const date = new Date();