script.js 663 B

1234567891011121314151617181920212223
  1. //оценочное время 120 мин
  2. //затраченное 30 мин
  3. $(document).ready(function (){
  4. $('table').css({
  5. 'margin' : 'auto',
  6. 'background' : '#eee',
  7. 'border-collapse' : 'collapse',
  8. 'border-spacing' : 0
  9. });
  10. $('td').css({
  11. 'border' : '1px solid #000',
  12. 'height' : '10px',
  13. 'width' : '10px'
  14. })
  15. $('tr:nth-child(-n+6)').css('background', '#106B63');
  16. $('tr:nth-child(n+7):nth-child(-n+9)').css('background', '#E7C610');
  17. $('tr:nth-child(n+10):nth-child(-n+12)').css('background', '#C64A08');
  18. $('tr:nth-child(n+13):nth-child(-n+19)').css('background', '#102173');
  19. $('.none').css({
  20. 'background' : '#fff',
  21. 'border' : 'none'
  22. })
  23. })