From 3fd40d4f1d231e0832e36138818f00b68208d461 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 9 Feb 2025 14:15:58 -0800 Subject: add tierlist link to homepage --- scripts/index.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'scripts') diff --git a/scripts/index.js b/scripts/index.js index f258952..e3dc338 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -125,5 +125,23 @@ document.addEventListener('DOMContentLoaded', function() { setInterval(fetchNowPlaying, 60000); }); +document.addEventListener("DOMContentLoaded", () => { + const images = [ + "assets/sayo-fries.gif", + "assets/chuni-reaction.gif", + "assets/haruhikage.jpg", + ]; + + function displayRandomImage() { + const randomIndex = Math.floor(Math.random() * images.length); + const randomImage = images[randomIndex]; + + const imageContainer = document.querySelector('.random-image-container'); + imageContainer.innerHTML = `Random Image`; + } + + displayRandomImage(); +}); + setInterval(updateClock, 1000); updateClock(); \ No newline at end of file -- cgit v1.2.3