Difference between revisions of "MediaWiki:Vector.js"

From Wikimedia District of Columbia
Jump to navigation Jump to search
(Retiring main page code no longer in use)
(Removing code replaced by MediaWiki syntax)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
  +
/* 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);

Latest revision as of 09:04, 17 August 2013

/* 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);