From 83a6d186eaa5b4a0efa7c96124a0aaaefb57631f Mon Sep 17 00:00:00 2001 From: abrendan <94894839+abrendan@users.noreply.github.com> Date: Sat, 2 Dec 2023 00:02:04 +0000 Subject: [PATCH] Built in a easter egg... --- html/script.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/html/script.js b/html/script.js index 588bfdf..79e4021 100644 --- a/html/script.js +++ b/html/script.js @@ -63,4 +63,14 @@ function delayReset(){ function toggleDarkMode() { document.body.classList.toggle('dark-mode'); -} \ No newline at end of file +} + +document.addEventListener('keydown', function(event) { + // Check if Alt + Ctrl + R are pressed together + if (event.altKey && event.ctrlKey && event.key === 'r') { + // Prevent the default action to avoid conflicts + event.preventDefault(); + // Open the desired webpage in a new window/tab + window.open('https://www.youtube.com/watch?v=dQw4w9WgXcQ'); + } +}); \ No newline at end of file