Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: (function() { cDependent(); }); function cDependent(){ if($('.mw-references-wrap').length === 0)...") |
|||
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() { | + | $(function() { |
cDependent(); | cDependent(); | ||
}); | }); |
Revision as of 14:50, September 9, 2021
/* Any JavaScript here will be loaded for all users on every page load. */
$(function() {
cDependent();
});
function cDependent(){
if($('.mw-references-wrap').length === 0){
$('.cdependent').hide();
} else {
$('.cdependent').show();
}
}