Jump to content

MediaWiki:Common.js: Difference between revisions

From Utpalasia Wiki
Created page with "→Any JavaScript here will be loaded for all users on every page load.: <script> if(screen.width <= 800) { window.location.replace(document.URL + "&mobileaction=to..."
 
No edit summary
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. */


<script>
 
   if(screen.width <= 800)
   if(screen.width <= 800)
   {
   {
     window.location.replace(document.URL + "&mobileaction=toggle_view_mobile");
     alert("Hi!");
    //window.location.replace(document.URL + "&mobileaction=toggle_view_mobile");
   }
   }
</script>

Revision as of 19:45, 29 March 2013

/* Any JavaScript here will be loaded for all users on every page load. */


  if(screen.width <= 800)
  {
    alert("Hi!");
    //window.location.replace(document.URL + "&mobileaction=toggle_view_mobile");
  }