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
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) {
import "/resources/js/common.js";
//document.getElementById(section + 'Spoiler').style.display = 'block';
//}
 
jQuery(document).ready(function() {
jQuery('[data-spoiler]').on('click', function() {
$(this).hide();
$('[data-spoiler-body="' + $(this).attr('data-spoiler') + '"]').show();
});
});

Revision as of 12:07, 7 December 2022

/* Any JavaScript here will be loaded for all users on every page load. */

import "/resources/js/common.js";