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