Difference between revisions of "User:James Hare/vector.js"
Jump to navigation
Jump to search
James Hare (talk | contribs) (Testing) |
James Hare (talk | contribs) (Testing) |
||
Line 4: | Line 4: | ||
viewPortTag.id="viewport"; |
viewPortTag.id="viewport"; |
||
viewPortTag.name = "viewport"; |
viewPortTag.name = "viewport"; |
||
− | viewPortTag.content = "width= |
+ | viewPortTag.content = "width=480; initial-scale=0.75; maximum-scale=1;"; |
document.getElementsByTagName('head')[0].appendChild(viewPortTag); |
document.getElementsByTagName('head')[0].appendChild(viewPortTag); |
Revision as of 06:33, 6 June 2013
/* For mobile devices */
var viewPortTag=document.createElement('meta');
viewPortTag.id="viewport";
viewPortTag.name = "viewport";
viewPortTag.content = "width=480; initial-scale=0.75; maximum-scale=1;";
document.getElementsByTagName('head')[0].appendChild(viewPortTag);