diff options
| author | seth <[email protected]> | 2024-02-12 07:51:32 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-02-12 08:51:36 -0500 |
| commit | 19b01bff4c251722d4739f6dca208497877f7cbb (patch) | |
| tree | 31918495004c9386760afbac6853c9e7668093c1 /src/public/js | |
| parent | ec2b378c8d7885290db2d526364eb59512e60d0e (diff) | |
actually kinda try this time
Diffstat (limited to 'src/public/js')
| -rw-r--r-- | src/public/js/chrisApp.js | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/public/js/chrisApp.js b/src/public/js/chrisApp.js deleted file mode 100644 index eb78cfa..0000000 --- a/src/public/js/chrisApp.js +++ /dev/null @@ -1,30 +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; -} - -function findChris() { - const chris = document.getElementById("chris_gif"); - chris - ? chris.addEventListener("click", randomChris) - : console.warn("Couldn't load chris app!"); -} - -// avoiding a race condition here -setTimeout(findChris, 1000); |
