MediaWiki:Common.js: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 474: Line 474:
/****************************** Common Gradient ******************************/
/****************************** Common Gradient ******************************/
$(function(){
$(function(){
     $('table > tbody > tr').each(function(){
     $('table > tbody > tr[style~=rainbow]').css({
        console.log(this.style.backgroundColor);
     });
     });
/* Debugging
     $('table > tbody > tr > th').css({
     $('table > tbody > tr > th').each(function(){
         'backgroundImage': 'linear-gradient(to bottom, #eee, ' + $(this).css('backgroundColor') + ')');
         var bgc = $(this).css('background-color');
        $(this).css('background-image', 'linear-gradient(to bottom, #eee, ' + bgc + ')');
     });
     });
*/
});
});