MediaWiki:Common.js: Revizyonlar arasındaki fark

Wiki The-West TR sitesinden
Gezintiye git
("→‎Buraya konulacak JavaScript kodu sitedeki her kullanıcı için her sayfa yüklendiğinde çalışacaktır: $('.tbbox-logo').wrap('<a href="/wiki/Ana_sa..." içeriğiyle yeni sayfa oluşturdu)
 
Değişiklik özeti yok
1. satır: 1. satır:
/* Buraya konulacak JavaScript kodu sitedeki her kullanıcı için her sayfa yüklendiğinde çalışacaktır */
/* Buraya konulacak JavaScript kodu sitedeki her kullanıcı için her sayfa yüklendiğinde çalışacaktır */


$('.tbbox-logo').wrap('<a href="/wiki/Ana_sayfa"></a>');h
$('.tbbox-logo').wrap('<a href="/wiki/Ana_sayfa"></a>');
if ($('.item_container').length!==0) {
if ($('.item_container').length!==0) {
     $('.item_container').each(function() {
     $('.item_container').each(function() {

18.04, 26 Nisan 2022 tarihindeki hâli

/* Buraya konulacak JavaScript kodu sitedeki her kullanıcı için her sayfa yüklendiğinde çalışacaktır */

$('.tbbox-logo').wrap('<a href="/wiki/Ana_sayfa"></a>');
if ($('.item_container').length!==0) {
    $('.item_container').each(function() {
        $(this).append('<img src="https://westtr.innogamescdn.com/images/items/' + $(this).attr('data-url') + '?1">');
    });
    $.getScript("/wiki/Popup.js?action=raw");
}

$(window).scroll(function() {
    if ($(this).scrollTop() > 300) {
        $('#back-top').fadeIn();
    } else {
        $('#back-top').fadeOut();
    }
});
// Scroll body to top on click
$('#back-top a').click(function() {
    $('body,html').animate({
        scrollTop: 0
    }, 800);
    return false;
});
// Embed youtube videos
if ($('.youtube_video').length !== 0) {
    $('.youtube_video').each(function() {
        $(this).html('<iframe width="100%" height="100%" src="https://www.youtube.com/embed/' + $(this).attr('data-id') + '?cc_load_policy=1&cc_lang_pref=' + $(this).attr('data-subtitles') + '" frameborder="0" allowfullscreen></iframe>');
    });
}

mw.config.set('tableSorterCollation',{'ı':ç','ö':'ü','ş':'ğ','Ç':'Ş':'Ğ':'Ö':'Ü':'İ'});