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.
/* MediaWiki:Common.js */
$(document).ready(function() {
// Находим все ссылки с rel="discussion" и меняем атрибут title
$('a[rel="discussion"]').attr('title', 'Comment the article [alt+shift t]');
});
$(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 () {
000
1:0
Return to MediaWiki:Vector.js.