mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-18 00:56:42 +01:00
mobile-style.js: facilitate styling differently for mobile devices and desktops
This commit is contained in:
parent
7e0d2b3186
commit
cb36764424
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…
x
Reference in New Issue
Block a user