easter egg

This commit is contained in:
nmemmert
2026-06-18 10:03:32 -04:00
parent 9174331d2d
commit e0ed798741
2 changed files with 17 additions and 1 deletions
+16
View File
@@ -2236,6 +2236,22 @@ export default function App() {
useUTMCapture()
useOutboundLinkTracking()
useEffect(() => {
const TARGET = 'salvation'
let buffer = ''
function onKeyDown(e: KeyboardEvent) {
const tag = (e.target as HTMLElement)?.tagName
if (tag === 'INPUT' || tag === 'TEXTAREA' || (e.target as HTMLElement)?.isContentEditable) return
buffer = (buffer + e.key).slice(-TARGET.length)
if (buffer === TARGET) {
buffer = ''
window.location.assign('/salvation')
}
}
document.addEventListener('keydown', onKeyDown)
return () => document.removeEventListener('keydown', onKeyDown)
}, [])
useEffect(() => {
fetch('/api/admin-content')
.then(r => (r.ok ? r.json() : null))