mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-30 18:24:29 +01:00
9 lines
221 B
JavaScript
9 lines
221 B
JavaScript
|
onready(function(){
|
||
|
if(navigator.userAgent.match(/iPhone|iPod|iPad|Android|Opera Mini|Blackberry|PlayBook/i)) {
|
||
|
$('html').addClass("mobile-style");
|
||
|
}
|
||
|
else {
|
||
|
$('html').addClass("desktop-style");
|
||
|
}
|
||
|
})
|