MediaWiki:Common.js: Difference between revisions
mNo edit summary Tag: Reverted |
mNo edit summary Tag: Reverted |
||
| Line 5: | Line 5: | ||
document.querySelectorAll('.notice-close').forEach(function(closeBtn) { | document.querySelectorAll('.notice-close').forEach(function(closeBtn) { | ||
closeBtn.addEventListener('click', function() { | closeBtn.addEventListener('click', function() { | ||
this. | this.parentNode.style.display = 'none'; | ||
}); | }); | ||
}); | }); | ||
}); | }); | ||
Revision as of 02:46, 21 March 2025
/* Any JavaScript here will be loaded for all users on every page load. */
mw.loader.load( 'ext.cite.styles' );
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('.notice-close').forEach(function(closeBtn) {
closeBtn.addEventListener('click', function() {
this.parentNode.style.display = 'none';
});
});
});