ElEditors, Interface administrators, Administrators
85,546
edits
mNo edit summary |
mNo edit summary |
||
Line 305: | Line 305: | ||
} | } | ||
}); | }); | ||
/* Deal with rainbow rows */ | /* Deal with rainbow rows */ | ||
$('.rainbow').each(function(){ | $('.rainbow').each(function(){ | ||
var | var rb_Height = $(this).innerHeight(), | ||
rb_Width = $(this).innerWidth(); | |||
var rb_Element = $(this).is('tr') ? $(this).children().first() : $(this); | |||
var rb_ZIndex = parseInt(rb_Element.css('z-index')) || 0 - 1; | |||
rb_Element.css('position', 'relative'); | |||
$(document.createElement('span')).css({ | |||
'display': 'block', | |||
'position': 'absolute', | |||
'background-image': 'linear-gradient(to right,' + | |||
var rb_Element = $(this). | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(function(i){ | ||
rb_Element. | return 'hsl(' + (i * 36).toString() + ',100%,50%) ' + (i * 10).toString() + '%'; | ||
}).join(',') | |||
+ ')', | |||
'top': 0, | |||
'left': 0, | |||
'bottom': 0, | |||
'right': 0, | |||
'height': rb_Height + 'px', | |||
'width': rb_Width + 'px', | |||
'z-index': rb_ZIndex | |||
}).prependTo(rb_Element); | |||
}); | |||
}); | |||
}); | |||
/* | /* | ||
$('table.odd-stripe > tbody > tr:has(td):').css('background-color', function(){ | $('table.odd-stripe > tbody > tr:has(td):').css('background-color', function(){ |