Difference between revisions of "User:James Hare/vector.js"
Jump to navigation
Jump to search
James Hare (talk | contribs) (Testing) |
James Hare (talk | contribs) (Moving to MediaWiki:Vector.js) |
||
(4 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=640; initial-scale=0.5; maximum-scale=1;"; |
||
− | document.getElementsByTagName('head')[0].appendChild(viewPortTag); |