Відмінності між версіями «MediaWiki:Common.js»
Матеріал з Енциклопедія Носівщини
| Рядок 8: | Рядок 8: | ||
portlet.className = 'mw-portlet'; | portlet.className = 'mw-portlet'; | ||
portlet.innerHTML = | portlet.innerHTML = | ||
| − | '<h3> | + | '<h3>Як нас підтримати:</h3>' + |
'<div class="pBody">' + | '<div class="pBody">' + | ||
'<a href="https://irc.privatbank.ua/qrstickws/route/qr?type=nextfastpay¶ms=%7B%22token%22%3A%22d0d602ae-c05a-473a-91d2-bd3ee9a52c17%22%7D">' + | '<a href="https://irc.privatbank.ua/qrstickws/route/qr?type=nextfastpay¶ms=%7B%22token%22%3A%22d0d602ae-c05a-473a-91d2-bd3ee9a52c17%22%7D">' + | ||
'<img src="' + | '<img src="' + | ||
mw.util.getUrl( 'Special:Redirect/file/privat.png' ) + | mw.util.getUrl( 'Special:Redirect/file/privat.png' ) + | ||
| − | '" alt=" | + | '" alt="Клацніть на цей QR-код">' + |
'</a>' + | '</a>' + | ||
'</div>'; | '</div>'; | ||
Версія за 23:23, 11 серпня 2026
$( function () {
if ( mw.config.get( 'skin' ) !== 'timeless' ) {
return;
}
var portlet = document.createElement( 'div' );
portlet.id = 'p-privat';
portlet.className = 'mw-portlet';
portlet.innerHTML =
'<h3>Як нас підтримати:</h3>' +
'<div class="pBody">' +
'<a href="https://irc.privatbank.ua/qrstickws/route/qr?type=nextfastpay¶ms=%7B%22token%22%3A%22d0d602ae-c05a-473a-91d2-bd3ee9a52c17%22%7D">' +
'<img src="' +
mw.util.getUrl( 'Special:Redirect/file/privat.png' ) +
'" alt="Клацніть на цей QR-код">' +
'</a>' +
'</div>';
var toolbox = document.querySelector( '#p-tb' );
if ( toolbox ) {
toolbox.parentNode.insertBefore( portlet, toolbox );
}
} );