summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authors1nical <[email protected]>2019-08-23 05:31:10 -0700
committers1nical <[email protected]>2019-08-23 05:31:10 -0700
commit6525c082f4f9da365d17a29aee3c4525280d7f05 (patch)
treee2187482df3ecfddf3e74b08ff0166cdae4220b5 /js
parentupdate s1nical to 8cy (diff)
downloads1n.pw-admin-6525c082f4f9da365d17a29aee3c4525280d7f05.tar.xz
s1n.pw-admin-6525c082f4f9da365d17a29aee3c4525280d7f05.zip
mobile redir to use useragrent instead screenwidth
Diffstat (limited to 'js')
-rw-r--r--js/app.js19
1 files changed, 11 insertions, 8 deletions
diff --git a/js/app.js b/js/app.js
index efc4a87..125afd2 100644
--- a/js/app.js
+++ b/js/app.js
@@ -5,16 +5,19 @@ $(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.
-// if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)) {
-// location.href = './mobile/';
-// }
-*/
+// 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';
-}
+// if( screen.width <= 480 ) {
+// location.href = '/mobile';
+// }
+*/
// BACKGROUND SPARKLES
// SCRIPT #1