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