summaryrefslogtreecommitdiff
path: root/404/js
diff options
context:
space:
mode:
Diffstat (limited to '404/js')
-rw-r--r--404/js/main.js11
-rw-r--r--404/js/redirect-to-desktop.js4
-rw-r--r--404/js/redirect-to-mobile.js4
3 files changed, 8 insertions, 11 deletions
diff --git a/404/js/main.js b/404/js/main.js
deleted file mode 100644
index 2f18f0d..0000000
--- a/404/js/main.js
+++ /dev/null
@@ -1,11 +0,0 @@
-$(document).mousemove(function (event) {
- $('.torch').css({
- 'top': event.pageY,
- 'left': event.pageX
- });
- });
-
-// CHECKS IF USER IS ON MOBILE
-if (screen.width <= 480) {
- location.href = '/404/alternate';
-} \ No newline at end of file
diff --git a/404/js/redirect-to-desktop.js b/404/js/redirect-to-desktop.js
new file mode 100644
index 0000000..566a0c0
--- /dev/null
+++ b/404/js/redirect-to-desktop.js
@@ -0,0 +1,4 @@
+// CHECKS IF USER IS ON DESKTOP
+if (screen.width > 699) {
+ location.href = '/404.html/';
+}
diff --git a/404/js/redirect-to-mobile.js b/404/js/redirect-to-mobile.js
new file mode 100644
index 0000000..234e420
--- /dev/null
+++ b/404/js/redirect-to-mobile.js
@@ -0,0 +1,4 @@
+// CHECKS IF USER IS ON MOBILE
+if (screen.width <= 699) {
+ location.href = '/404/m/';
+} \ No newline at end of file