View source for Common.js
← MediaWiki:Common.js
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
/* Any JavaScript here will be loaded for all users on every page load. */
/* Ping when tick that a "To do" has been done */
$( ".ping" ).on( "click", function() {
const audio = new Audio("/media/Ping.mp3");
audio.play();
});
/* Hide some CategoryTree text */
$(document).ready(function() {
$("span:contains('(empty)')").hide();
});
/* TreeAndMenu: Opening a tree to the current page */
$(document).ready( function() {
$('#tree').bind('fancytreeinit', function(event, data) {
data.tree.makeTitleVisible();
});
});
000
1:0
Return to MediaWiki:Common.js.