Marcin Łabanowski
12 years ago
2 changed files with 10 additions and 9 deletions
@ -1,8 +1,8 @@ |
|||
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"); |
|||
} |
|||
}) |
|||
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"; |
|||
} |
|||
|
Loading…
Reference in new issue