1
0
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:
Marcin Łabanowski 2012-12-22 20:18:35 +01:00
parent 7e0d2b3186
commit cb36764424

8
js/mobile-style.js Normal file
View 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");
}
})