diff options
| author | s1n <[email protected]> | 2019-10-12 00:22:46 -0700 |
|---|---|---|
| committer | s1n <[email protected]> | 2019-10-12 00:22:46 -0700 |
| commit | 78c43c975166476f8e52e3ee521d917c269f6844 (patch) | |
| tree | 22c36c1d43c86f4489becfaabec1cdb15bcd4027 /404/js | |
| parent | del ghouly (diff) | |
| download | s1n.pw-admin-78c43c975166476f8e52e3ee521d917c269f6844.tar.xz s1n.pw-admin-78c43c975166476f8e52e3ee521d917c269f6844.zip | |
new 404 + many optimzations
Diffstat (limited to '404/js')
| -rw-r--r-- | 404/js/main.js | 11 | ||||
| -rw-r--r-- | 404/js/redirect-to-desktop.js | 4 | ||||
| -rw-r--r-- | 404/js/redirect-to-mobile.js | 4 |
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 |