diff options
| author | s1n <[email protected]> | 2019-11-05 12:45:52 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-11-05 12:45:52 -0800 |
| commit | 48841d4554efae60fe1a38b6bc023d55ee829cf6 (patch) | |
| tree | d15e6ebb04ba8bf295d4b95e7c5387cb14230224 /js | |
| parent | make im look nice on mobile (diff) | |
| download | s1n.pw-admin-48841d4554efae60fe1a38b6bc023d55ee829cf6.tar.xz s1n.pw-admin-48841d4554efae60fe1a38b6bc023d55ee829cf6.zip | |
add no click on desktop
Diffstat (limited to 'js')
| -rw-r--r-- | js/app.js | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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")
|