MediaWiki:Common.js: Revizyonlar arasındaki fark
korna ansiklopedisi sitesinden
Gezinti kısmına atlaArama kısmına atla
Değişiklik özeti yok |
Değişiklik özeti yok |
||
1. satır: | 1. satır: | ||
/* | /* MediaWiki:Common.js */ | ||
$(function() { | $(function() { | ||
// Sosyal medya linkleri | |||
var socialLinks = [ | var socialLinks = [ | ||
{ | { | ||
icon: 'https:// | icon: 'https://cdn.jsdelivr.net/npm/simple-icons@v5/icons/discord.svg', | ||
text: 'Discord', | text: 'Discord', | ||
url: 'https://discord.gg/link' | url: 'https://discord.gg/link' | ||
}, | }, | ||
{ | { | ||
icon: 'https:// | icon: 'https://cdn.jsdelivr.net/npm/simple-icons@v5/icons/telegram.svg', | ||
text: 'Telegram', | text: 'Telegram', | ||
url: 'https://t.me/link' | url: 'https://t.me/link' | ||
}, | }, | ||
{ | { | ||
icon: 'https:// | icon: 'https://cdn.jsdelivr.net/npm/simple-icons@v5/icons/deviantart.svg', | ||
text: 'DeviantArt', | text: 'DeviantArt', | ||
url: 'https://deviantart.com/link' | url: 'https://deviantart.com/link' | ||
}, | }, | ||
{ | { | ||
icon: 'https:// | icon: 'https://cdn.jsdelivr.net/npm/simple-icons@v5/icons/steam.svg', | ||
text: 'Steam', | text: 'Steam', | ||
url: 'https://steamcommunity.com/link' | url: 'https://steamcommunity.com/link' | ||
24. satır: | 25. satır: | ||
]; | ]; | ||
var $ | // Container oluştur | ||
var $links = $('<div id="monobook | var $container = $('<div id="monobook-social-container"></div>'); | ||
var $links = $('<div id="monobook-social-links"></div>'); | |||
// Linkleri ekle | |||
socialLinks.forEach(function(link) { | socialLinks.forEach(function(link) { | ||
$links.append( | $links.append( | ||
34. satır: | 37. satır: | ||
target: '_blank' | target: '_blank' | ||
}) | }) | ||
.append($('<img>', { src: link.icon, alt: | .append($('<img>', { src: link.icon, alt: '' })) | ||
.append(link.text) | .append(link.text) | ||
); | ); | ||
}); | }); | ||
// | // Yerleştirme (personal bar altına) | ||
$ | $container.append($links); | ||
$('#p-personal').after($container); | |||
$('# | |||
}); | }); |
00.19, 3 Nisan 2025 tarihindeki hâli
/* MediaWiki:Common.js */ $(function() { // Sosyal medya linkleri var socialLinks = [ { icon: 'https://cdn.jsdelivr.net/npm/simple-icons@v5/icons/discord.svg', text: 'Discord', url: 'https://discord.gg/link' }, { icon: 'https://cdn.jsdelivr.net/npm/simple-icons@v5/icons/telegram.svg', text: 'Telegram', url: 'https://t.me/link' }, { icon: 'https://cdn.jsdelivr.net/npm/simple-icons@v5/icons/deviantart.svg', text: 'DeviantArt', url: 'https://deviantart.com/link' }, { icon: 'https://cdn.jsdelivr.net/npm/simple-icons@v5/icons/steam.svg', text: 'Steam', url: 'https://steamcommunity.com/link' } ]; // Container oluştur var $container = $('<div id="monobook-social-container"></div>'); var $links = $('<div id="monobook-social-links"></div>'); // Linkleri ekle socialLinks.forEach(function(link) { $links.append( $('<a>', { href: link.url, title: link.text, target: '_blank' }) .append($('<img>', { src: link.icon, alt: '' })) .append(link.text) ); }); // Yerleştirme (personal bar altına) $container.append($links); $('#p-personal').after($container); });