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 --- mobile/index.html | 1 + mobile/js/app.js | 11 +++-------- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'mobile') 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