summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html1
-rw-r--r--js/oops.js38
-rw-r--r--konami/assets/midi/midi.mp3.txt (renamed from konami/assets/midi/midi.txt)0
-rw-r--r--konami/index.html4
-rw-r--r--oops.html24
5 files changed, 65 insertions, 2 deletions
diff --git a/index.html b/index.html
index 86e9031..9c9a84e 100644
--- a/index.html
+++ b/index.html
@@ -27,6 +27,7 @@
<script src="/js/hide-context-menu.js"></script>
<script src="/js/loader-animation.js"></script>
<script src="/js/redirect-to-mobile.js"></script>
+ <script src="/js/oops.js"></script>
<!-- Schema.org Stuff -->
<script type="application/ld+json">
{
diff --git a/js/oops.js b/js/oops.js
new file mode 100644
index 0000000..1c5a3fc
--- /dev/null
+++ b/js/oops.js
@@ -0,0 +1,38 @@
+// A key map of allowed keys
+var allowedKeys = {
+ 8: 'backspace'
+};
+
+// The sequence
+var oopsCode = ['backspace'];
+
+// A variable to remember the 'position' the user has reached so far.
+var oopsCodePosition = 0;
+
+// Add keydown event listener
+document.addEventListener('keydown', function (e) {
+ // Get the value of the key code from the key map
+ var key = allowedKeys[e.keyCode];
+ // Get the value of the required key from the oops Code
+ var requiredKey = oopsCode[oopsCodePosition];
+
+ // Compare the key with the required key
+ if (key == requiredKey) {
+
+ // Move to the next key in the oops Code sequence
+ oopsCodePosition++;
+
+ // Ff the last key is reached, activate cheats
+ if (oopsCodePosition == oopsCode.length) {
+ activateCheats();
+ oopsCodePosition = 0;
+ }
+ } else {
+ oopsCodePosition = 0;
+ }
+});
+
+function activateCheats() {
+
+ window.location.href = "/oops.html";
+} \ No newline at end of file
diff --git a/konami/assets/midi/midi.txt b/konami/assets/midi/midi.mp3.txt
index 3b8e91b..3b8e91b 100644
--- a/konami/assets/midi/midi.txt
+++ b/konami/assets/midi/midi.mp3.txt
diff --git a/konami/index.html b/konami/index.html
index 859a2f4..7f7d5a3 100644
--- a/konami/index.html
+++ b/konami/index.html
@@ -128,10 +128,10 @@
Uploader: Confused Bi-Product of a Misinformed Culture
- Full Credits: https://s1n.pw/konami/assets/midi/midi.txt
+ Full Credits: https://s1n.pw/konami/assets/midi/midi.mp3.txt
-->
<audio src="/konami/assets/midi/midi.mp3" autoplay id="music">
- <p>If you are reading this, it is because your browser does not support the audio element. </p>
+ <p>If you are reading this, it is because your browser does not support the audio element.</p>
<script>
var audio = document.getElementById("music");
audio.volume = 0.1; // Volume Adjuster, might bind it to "- and +" one day if possible.
diff --git a/oops.html b/oops.html
new file mode 100644
index 0000000..042ab17
--- /dev/null
+++ b/oops.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <title>s1nical - Oops</title>
+</head>
+<body>
+ <span>
+ If you're seeing this, the code is in what<br>
+ I thought was an unreachable state.<br>
+ <br>
+ I could give you advice for what to do.<br>
+ But honestly, why should you trust me?<br>
+ I clearly screwed this up. I'm writing a<br>
+ message that should never appear, yet<br>
+ I know it will probably appear someday.<br>
+ <br>
+ On a deep level, I know I'm not<br>
+ up to this task. I'm so sorry.<br>
+ </span>
+</body>
+</html> \ No newline at end of file