Advertisement
Guest User

Code for trello

a guest
Jan 22nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.onload = function(){
  2.  
  3.     window.setInterval(
  4.   function(){
  5.      //função
  6.   $.fn.gparent = function( recursion ){
  7.    console.log( 'recursion: ' + recursion );
  8.    if( recursion > 1 ) return $(this).parent().gparent( recursion - 1 );
  9.    return $(this).parent();
  10.  };
  11.  
  12. //aplica css box
  13. $(".js-card-name:contains('›')").gparent(2).css({
  14.   'background-color' : '#000'
  15. });
  16.  
  17. //aplica css  titulo
  18. $( ".js-card-name:contains('›')" ).css({
  19.   'text-align': 'center',
  20.   'text-transform': 'uppercase',
  21.   'font-weight' : 'bolder',
  22.   'padding-top' : '5px',
  23.   'color' : '#fff',
  24.   'font-size' : '15px'
  25. });
  26.  
  27.  
  28.   $( ".list-header-name-assist").gparent(2).css({
  29.   'opacity' : '0.7',
  30. });
  31.  
  32.   $( ".list-header-name-assist:contains('Programação')").gparent(2).css({
  33.   'background-color' : '#c6e9ff',
  34.     'opacity' : '1',
  35. });
  36.  
  37.  }, 500);
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement