Template:Add viewport tag.js

Revision as of 15:04, 19 April 2019 by Pcoombe (talk | contribs) (Pcoombe moved page Template:Support Page/js to Template:Add viewport tag.js: clearer name, share with TY page as well)
<html><script>
// Add viewport meta tag
(function() {
    var metaTag = document.createElement('meta');
    metaTag.name = "viewport";
    metaTag.content = "width=device-width, initial-scale=1.0";
    document.getElementsByTagName('head')[0].appendChild(metaTag);
})();
</script></html>