Difference between revisions of "MediaWiki:Common.js"
		
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
		
		
		
		
		
		
	
|  (another attempt at mobile fix) |  (changed query string used to switch to mobile) | ||
| Line 4: | Line 4: | ||
| { | { | ||
| /*alert("Hi!");*/ | /*alert("Hi!");*/ | ||
| − |    window.location.replace(document.URL + " | + |    window.location.replace(document.URL + "?useformat=mobile"); | 
| } | } | ||
Revision as of 16:23, 4 April 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 + "?useformat=mobile");
}

