summaryrefslogtreecommitdiff
path: root/mobile
diff options
context:
space:
mode:
authors1nical <[email protected]>2019-08-27 21:45:13 -0700
committers1nical <[email protected]>2019-08-27 21:45:13 -0700
commit222de4e91ac1ba9340b50ab299735ff7d88d0e35 (patch)
tree0fcfaa7a1264952dc80959489635590fdb9062f2 /mobile
parentadd about redirect to konami nav bar (diff)
downloads1n.pw-admin-222de4e91ac1ba9340b50ab299735ff7d88d0e35.tar.xz
s1n.pw-admin-222de4e91ac1ba9340b50ab299735ff7d88d0e35.zip
seperate mobile/desktop redirects
Diffstat (limited to 'mobile')
-rw-r--r--mobile/index.html1
-rw-r--r--mobile/js/app.js11
2 files changed, 4 insertions, 8 deletions
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 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/0.3.1/trianglify.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<link rel="stylesheet" href="/mobile/css/main.css">
+ <script src="/js/redirect-to-desktop.js"></script>
<meta name="description" content="s1nical is a full stack developer.">
<meta property="og:description" content="s1nical is a full stack developer.">
<meta property="og:title" content="s1nical">
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