jQuery - add meta with .append

0 votes
160 views
added Jun 24, 2019 in jQuery by LC Marshal Captain (25,790 points)
$(document).ready(function() {
  if ($('body.page-content').length) {
    // $('html, body').css({'height': '100%'});
    // $('.news-content-wrapper').css({'overflow-y': 'scroll'});
    $('head').append('<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=no, initial-scale=1">');
    $('head').append('<meta name="mobile-web-app-capable" content="yes">');
    // alert('test')
  }
});

 

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