MediaWiki:Common.js: Difference between revisions

From Official Kynseed Wiki from PixelCount Studios
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
mw.loader.load("/resources/js/common.js");
 
console.log('loaded common js');
//function ShowSpoiler(section) {
//document.getElementById(section + 'Spoiler').style.display = 'block';
//}
 
jQuery(document).ready(function() {
jQuery('[data-spoiler]').on('click', function() {
alert('test');
});
});

Latest revision as of 12:16, 7 December 2022

mw.loader.load("/resources/js/common.js");
console.log('loaded common js');