summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/app.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/app.js b/js/app.js
index e5d8ea3..f509821 100644
--- a/js/app.js
+++ b/js/app.js
@@ -1,3 +1,15 @@
+if (screen.width > 768) { // If Desktop
+ document.getElementById("m-konami").innerHTML = `
+ <div class="clairo">
+ <img src="/assets/imgs/clairo2.gif" alt="" width="30px">
+ </div>
+ `;
+} else if (screen.width < 768) { // If Mobile
+ <div class="clairo" onclick="activateCheats()">
+ <img src="/assets/imgs/clairo2.gif" alt="" width="30px">
+ </div>
+}
+
// KONAMI CODE HINTS
$(window).on("load", function () {
console.log("UP, UP, DOWN, DOWN, LEFT, RIGHT, LEFT, RIGHT, B, A")