From 746e2c791587c98317a6a6e79e68be5e8cec1147 Mon Sep 17 00:00:00 2001 From: limepotato Date: Tue, 27 Aug 2024 01:16:24 -0600 Subject: [PATCH] ssshhh --- astro/public/scripts/sn.js | 5 +++++ astro/src/layouts/Layout.astro | 1 + astro/src/pages/sn.astro | 15 +++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 astro/public/scripts/sn.js create mode 100644 astro/src/pages/sn.astro diff --git a/astro/public/scripts/sn.js b/astro/public/scripts/sn.js new file mode 100644 index 0000000..731411a --- /dev/null +++ b/astro/public/scripts/sn.js @@ -0,0 +1,5 @@ +document.addEventListener("keydown", (event) => { + if (event.ctrlKey && event.key === "`") { + window.location.replace("/sn"); + } +}); diff --git a/astro/src/layouts/Layout.astro b/astro/src/layouts/Layout.astro index c1c5291..3a40fe9 100755 --- a/astro/src/layouts/Layout.astro +++ b/astro/src/layouts/Layout.astro @@ -26,6 +26,7 @@ const { title } = Astro.props; +