Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.onload = function(){
- window.setInterval(
- function(){
- //função
- $.fn.gparent = function( recursion ){
- console.log( 'recursion: ' + recursion );
- if( recursion > 1 ) return $(this).parent().gparent( recursion - 1 );
- return $(this).parent();
- };
- //aplica css box
- $(".js-card-name:contains('›')").gparent(2).css({
- 'background-color' : '#000'
- });
- //aplica css titulo
- $( ".js-card-name:contains('›')" ).css({
- 'text-align': 'center',
- 'text-transform': 'uppercase',
- 'font-weight' : 'bolder',
- 'padding-top' : '5px',
- 'color' : '#fff',
- 'font-size' : '15px'
- });
- $( ".list-header-name-assist").gparent(2).css({
- 'opacity' : '0.7',
- });
- $( ".list-header-name-assist:contains('Programação')").gparent(2).css({
- 'background-color' : '#c6e9ff',
- 'opacity' : '1',
- });
- }, 500);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement