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.: <div id="bmc-button-wrapper"> <a href="https://www.buymeacoffee.com/sephardicdiasporawiki" target="_blank"> <img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px; width: 217px;"> </a> </div>" |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
<div | |||
$(document).ready(function () { | |||
var donateDiv = $(` | |||
<div class="global-donate"> | |||
<a href="https://www.buymeacoffee.com/sephardicdiasporawiki" target="_blank"> | |||
</div> | <img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" | ||
alt="Buy Me a Coffee" | |||
style="height: 60px !important; width: 217px !important;"> | |||
</a> | |||
</div> | |||
`); | |||
$('.mw-parser-output').append(donateDiv); | |||
}); |
Latest revision as of 00:49, 15 August 2025
/* Any JavaScript here will be loaded for all users on every page load. */ $(document).ready(function () { var donateDiv = $(` <div class="global-donate"> <a href="https://www.buymeacoffee.com/sephardicdiasporawiki" target="_blank"> <img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me a Coffee" style="height: 60px !important; width: 217px !important;"> </a> </div> `); $('.mw-parser-output').append(donateDiv); });