Clean up code
This commit is contained in:
parent
efaf42d064
commit
705735053a
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue