MediaWiki:Gadget-equipment.js: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 1: Line 1:
// Make buttons for Items Kept on Death and Equipment Stats on Template:Equipment clickable,
// Make buttons for Items Kept on Death and Equipment Stats on Template:Equipment clickable,// if equipment stats and buttons are shown.$(function() { $('.equipment-statsbutton, .equipment-ikodbutton').click(function() { var ikod = $(this).parents('.equipment').find('.equipment-ikod'), stats = $(this).parents('.equipment').find('.equipment-stats'); if ($(this).is('.equipment-statsbutton')) { ikod.hide(); stats.show(); } else { stats.hide(); ikod.show(); } });});
// if equipment stats and buttons are shown.

$(function() {
$('.equipment-statsbutton, .equipment-ikodbutton').click(function() {
var ikod = $(this).parents('.equipment').find('.equipment-ikod'),
stats = $(this).parents('.equipment').find('.equipment-stats');
if ($(this).is('.equipment-statsbutton')) {
ikod.hide();
stats.show();
} else {
stats.hide();
ikod.show();
}
});
});

Latest revision as of 17:15, 17 October 2024

// Make buttons for Items Kept on Death and Equipment Stats on Template:Equipment clickable,
// if equipment stats and buttons are shown.

$(function() {
	$('.equipment-statsbutton, .equipment-ikodbutton').click(function() {
		var ikod = $(this).parents('.equipment').find('.equipment-ikod'),
			stats = $(this).parents('.equipment').find('.equipment-stats');
		if ($(this).is('.equipment-statsbutton')) {
			ikod.hide();
			stats.show();
		} else {
			stats.hide();
			ikod.show();
		}
	});
});