diff options
| author | s1nical <[email protected]> | 2019-08-09 23:47:00 -0700 |
|---|---|---|
| committer | s1nical <[email protected]> | 2019-08-09 23:47:00 -0700 |
| commit | f7ada46007e0a23fe0d7665d07f48532070f2f21 (patch) | |
| tree | f5084721854a795ace2fe0f369abc6ca48371a72 /404/js | |
| parent | Merge branch 'master' of https://github.com/s1nical/about-me (diff) | |
| download | s1n.pw-admin-f7ada46007e0a23fe0d7665d07f48532070f2f21.tar.xz s1n.pw-admin-f7ada46007e0a23fe0d7665d07f48532070f2f21.zip | |
alternate 404 for mobile, desktop pages redirect to mobile
Diffstat (limited to '404/js')
| -rw-r--r-- | 404/js/main.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/404/js/main.js b/404/js/main.js index 8b45c65..417011a 100644 --- a/404/js/main.js +++ b/404/js/main.js @@ -3,4 +3,9 @@ $(document).mousemove(function (event) { 'top': event.pageY,
'left': event.pageX
});
- });
\ No newline at end of file + });
+
+// CHECKS IF USER IS ON MOBILE
+if (screen.width <= 480) {
+ location.href = './404/alternate';
+}
\ No newline at end of file |