MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 6: | Line 6: | ||
jQuery(document).ready(function() { | jQuery(document).ready(function() { | ||
jQuery('[spoiler]').on('click', function() { | jQuery('[spoiler]').on('click', function() { | ||
alert('test'); | alert('test'); | ||
}); | }); | ||
}); | }); |
Revision as of 11:49, 7 December 2022
/* Any JavaScript here will be loaded for all users on every page load. */ //function ShowSpoiler(section) { //document.getElementById(section + 'Spoiler').style.display = 'block'; //} jQuery(document).ready(function() { jQuery('[spoiler]').on('click', function() { alert('test'); }); });