MediaWiki:Mobile.js: Difference between revisions

From Clicklaw Wikibooks
Jump to navigation Jump to search
Created page with "All JavaScript here will be loaded for users of the mobile site: $(document).ready(function() { $('.navbox .navbox-group td').each(function() { var $navbox = $(this); $navbox.style.removeProperty('width'); }); });"
 
No edit summary
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
/* All JavaScript here will be loaded for users of the mobile site */
/* All JavaScript here will be loaded for users of the mobile site */


$(document).ready(function() {
mw.loader.using('jquery', function () {
     $('.navbox .navbox-group td').each(function() {
  $(document).ready(function() {
     setTimeout(function() {
      $('.navbox td').each(function() {
         var $navbox = $(this);
         var $navbox = $(this);
         $navbox.style.removeProperty('width');
         if ($navbox[0].style != undefined) { $navbox[0].style.removeProperty("width"); }
     });
      });
     }, 4000);
  });
});
});

Latest revision as of 19:37, 29 April 2025

/* All JavaScript here will be loaded for users of the mobile site */

mw.loader.using('jquery', function () {
  $(document).ready(function() {
    setTimeout(function() {
      $('.navbox td').each(function() {
        var $navbox = $(this);
        if ($navbox[0].style != undefined) { $navbox[0].style.removeProperty("width"); }
      });
    }, 4000);
  });
});