Difference between revisions of "MediaWiki:Vector.js"
Jump to navigation
Jump to search
James Hare (talk | contribs) (Retiring main page code no longer in use) |
James Hare (talk | contribs) (For mobile devices) |
||
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); |
Revision as of 02:34, 28 June 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);