Anonymous

MediaWiki:Common.js: Difference between revisions

From Melvor Idle
Attempting to fix error
(Added fixed table header code)
 
(Attempting to fix error)
Line 2: Line 2:


/* Sets the top property for stickyHeader tables */
/* Sets the top property for stickyHeader tables */
$(document).ready(() => {
 
$(document).ready(function() {
   const stickyTables = document.getElementsByClassName('stickyHeader');
   const stickyTables = document.getElementsByClassName('stickyHeader');
   const headHeight = document.getElementById('mw-header-container').offsetHeight;
   const headHeight = document.getElementById('mw-header-container').offsetHeight;
Line 23: Line 24:
     }
     }
   }
   }
})
});