1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-24 05:14:53 +01:00
vichan/js/mobile-style.js

9 lines
273 B
JavaScript
Raw Normal View History

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