Clean up code

This commit is contained in:
Helen Chong 2023-11-09 20:17:29 +08:00
parent efaf42d064
commit 705735053a
1 changed files with 11 additions and 14 deletions

View File

@ -19,7 +19,6 @@ function loadHeader() {
};
}
document.addEventListener('DOMContentLoaded', () => {
const todayEvent = getTodayEvent();
const headerTopBarEl = document.querySelector(".main-header__top-bar");
const headerImgEl = document.querySelector(".main-header__img");
@ -32,7 +31,6 @@ document.addEventListener('DOMContentLoaded', () => {
headerTopBarEl.innerHTML = getBlurbHtml(todayEvent);
}
};
});
function getTodayEvent() {
const date = new Date();
@ -192,7 +190,6 @@ function getBlurbHtml(day) {
}
/* ------ MAIN NAVIGATION BAR COMPONENT ------ */
document.querySelector(".navbar").innerHTML = `
<ul class="nav__menu">