View source for MediaWiki:Vector.js
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
$(document).ready(function() {
$('.copyable-text').on('click', function() {
var textToCopy = $(this).text();
navigator.clipboard.writeText(textToCopy).then(function() {
$(this).addClass('copied');
}.bind(this), function(err) {
console.error('Ошибка при копировании текста: ', err);
});
});
});
document.addEventListener('DOMContentLoaded', function () {
var elements = document.querySelectorAll('body *');
elements.forEach(function (el) {
var bgColor = window.getComputedStyle(el).backgroundColor;
if (bgColor === 'rgb(208, 32, 25)') {
el.classList.add('custom-selection');
}
});
000
1:0
Return to MediaWiki:Vector.js.