MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Created page with "→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('Result: ' + result); $('#p-navigation ul').append(Test); });" |
No edit summary |
||
| Line 4: | Line 4: | ||
var $customItem = $('<li>') | var $customItem = $('<li>') | ||
.attr('id', 'mw-custom-sidebar-calc') | .attr('id', 'mw-custom-sidebar-calc') | ||
.text(' | .text('Test: ' + result); | ||
$('#p-navigation ul').append( | $('#p-navigation ul').append($customItem); | ||
}); | }); | ||
Revision as of 18:56, 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-navigation ul').append($customItem);
});