Изменения

-counters
Строка 448: Строка 448:  
     $('#siteSub').append ('<span class="noprint">. Вы можете <a href="' + $('link[rel="edit"]').attr('href') + '">дополнить или исправить</a> его.</span>');
 
     $('#siteSub').append ('<span class="noprint">. Вы можете <a href="' + $('link[rel="edit"]').attr('href') + '">дополнить или исправить</a> его.</span>');
 
}
 
}
});
  −
  −
// Add custom footer icons by Javascript rather than inject them into the HTML on server side.
  −
//    This will reduce apparent page load time:
  −
$(function () {
  −
    if (!_.isUndef('DisableExternalCounters')) return; // [[MediaWiki:Gadget-DisableExternalCounters.js]]
  −
    // Yandex's and Rambler's counters:
  −
    var counters = '<a href="http://yandex.ru/cy?base=0&amp;amp;host=traditio-ru.org"><img src="http://www.yandex.ru/cycounter?traditio-ru.org" alt="ТИЦ Яндекса" width="88" height="31" /></a>'
  −
                + '<a href="http://top100.rambler.ru/navi/2513448/"><img src="http://counter.rambler.ru/top100.cnt?2513448" alt="Rambler\'s Top 100" width="88" height="31" /></a>'
  −
                + '<a href="http://www.liveinternet.ru/click" target="_blank"><img src="//counter.yadro.ru/hit?t16.6;r' + escape (document.referrer)
  −
                + ((typeof (screen) == 'undefined ') ? '' : ';s' + screen.width + '*' + screen.height + '*'
  −
                    + (screen.colorDepth ? screen.colorDepth : screen.pixelDepth)
  −
                  ) + ';u' + escape (document.URL) + ';h' + escape (document.title.substring (0,80)) + ';' + Math.random ()
  −
                + '" alt="Счётчик LiveInternet" title="LiveInternet: показано число просмотров за 24 часа, посетителей за 24 часа и за сегодня" '
  −
                + 'border="0" width="88" height="31"><\/a>';
  −
    // Different ways in Common and Vector skins:
  −
    if (mw.config.get ('skin') == 'vector') {
  −
        $('li#footer-poweredbyico').before ('<li></li><li id="footer-counters">' + counters + '</li>');
  −
    } else {
  −
        $('div#f-poweredbyico').prepend ('&nbsp;&nbsp;' + counters);
  −
    }
   
});
 
});