From 4d5b7f80b1cbf1db4fe9662022892e49c5078a41 Mon Sep 17 00:00:00 2001 From: s1nical Date: Wed, 7 Aug 2019 15:22:49 -0700 Subject: Add navbar, mobile version --- dev/test.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 dev/test.js (limited to 'dev/test.js') diff --git a/dev/test.js b/dev/test.js new file mode 100644 index 0000000..fa8d751 --- /dev/null +++ b/dev/test.js @@ -0,0 +1,9 @@ +// This one doesn't work at the moment but I'll try to find a way to fix it. + +if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)) { + location.href = './mobile/'; +} else if (/Chrome|Mac|MacBook|Firefox|Mozilla|Opera|OperaGX|Avast|IE|Windows|MacOS|/i.test(navigator.userAgent)) { + location.href = './index.html'; +} else { + location.href = './index.html'; +} \ No newline at end of file -- cgit v1.2.3