summaryrefslogtreecommitdiff
path: root/404/js
diff options
context:
space:
mode:
Diffstat (limited to '404/js')
-rw-r--r--404/js/main.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/404/js/main.js b/404/js/main.js
index 2f18f0d..f36bbf1 100644
--- a/404/js/main.js
+++ b/404/js/main.js
@@ -5,7 +5,16 @@ $(document).mousemove(function (event) {
});
});
+/*
// CHECKS IF USER IS ON MOBILE
if (screen.width <= 480) {
location.href = '/404/alternate';
+}
+*/
+
+// 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/';
} \ No newline at end of file