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: | ||
$(function() { | $(function() { | ||
// | // Linkler | ||
var | var links = [ | ||
{ | { | ||
icon: ' | icon: '//upload.wikimedia.org/wikipedia/commons/5/5c/Discord_logo.svg', | ||
text: 'Discord', | text: 'Discord', | ||
url: 'https://discord.gg/link' | url: 'https://discord.gg/link' | ||
}, | }, | ||
{ | { | ||
icon: ' | icon: '//upload.wikimedia.org/wikipedia/commons/8/82/Telegram_logo.svg', | ||
text: 'Telegram', | text: 'Telegram', | ||
url: 'https://t.me/link' | url: 'https://t.me/link' | ||
}, | }, | ||
{ | { | ||
icon: ' | icon: '//upload.wikimedia.org/wikipedia/commons/7/73/DeviantArt_Logo.svg', | ||
text: 'DeviantArt', | text: 'DeviantArt', | ||
url: 'https://deviantart.com/link' | url: 'https://deviantart.com/link' | ||
}, | }, | ||
{ | { | ||
icon: ' | icon: '//upload.wikimedia.org/wikipedia/commons/8/83/Steam_icon_logo.svg', | ||
text: 'Steam', | text: 'Steam', | ||
url: 'https://steamcommunity.com/link' | url: 'https://steamcommunity.com/link' | ||
25. satır: | 24. satır: | ||
]; | ]; | ||
// | // HTML Oluştur | ||
var $ | var $socialBar = $('<div id="korna-social-header"></div>'); | ||
var $ | var $linksContainer = $('<div id="korna-social-links"></div>'); | ||
links.forEach(function(link) { | |||
$linksContainer.append( | |||
$ | |||
$('<a>', { | $('<a>', { | ||
href: link.url, | href: link.url, | ||
37. satır: | 35. satır: | ||
target: '_blank' | target: '_blank' | ||
}) | }) | ||
.append($('<img>', { src: link.icon, alt: | .append($('<img>', { src: link.icon, alt: link.text })) | ||
.append(link.text) | .append(link.text) | ||
); | ); | ||
}); | }); | ||
// | // EKLEME YERİ (başlığın hemen üstüne) | ||
$ | $socialBar.append($linksContainer); | ||
$('# | $('#firstHeading').before($socialBar); | ||
}); | }); |
00.23, 3 Nisan 2025 tarihindeki hâli
$(function() { // Linkler var links = [ { icon: '//upload.wikimedia.org/wikipedia/commons/5/5c/Discord_logo.svg', text: 'Discord', url: 'https://discord.gg/link' }, { icon: '//upload.wikimedia.org/wikipedia/commons/8/82/Telegram_logo.svg', text: 'Telegram', url: 'https://t.me/link' }, { icon: '//upload.wikimedia.org/wikipedia/commons/7/73/DeviantArt_Logo.svg', text: 'DeviantArt', url: 'https://deviantart.com/link' }, { icon: '//upload.wikimedia.org/wikipedia/commons/8/83/Steam_icon_logo.svg', text: 'Steam', url: 'https://steamcommunity.com/link' } ]; // HTML Oluştur var $socialBar = $('<div id="korna-social-header"></div>'); var $linksContainer = $('<div id="korna-social-links"></div>'); links.forEach(function(link) { $linksContainer.append( $('<a>', { href: link.url, title: link.text, target: '_blank' }) .append($('<img>', { src: link.icon, alt: link.text })) .append(link.text) ); }); // EKLEME YERİ (başlığın hemen üstüne) $socialBar.append($linksContainer); $('#firstHeading').before($socialBar); });