mobile-style.js: facilitate styling differently for mobile devices and desktops
This commit is contained in:
parent
0812799eb4
commit
f0ec60afef
8
js/mobile-style.js
Normal file
8
js/mobile-style.js
Normal file
@ -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");
|
||||||
|
}
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user