Difference between revisions of "MediaWiki:Common.js"
		
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
		
		
		
		
		
		
	
|  (resolution change) |  (resolution change) | ||
| Line 4: | Line 4: | ||
| { | { | ||
| − |    if(document.documentElement.clientWidth <  | + |    if(document.documentElement.clientWidth <= 735) | 
|    { |    { | ||
|      window.location.replace(document.URL + "?useformat=mobile"); |      window.location.replace(document.URL + "?useformat=mobile"); | ||
|    } |    } | ||
| } | } | ||
Revision as of 21:49, 6 April 2013
/* Any JavaScript here will be loaded for all users on every page load. */
if(document.URL.search("mobile") == -1)
{
  if(document.documentElement.clientWidth <= 735)
  {
    window.location.replace(document.URL + "?useformat=mobile");
  }
}

