jQuery - specify iOS screen

0 votes
133 views
added Jun 24, 2019 in jQuery by LC Marshal Captain (25,770 points)
if ($('html.ios.iphone').length) {
  $('html').css({'height': '100%', 'overflow': 'hidden'});
  $('body').addClass('show-safari-bar');
  // $('.top-nav').append(sliderNews);
  alert('ios')
}

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...