We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c02c6b5 commit 93f5da6Copy full SHA for 93f5da6
1 file changed
12 - Key Sequence Detection/index-START.html
@@ -7,6 +7,19 @@
7
<link rel="icon" href="https://fav.farm/🔥" />
8
</head>
9
<body>
10
- <script></script>
+ <script>
11
+ const pressed = [];
12
+ const secretCode = 'cornify';
13
+
14
+ window.addEventListener('keyup', (e) => {
15
+ pressed.push(e.key);
16
+ pressed.splice( -secretCode.length - 1, pressed.length - secretCode.length)
17
18
+ if(pressed.join('').includes(secretCode)){
19
+ cornify_add()
20
+ }
21
22
+ })
23
+ </script>
24
</body>
25
</html>
0 commit comments