MediaWiki:Gadget-equipment.js: Difference between revisions
Jump to navigation
Jump to search
(Created page with "// 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....") |
No edit summary Tag: Manual revert |
(One intermediate revision by the same user not shown) | |
(No difference)
|
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();
}
});
});