MediaWiki:Common.js: Difference between revisions
No edit summary Tags: Mobile edit Mobile web edit |
mNo 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. */ | ||
debugger; | |||
$('.infobox-tab').click(function(e) { | $('.infobox-tab').click(function(e) { | ||
var tab = $(e.target).attr('data-tab'); | var tab = $(e.target).attr('data-tab'); | ||
Revision as of 20:42, 15 September 2025
/* Any JavaScript here will be loaded for all users on every page load. */
debugger;
$('.infobox-tab').click(function(e) {
var tab = $(e.target).attr('data-tab');
$('.infobox-panel').hide();
$('.infobox-panel.' + tab).show();
$('.infobox-tab').removeClass('active');
$(e.target).addClass('active');
});
$(document).ready(function() {
if ($('body').hasClass('skin-minerva')) {
/* $('#mw-content-text div section[class="mf-section-0"]').children().last()
.insertAfter('#mw-content-text div section[class="mf-section-0"] div[class="infobox-idea"]:first');*/
var infoboxes = $('#mf-section-0 .infobox-idea');
// Move them to the end of the section
$('#mf-section-0').append(infoboxes);
}
});