MediaWiki:Common.js: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 476: Line 476:
     So I use this hack hope to improve speed for Chinese visitors.
     So I use this hack hope to improve speed for Chinese visitors.
****/
****/
if(navigator && navigator.language.search("zh") !== -1)
/* if(navigator && navigator.language.search("zh") !== -1)
     $(".adsbygoogle").css({"display": "none"});
     $(".adsbygoogle").css({"display": "none"});
*/
/****************************** Common Gradient ******************************/
$(function(){
    $('table > tbody > tr > th').each(function(){
        var bgc = this.style.backgroundColor;
        $(this).css({'backgroundImage': 'linear-gradient(to bottom, #eee, ' + bgc + ');'};
    });
});