From 222de4e91ac1ba9340b50ab299735ff7d88d0e35 Mon Sep 17 00:00:00 2001 From: s1nical Date: Tue, 27 Aug 2019 21:45:13 -0700 Subject: seperate mobile/desktop redirects --- about/index.html | 1 + cars/index.html | 1 + development/index.html | 1 + index.html | 1 + js/app.js | 5 ----- js/redirect-to-desktop.js | 4 ++++ js/redirect-to-mobile.js | 4 ++++ konami/index.html | 1 + konami/js/main.js | 5 ----- mobile/index.html | 1 + mobile/js/app.js | 11 +++-------- 11 files changed, 17 insertions(+), 18 deletions(-) create mode 100644 js/redirect-to-desktop.js create mode 100644 js/redirect-to-mobile.js diff --git a/about/index.html b/about/index.html index 90c45a9..dfbdc3e 100644 --- a/about/index.html +++ b/about/index.html @@ -12,6 +12,7 @@ + diff --git a/cars/index.html b/cars/index.html index 793f559..391a34c 100644 --- a/cars/index.html +++ b/cars/index.html @@ -9,6 +9,7 @@ s1nical - Cars + diff --git a/development/index.html b/development/index.html index 41ee390..e79f662 100644 --- a/development/index.html +++ b/development/index.html @@ -7,6 +7,7 @@ s1nical - Development + diff --git a/index.html b/index.html index d3d1624..67af1e8 100644 --- a/index.html +++ b/index.html @@ -24,6 +24,7 @@ + + diff --git a/konami/js/main.js b/konami/js/main.js index 9ffed54..c75bb27 100644 --- a/konami/js/main.js +++ b/konami/js/main.js @@ -19,11 +19,6 @@ function Scroll() { } Scroll(); -// CHECKS IF USER IS ON MOBILE -if (screen.width <= 480) { - location.href = '/mobile'; -} - // KONAMI CODE FOR TOASTY // a key map of allowed keys diff --git a/mobile/index.html b/mobile/index.html index 311dbcb..b186306 100644 --- a/mobile/index.html +++ b/mobile/index.html @@ -10,6 +10,7 @@ + diff --git a/mobile/js/app.js b/mobile/js/app.js index ae22283..af7b893 100644 --- a/mobile/js/app.js +++ b/mobile/js/app.js @@ -3,11 +3,6 @@ $(window).on("load", function () { $(".loader-wrapper").fadeOut("slow"); }) -// CHECKS IF USER IS ON DESKTOP -if( screen.width > 480 ) { - location.href = '/index.html'; -} - // BACKGROUND SPARKLES // SCRIPT #1 @@ -46,7 +41,7 @@ var time = 10, pathCollection = $paths.get(), count = $paths.length; -console.log(count); +// console.log(count); pathCollection.sort(function () { return Math.random() * 10 > 5 ? 1 : -1; @@ -80,7 +75,7 @@ setTimeout(function () { }); }, 2000); -// Honestly I have NO idea what this is but it was in the original site source code so I kept it :) +/* Honestly I have NO idea what this is but it was in the original site source code so I kept it :) (async () => { if (navigator.webdriver || document.visibilityState === 'prerender' || !location.hostname) { return; @@ -88,4 +83,4 @@ setTimeout(function () { document.querySelector('a[href="/cdn-cgi/l/email-protection"]').href = `\x6dailto:hi\x40${location.hostname}`; })(); - +*/ \ No newline at end of file -- cgit v1.2.3