summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authors1n <[email protected]>2019-11-05 12:45:52 -0800
committerGitHub <[email protected]>2019-11-05 12:45:52 -0800
commit48841d4554efae60fe1a38b6bc023d55ee829cf6 (patch)
treed15e6ebb04ba8bf295d4b95e7c5387cb14230224 /js
parentmake im look nice on mobile (diff)
downloads1n.pw-admin-48841d4554efae60fe1a38b6bc023d55ee829cf6.tar.xz
s1n.pw-admin-48841d4554efae60fe1a38b6bc023d55ee829cf6.zip
add no click on desktop
Diffstat (limited to 'js')
-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")