Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
(trying out width-based mobile redirection) |
|||
| Line 3: | Line 3: | ||
if(window.outerWidth <= 800) | if(window.outerWidth <= 800) | ||
{ | { | ||
| − | |||
window.location.replace(document.URL + "&mobileaction=toggle_view_mobile"); | window.location.replace(document.URL + "&mobileaction=toggle_view_mobile"); | ||
} | } | ||
Revision as of 20:32, 29 March 2013
/* Any JavaScript here will be loaded for all users on every page load. */
if(window.outerWidth <= 800)
{
window.location.replace(document.URL + "&mobileaction=toggle_view_mobile");
}