diff options
author | Minteck <contact@minteck.org> | 2022-07-09 15:22:44 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-07-09 15:22:44 +0200 |
commit | 5abe8cba55965f70e07e1163239bcc9d797c864a (patch) | |
tree | eb29933d2d5420c134f21a941cceb1d361c53b1d /assets/easteregg.js | |
parent | 1a3ff5e4f8bbd4cf35093cdb42d0d93ca635c91e (diff) | |
download | bits-client-5abe8cba55965f70e07e1163239bcc9d797c864a.tar.gz bits-client-5abe8cba55965f70e07e1163239bcc9d797c864a.tar.bz2 bits-client-5abe8cba55965f70e07e1163239bcc9d797c864a.zip |
Bye bye desktop app
Diffstat (limited to 'assets/easteregg.js')
-rw-r--r-- | assets/easteregg.js | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/assets/easteregg.js b/assets/easteregg.js new file mode 100644 index 0000000..cb05ea6 --- /dev/null +++ b/assets/easteregg.js @@ -0,0 +1,60 @@ +f13presses = 0; +document.onkeydown = (event) => { + if (event.keyCode === 124) { + if (require('os').platform() === "win32") { + alert("haha you're using an inferior OS! Doing F13 on here is too easy so you might have expected " + + "something but you're not going to get it.") + } else { + f13presses++; + + switch (f13presses) { + case 1: + Array.from(document.querySelectorAll("*")).forEach((item) => { + item.style.fontFamily = "'Noto Sans Symbols', 'Wingdings', 'Webdings', monospace"; + }); + break; + + case 2: + Array.from(document.querySelectorAll("*")).forEach((item) => { + item.style.background = "red"; + }); + break; + + case 3: + Array.from(document.querySelectorAll("*")).forEach((item) => { + item.style.color = "blue"; + }); + break; + + case 4: + Array.from(document.querySelectorAll("img")).forEach((item) => { + item.src = ""; + item.style.color = "yellow"; + }); + break; + + case 5: + Array.from(document.querySelectorAll("*")).forEach((item) => { + item.style.transition = "transform 200ms"; + item.style.animationName = "shake"; + item.style.animationDuration = "200ms"; + item.style.animationIterationCount = "infinite"; + item.style.animationDirection = "alternate-reverse"; + }); + break; + + case 6: + Array.from(document.querySelectorAll("*")).forEach((item) => { + item.style.display = "none"; + }); + break; + + default: + Array.from(document.querySelectorAll("*")).forEach((item) => { + window.close(); + }); + break; + } + } + } +}
\ No newline at end of file |