Render hero top bar only if there is an event on that day
This commit is contained in:
parent
c1e560b94a
commit
a045b39428
|
@ -46,9 +46,7 @@
|
||||||
headerImgEl.classList.add(getBanner(todayEvent));
|
headerImgEl.classList.add(getBanner(todayEvent));
|
||||||
headerTopBarEl.innerHTML = getBlurbHtml(todayEvent);
|
headerTopBarEl.innerHTML = getBlurbHtml(todayEvent);
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
headerTopBarEl.textContent = "Welcome to Leilukin's Hub!";
|
|
||||||
};
|
|
||||||
|
|
||||||
function getTodayEvent() {
|
function getTodayEvent() {
|
||||||
const date = new Date();
|
const date = new Date();
|
||||||
|
|
Loading…
Reference in New Issue