From 681cd8c1cc2904c562f9a58db3cbb657d58fb552 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 16 May 2023 03:53:24 -0400 Subject: feat: rewrite with astro --- src/js/chrisApp.js | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 src/js/chrisApp.js (limited to 'src/js/chrisApp.js') diff --git a/src/js/chrisApp.js b/src/js/chrisApp.js deleted file mode 100644 index 133b16d..0000000 --- a/src/js/chrisApp.js +++ /dev/null @@ -1,23 +0,0 @@ -const chrisURL = "/imgs/chris/"; - -function randomChris() { - const files = [ - "chis_very_fried.jpg", - "chris_medium_fried.jpg", - "chris_moshed.jpg", - "fried_publisher.jpg", - "help_me.png", - "nice_chris.png", - "nice_publisher.png", - "bkender_bauob.jpg", - "blurry_chris.jpg", - ]; - - // this chooses a random file from the array - const url = chrisURL + files[Math.floor(Math.random() * files.length)]; - - window.location.href = url; -} - -const chris = document.getElementById("chris_gif"); -chris.addEventListener("click", randomChris); -- cgit v1.2.3