Anonymous

MediaWiki:Common.js: Difference between revisions

From Elwiki
m
no edit summary
mNo edit summary
mNo edit summary
Line 495: Line 495:
         $(this).css('background-color', 'transparent');
         $(this).css('background-color', 'transparent');
         for(var i = 0; i < tr.length; i += 2){
         for(var i = 0; i < tr.length; i += 2){
            $(tr[i]).css('background-color', bc);
        }
    });
    $('table.even-stripe').each(function(){
        var tr = $(this).find('> tbody > tr').has('td');
        var bc = $(this).css('background-color');
        $(this).css('background-color', 'transparent');
        for(var i = 1; i < tr.length; i += 2){
             $(tr[i]).css('background-color', bc);
             $(tr[i]).css('background-color', bc);
         }
         }
     });
     });
});
});