MediaWiki:Common.js: Difference between revisions
From DM Live - the Depeche Mode live encyclopedia for the masses
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
/* 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. */ | ||
originalHeaderRow = $("tr:first", this); | |||
originalHeaderRow.before(originalHeaderRow.clone()); | |||
// original css rules and stuff | |||
clonedHeaderRow.children().each( function( index ) { | |||
$(this).append("<div class='widthFix'></div>"); | |||
$(this).css("padding-left", "0"); | |||
$(this).css("padding-right", "0"); | |||
$('.widthFix', this).width( originalHeaderRow.children().get( index ).clientWidth ); | |||
}); | }); |
Revision as of 06:51, 17 August 2019
/* <pre> */ /* Any JavaScript here will be loaded for all users on every page load. */ originalHeaderRow = $("tr:first", this); originalHeaderRow.before(originalHeaderRow.clone()); // original css rules and stuff clonedHeaderRow.children().each( function( index ) { $(this).append("<div class='widthFix'></div>"); $(this).css("padding-left", "0"); $(this).css("padding-right", "0"); $('.widthFix', this).width( originalHeaderRow.children().get( index ).clientWidth ); });