MediaWiki:Common.js: Difference between revisions
EkramHossen (talk | contribs) No edit summary |
EkramHossen (talk | contribs) No edit summary |
||
Line 47: | Line 47: | ||
mw.loader.using('jquery', function () { | mw.loader.using('jquery', function () { | ||
$(function () { | $(function () { | ||
// | // Create the promo banner HTML | ||
var promo = $('<div id="promo-banner">🚀 Need SEO Services? <a href="/wiki/SEO_Services" target="_blank">Click here to learn more</a></div>'); | |||
// Insert into Vector 2022 header area | |||
var headerArea = $('.vector-header-container'); | |||
if (headerArea.length) { | |||
headerArea.after(promo); // place right under header | |||
} | } | ||
}); | }); | ||
}); | }); |