From 78c43c975166476f8e52e3ee521d917c269f6844 Mon Sep 17 00:00:00 2001 From: s1n Date: Sat, 12 Oct 2019 00:22:46 -0700 Subject: new 404 + many optimzations --- 404/js/main.js | 11 ----------- 404/js/redirect-to-desktop.js | 4 ++++ 404/js/redirect-to-mobile.js | 4 ++++ 3 files changed, 8 insertions(+), 11 deletions(-) delete mode 100644 404/js/main.js create mode 100644 404/js/redirect-to-desktop.js create mode 100644 404/js/redirect-to-mobile.js (limited to '404/js') 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 -- cgit v1.2.3