Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
− | if(document.documentElement.clientWidth < | + | /*if(document.documentElement.clientWidth < 788 && document.URL.search("mobile") != -1) |
{ | { | ||
alert("Hi!"); | alert("Hi!"); | ||
window.location.replace(document.URL + "&mobileaction=toggle_view_mobile"); | window.location.replace(document.URL + "&mobileaction=toggle_view_mobile"); | ||
− | } | + | }*/ |
Revision as of 00:33, 30 March 2013
/* Any JavaScript here will be loaded for all users on every page load. */ /*if(document.documentElement.clientWidth < 788 && document.URL.search("mobile") != -1) { alert("Hi!"); window.location.replace(document.URL + "&mobileaction=toggle_view_mobile"); }*/