summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/mobile-style.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/mobile-style.js b/js/mobile-style.js
new file mode 100644
index 00000000..4c50d0e0
--- /dev/null
+++ b/js/mobile-style.js
@@ -0,0 +1,8 @@
+onready(function(){
+ if(navigator.userAgent.match(/iPhone|iPod|iPad|Android|Opera Mini|Blackberry|PlayBook/i)) {
+ $('html').addClass("mobile-style");
+ }
+ else {
+ $('html').addClass("desktop-style");
+ }
+})