Difference between revisions of "MediaWiki:Common.js"

From Simson Garfinkel
Jump to navigationJump to search
m
m
Line 5: Line 5:


mw.loader.using(['mediawiki.util'], function () {
mw.loader.using(['mediawiki.util'], function () {
   $(function () {
   jQuery(function () {
     $('#content').prepend(r2b2);
     var html = '<div id="custom-banner">Hello from custom JS!</div>';
    jQuery('#content').prepend(html);
   });
   });
});
});

Revision as of 12:09, 25 June 2025

/* Any JavaScript here will be loaded for all users on every page load. */
console.log("Welcome to simson.net.");
const rb2b=`hello`;


mw.loader.using(['mediawiki.util'], function () {
  jQuery(function () {
    var html = '<div id="custom-banner">Hello from custom JS!</div>';
    jQuery('#content').prepend(html);
  });
});