MediaWiki:Gadget-equipment.js: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(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: Reverted |
||
Line 1: | Line 1: | ||
// 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(); } });}); |
|||
// 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(); |
|||
} |
|||
}); |
|||
}); |
Revision as of 17:12, 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(); } });});