MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
.attr('id', 'mw-custom-sidebar-calc') | .attr('id', 'mw-custom-sidebar-calc') | ||
.text('Test: ' + result); | .text('Test: ' + result); | ||
$('#p-P-Tools ul').append( | $('#p-P-Tools ul').append($customItem); | ||
}); | }); | ||
Revision as of 19:06, 19 June 2026
/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready(function() {
var result = 1 + 1;
var $customItem = $('<li>')
.attr('id', 'mw-custom-sidebar-calc')
.text('Test: ' + result);
$('#p-P-Tools ul').append($customItem);
});