From d0ad2e5d16f62c9a45dafc3eacc814a3b9013d08 Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 20 May 2023 02:33:17 -0400 Subject: rewrite everything in typescript --- public/js/chrisApp.js | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 public/js/chrisApp.js (limited to 'public/js/chrisApp.js') diff --git a/public/js/chrisApp.js b/public/js/chrisApp.js deleted file mode 100644 index d4d7059..0000000 --- a/public/js/chrisApp.js +++ /dev/null @@ -1,24 +0,0 @@ -/* eslint no-undef: "off" */ -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