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"); + } +})