diff options
Diffstat (limited to 'js')
| -rw-r--r-- | js/app.js | 4 | ||||
| -rw-r--r-- | js/background-sparkles.js | 13 | ||||
| -rw-r--r-- | js/redirect-to-desktop.js | 2 | ||||
| -rw-r--r-- | js/redirect-to-mobile.js | 2 |
4 files changed, 14 insertions, 7 deletions
@@ -1,3 +1,4 @@ +// KONAMI CODE HINTS
$(window).on("load", function () {
console.log("UP, UP, DOWN, DOWN, LEFT, RIGHT, LEFT, RIGHT, B, A")
@@ -21,8 +22,7 @@ if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phon ** })();
*/
-// KONAMI CODE FOR ALTERNATE 90s SITE
-
+// KONAMI CODE FOR ALTERNATE 90S SITE
// A key map of allowed keys
var allowedKeys = {
37: 'left',
diff --git a/js/background-sparkles.js b/js/background-sparkles.js index 16cfb4e..bce6b94 100644 --- a/js/background-sparkles.js +++ b/js/background-sparkles.js @@ -1,5 +1,10 @@ -// BACKGROUND SPARKLES -// SCRIPT #1 +// Background only renders based on the original browser window size when +// starting to load the site. Due to rendering issues, I don't think I +// can do it other wise. + +/////////////// +// SCRIPT #1 // +/////////////// // Set up base pattern var pattern = Trianglify({ @@ -25,7 +30,9 @@ document.body.appendChild(pattern.svg()) // png.src = pattern.png() // document.body.appendChild(png) -// SCRIPT #2 +/////////////// +// SCRIPT #2 // +/////////////// $('.title-wrapper').css('width', window.innerWidth); $('.title-wrapper').css('height', window.innerHeight); diff --git a/js/redirect-to-desktop.js b/js/redirect-to-desktop.js index 64d767d..df42fa0 100644 --- a/js/redirect-to-desktop.js +++ b/js/redirect-to-desktop.js @@ -1,4 +1,4 @@ // CHECKS IF USER IS ON DESKTOP -if (screen.width > 480) { +if (screen.width > 699) { location.href = '/index.html'; }
\ No newline at end of file diff --git a/js/redirect-to-mobile.js b/js/redirect-to-mobile.js index 5807029..599d0b6 100644 --- a/js/redirect-to-mobile.js +++ b/js/redirect-to-mobile.js @@ -1,4 +1,4 @@ // CHECKS IF USER IS ON MOBILE -if (screen.width <= 480) { +if (screen.width <= 699) { location.href = '/mobile'; }
\ No newline at end of file |