summaryrefslogtreecommitdiffstats
path: root/scripts/index.js
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-02-09 14:15:58 -0800
committerPinapelz <yukais@pinapelz.com>2025-02-09 14:15:58 -0800
commit3fd40d4f1d231e0832e36138818f00b68208d461 (patch)
tree00347c709c61ed73f0aef286f472e859a6f84007 /scripts/index.js
parent954d98b3eb939d7dfc2df7f3f572ad083f1ec461 (diff)
add tierlist link to homepage
Diffstat (limited to 'scripts/index.js')
-rw-r--r--scripts/index.js18
1 files changed, 18 insertions, 0 deletions
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 = `<img src="${randomImage}" alt="Random Image" class="border-img">`;
+ }
+
+ displayRandomImage();
+});
+
setInterval(updateClock, 1000);
updateClock(); \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage