Rename hero top bar variable
This commit is contained in:
parent
c57ec210d9
commit
748134643c
|
@ -36,17 +36,17 @@
|
||||||
<script defer>
|
<script defer>
|
||||||
const hero = document.querySelector(".hero");
|
const hero = document.querySelector(".hero");
|
||||||
const todayEvent = getTodayEvent();
|
const todayEvent = getTodayEvent();
|
||||||
const headerTopBarEl = document.querySelector(".hero__top-bar");
|
const heroTopBarEl = document.querySelector(".hero__top-bar");
|
||||||
const headerImgEl = document.querySelector(".hero__img");
|
const headerImgEl = document.querySelector(".hero__img");
|
||||||
|
|
||||||
if (todayEvent != "No event") {
|
if (todayEvent != "No event") {
|
||||||
headerTopBarEl.classList.remove('hidden');
|
heroTopBarEl.classList.remove('hidden');
|
||||||
|
|
||||||
if (todayEvent == "Leilukin's Birthday" || todayEvent == "Leilukin's Hub Anniversary") {
|
if (todayEvent == "Leilukin's Birthday" || todayEvent == "Leilukin's Hub Anniversary") {
|
||||||
headerTopBarEl.innerHTML = getBlurbHtml(todayEvent);
|
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);
|
||||||
} else {
|
} else {
|
||||||
headerImgEl.classList.add(getBanner(todayEvent));
|
headerImgEl.classList.add(getBanner(todayEvent));
|
||||||
headerTopBarEl.innerHTML = getBlurbHtml(todayEvent);
|
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue