summaryrefslogtreecommitdiff
path: root/cars
diff options
context:
space:
mode:
authors1nical <[email protected]>2019-08-09 23:47:00 -0700
committers1nical <[email protected]>2019-08-09 23:47:00 -0700
commitf7ada46007e0a23fe0d7665d07f48532070f2f21 (patch)
treef5084721854a795ace2fe0f369abc6ca48371a72 /cars
parentMerge branch 'master' of https://github.com/s1nical/about-me (diff)
downloads1n.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.js5
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) {