|
|
Line 270: |
Line 270: |
|
| |
|
| /* </pre> */ | | /* </pre> */ |
|
| |
| /****************************** Common Gradient ******************************/
| |
| $(function(){
| |
| /* Deal with non-transparent headers */
| |
| var grad_transparent = $(document.createElement('span')).css('background-color'); /* Transparent Calculated Color*/
| |
| $('tr:not(:has(td))').not('.rainbow').children('th').each(function(){
| |
| var grad_color = $(this).css('background-color') || $(this).parent().css('background-color');
| |
| if(grad_transparent != grad_color){ /* If bgcolor is not transparent */
| |
| $(this).css('background-image', ['linear-gradient(to bottom', '#eee', grad_color + ')'].join(','));
| |
| }
| |
| });
| |
| });
| |