forked from leftypol/leftypol
mobile-style.js: facilitate styling differently for mobile devices and desktops
This commit is contained in:
parent
0812799eb4
commit
f0ec60afef
1 changed files with 8 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue