ElEditors, Interface administrators, Administrators
85,546
edits
mNo edit summary |
mNo edit summary |
||
Line 474: | Line 474: | ||
/****************************** Common Gradient ******************************/ | /****************************** Common Gradient ******************************/ | ||
$(function(){ | $(function(){ | ||
$('table > tbody > tr > | var headerList = $('table > tbody > tr'); | ||
var rainbowList = $('table > tbody > tr[style~=rainbow]'); | |||
var headerList = headerList.filter(rainbowList); | |||
headerList.each(function(){ | |||
var bgc = $(this).css('background-color'); | var bgc = $(this).css('background-color'); | ||
$(this).css('background-image', 'linear-gradient(to bottom, #eee, ' + bgc + ')'); | $(this).css('background-image', 'linear-gradient(to bottom, #eee, ' + bgc + ')'); | ||
}); | }); | ||
rainbowList.css({ | |||
'backgroundColor': 'orange' | 'backgroundColor': 'orange' | ||
}); | }); | ||
}); | }); |