Difference between revisions of "User:James Hare/vector.js"

From Wikimedia District of Columbia
Jump to navigation Jump to search
(Done testing)
(Mobile JS)
Line 1: Line 1:
  +
/* For mobile devices */
  +
  +
var viewPortTag=document.createElement('meta');
  +
viewPortTag.id="viewport";
  +
viewPortTag.name = "viewport";
  +
viewPortTag.content = "width=640; initial-scale=0.5; maximum-scale=0.5; user-scalable=1;";
  +
document.getElementsByTagName('head')[0].appendChild(viewPortTag);

Revision as of 06:13, 6 June 2013

/* For mobile devices */

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