MediaWiki:Common.js: Difference between revisions

From The Reed and Rite
mNo edit summary
Tag: Reverted
mNo edit summary
Tag: Manual revert
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. */
mw.loader.load( 'ext.cite.styles' );
mw.loader.load( 'ext.cite.styles' );
document.addEventListener('DOMContentLoaded', function() {
    document.querySelectorAll('.notice-close').forEach(function(closeBtn) {
        closeBtn.addEventListener('click', function() {
            var notice = this.closest('.notice');
            if (notice) {
                notice.style.display = 'none';
            }
        });
    });
});

Revision as of 03:00, 21 March 2025

/* Any JavaScript here will be loaded for all users on every page load. */
mw.loader.load( 'ext.cite.styles' );