Skip to content

Commit bb9315b

Browse files
feat: add konami code to reveal Skylight link
1 parent ab4b2d4 commit bb9315b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,24 @@
5353
});
5454
}
5555
</script>
56+
<script type="text/javascript" defer>
57+
let cursor = 0;
58+
let timeout;
59+
const KONAMI_CODE = [38, 38, 40, 40, 37, 39, 37, 39, 66, 65, 13];
60+
document.addEventListener('keydown', e => {
61+
clearTimeout(timeout);
62+
cursor = (e.keyCode == KONAMI_CODE[cursor]) ? cursor + 1 : 0;
63+
if (cursor == KONAMI_CODE.length) {
64+
document.getElementById('skylight-link').style.display = 'block';
65+
cursor = 0;
66+
}
67+
if (cursor > 0) {
68+
timeout = setTimeout(() => {
69+
cursor = 0;
70+
}, 5_000);
71+
}
72+
});
73+
</script>
5674
</head>
5775

5876
<body class="min-h-dvh flex flex-col gap-10 justify-center p-4">
@@ -70,6 +88,9 @@ <h1 class="md:flex-1 text-xl md:pe-12 mb-10">
7088
<a class="text-white hover:text-pco-turquoise font-semibold rounded-3xl py-1 bg-gradient-to-r hover:bg-pco-secondary-btn bg-clip-padding hover:[background-clip:padding-box,border-box] border-2 border-transparent from-pco-topaz to-pco-emerald" href="https://kbckc.churchcenter.com/login">
7189
Log In
7290
</a>
91+
<a id="skylight-link" style="display: none" class="font-semibold rounded-3xl py-1 border-2" href="https://kbckc-skylight.azurewebsites.net">
92+
Skylight
93+
</a>
7394
</nav>
7495
</main>
7596
<footer class="text-center">

0 commit comments

Comments
 (0)