diff options
| author | s1nical <[email protected]> | 2019-08-07 15:22:49 -0700 |
|---|---|---|
| committer | s1nical <[email protected]> | 2019-08-07 15:22:49 -0700 |
| commit | 4d5b7f80b1cbf1db4fe9662022892e49c5078a41 (patch) | |
| tree | 218607e8dd3ae91344d011f6f288741aaeddaa68 /dev | |
| parent | Update README.md (diff) | |
| download | s1n.pw-admin-4d5b7f80b1cbf1db4fe9662022892e49c5078a41.tar.xz s1n.pw-admin-4d5b7f80b1cbf1db4fe9662022892e49c5078a41.zip | |
Add navbar, mobile version
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/README.todo | 5 | ||||
| -rw-r--r-- | dev/test.js | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/dev/README.todo b/dev/README.todo new file mode 100644 index 0000000..68c1711 --- /dev/null +++ b/dev/README.todo @@ -0,0 +1,5 @@ +Q: What was I doing? +A: It was like 3 AM and I was trying to fix the centering issue on the new navigation bar in `css/main.scss`. + Current GitHub branch: dev + Commited?: No + Asked on Reddit?: https://www.reddit.com/r/webdev/comments/cn3vfu/i_cant_find_the_reason_my_navigation_bar_isnt/
\ No newline at end of file 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 |