Move today event variable to individual hero templates

This commit is contained in:
Helen Chong 2024-04-29 11:16:44 +08:00
parent c95d0e0546
commit 9bb88594a6
95 changed files with 187 additions and 91 deletions

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -4,7 +4,7 @@
<subtitle>Leilukin&#39;s personal website.</subtitle> <subtitle>Leilukin&#39;s personal website.</subtitle>
<link href="https://leilukin.neocities.org/feed.xml" rel="self"/> <link href="https://leilukin.neocities.org/feed.xml" rel="self"/>
<link href="https://leilukin.neocities.org"/> <link href="https://leilukin.neocities.org"/>
<updated>2024-04-29T03:03:55Z</updated> <updated>2024-04-29T03:15:37Z</updated>
<id>https://leilukin.neocities.org</id> <id>https://leilukin.neocities.org</id>
<author> <author>
<name>Leilukin</name> <name>Leilukin</name>

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -97,11 +97,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -92,11 +92,12 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -8,6 +8,8 @@
{% endblock %} {% endblock %}
{% block eventScript %} {% block eventScript %}
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -8,6 +8,8 @@
{% endblock %} {% endblock %}
{% block eventScript %} {% block eventScript %}
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);

View File

@ -38,7 +38,6 @@
<script defer> <script defer>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const todayEvent = getTodayEvent();
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");

View File

@ -9,6 +9,8 @@
{% endblock %} {% endblock %}
{% block eventScript %} {% block eventScript %}
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');

View File

@ -8,6 +8,8 @@
{% endblock %} {% endblock %}
{% block eventScript %} {% block eventScript %}
const todayEvent = getTodayEvent();
if (todayEvent != "No event") { if (todayEvent != "No event") {
heroTopBarEl.classList.remove('hidden'); heroTopBarEl.classList.remove('hidden');
heroTopBarEl.innerHTML = getBlurbHtml(todayEvent); heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);