1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 09:20:58 +01:00
vichan/js/mobile-style.js
2012-12-29 16:31:23 +01:00

9 lines
265 B
JavaScript

onready(function(){
if(navigator.userAgent.match(/iPhone|iPod|iPad|Android|Opera Mini|Blackberry|PlayBook|Windows Phone|Tablet PC|Windows CE|IEMobile/i)) {
$('html').addClass("mobile-style");
}
else {
$('html').addClass("desktop-style");
}
})