You may try:
if(!(/iPhone|iPad|iPod|Android|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent) )) {
jQuery(document).ready(function($){
var inHeight = $("#wrapper").innerHeight();
$("#wrapper .col").each(function(){
$(this).height(inHeight+"px");
$(this).find('.content').height((inHeight-60)+"px");
});
});
}
So, if this is not a mobile device, then you run the code
Using $(window).width, this is not a good solution. Think about what happens if I donβt use a mobile device and just resize it in my browser window.
source
share