MediaWiki:Common.js: Difference between revisions

From Official Kynseed Wiki from PixelCount Studios
Jump to navigation Jump to search
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: function ShowSpoiler(section) { document.getElementById(section + 'Spoiler').style.display = 'block'; }")
 
No 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. */


function ShowSpoiler(section) {
//function ShowSpoiler(section) {
document.getElementById(section + 'Spoiler').style.display = 'block';
//document.getElementById(section + 'Spoiler').style.display = 'block';
}
//}
 
jQuery(document).ready(function() {
jQuery('[spoiler]').on('click', function() {
alert('test');
});
});

Revision as of 11:48, 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');
	});
});