Difference between revisions of "MediaWiki:Vector.js"

From WikiConference North America
Jump to navigation Jump to search
(For mobile devices)
 
(Undo revision 15570 by Benoit Rochon (talk))
 
(One intermediate revision by the same user not shown)

Latest revision as of 18:32, 3 February 2020

/* For mobile devices */

var viewPortTag=document.createElement('meta');
viewPortTag.id="viewport";
viewPortTag.name = "viewport";
viewPortTag.content = "width=device-width; initial-scale=1; maximum-scale=1;";
document.getElementsByTagName('head')[0].appendChild(viewPortTag);