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 /cars | |
| 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 'cars')
| -rw-r--r-- | cars/js/main.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cars/js/main.js b/cars/js/main.js index 5cf12fb..336766f 100644 --- a/cars/js/main.js +++ b/cars/js/main.js @@ -1,3 +1,8 @@ +// CHECKS IF USER IS ON MOBILE +if (screen.width <= 480) { + location.href = '/mobile/'; +} + // rendered-js class Wall { constructor(x, y, w, h, a) { |