summaryrefslogtreecommitdiff
path: root/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/app.js')
-rw-r--r--js/app.js18
1 files changed, 8 insertions, 10 deletions
diff --git a/js/app.js b/js/app.js
index 125afd2..b2f9848 100644
--- a/js/app.js
+++ b/js/app.js
@@ -5,20 +5,18 @@ $(window).on("load", function () {
console.log("UP, UP, DOWN, DOWN, LEFT, RIGHT, LEFT, RIGHT, B, A")
})
-// THIS CHECKS WHAT OS THE USER IS ON
-// This is a old variation so don't use this.
-// Using it because this way you can use Chrome's "Request Desktop Site" feature.
-if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)) {
- location.href = '/mobile/';
-}
-
/*
-// CHECKS IF USER IS ON MOBILE
-// if( screen.width <= 480 ) {
-// location.href = '/mobile';
+// THIS CHECKS WHAT OS THE USER IS ON, This is a old variation so don't use this.
+// if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)) {
+// location.href = './mobile/';
// }
*/
+// CHECKS IF USER IS ON MOBILE
+if( screen.width <= 480 ) {
+ location.href = '/mobile';
+}
+
// BACKGROUND SPARKLES
// SCRIPT #1