PageSourceSearch

https://somoscooperativismo-ba.coop.br/assets/js/cncoop_contribuicao_sindical.js

js somoscooperativismo-ba.coop.br collected 2026-10-08 11:00:29 UTC 6,424 bytes, 123 lines download raw bytes

1$ = jQuery.noConflict();
2$(document).ready(function () {
3    
4    var url = $(location).attr('href');
5    var splitUrl = url.split('/').reverse();
6    
7    $('#Mod157').remove();
8    $('#Mod158').remove();
9    
10    if( splitUrl[0] === 'contribuicao-sindical'){
11        var protocolo = window.location.protocol;
12        var host = window.location.host;
13        var linkCss = protocolo+ '//' + host + '/assets/css/cncoop_contribuicao_sindical.css';
14        $('head').append('<link rel="stylesheet" type="text/css" href="'+linkCss+'">');
15        
16        $('.item-101').removeClass('item-101');
17        $('.page-header').remove();
18        $('.article-aside').remove();       
19        $('.pagenavigation').remove();
20        $('#t4-main-body').addClass("body-contribuicao-sindical");
21        $('.event-container').remove()
22
23        var compartilharLink = '<svg class="compartilhar" title="Copiar Link" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 32 32">'+
24            '<g id="share" transform="translate(-172.918 -487.006)">'+
25            '<circle id="Elipse_142" data-name="Elipse 142" cx="16" cy="16" r="16" transform="translate(172.918 487.006)" fill="#160333" opacity="0.5"></circle>'+
26            '<path id="Icon_ionic-md-share" data-name="Icon ionic-md-share" d="M16.694,14.548a2.223,2.223,0,0,0-1.591.609L9.271,11.786a2.731,2.731,0,0,0,.082-.569,2.73,2.73,0,0,0-.082-.569l5.751-3.33a2.441,2.441,0,1,0-.775-1.787,2.715,2.715,0,0,0,.082.569L8.578,9.43a2.455,2.455,0,0,0-1.672-.65A2.415,2.415,0,0,0,4.5,11.218,2.455,2.455,0,0,0,8.619,13l5.791,3.371a2.038,2.038,0,0,0-.082.528,2.365,2.365,0,1,0,2.365-2.356Z" transform="translate(177.097 491.829)" fill="#fff"></path>'+
27            '</g>'+
28            '</svg>';
29        $('.likes-block_right').append(compartilharLink);      
30      
31
32
33        var artigos = 0;
34        $('.diario-oficial-da-uniao-mod .mod-articlesnews__item').each(function () {
35            $(this).children('.container-fluid').each(function () {
36                if ($(this).children('.container').children('.row').children('.col-12').text().trim() == "") {
37                    $(this).remove();
38                }
39            });
40
41            $(this).children('.container-fluid').html($(this).children('.container-fluid').children('.container').children('.row').children('.col-12').text().substr(0, 0) + '');
42
43            var url = $(this).children('.newsflash-title').children('a').attr('href');
44            $(this).append('<a href="' + url + '"><div class="baixar-dou">Baixar o DOU <i class="fas fa-arrow-alt-to-bottom"></i> </div></a>');
45            artigos++;
46        });
47        
48       
49        var artigos = 0;
50        $('.tabelas-anteriores-mod .mod-articlesnews__item').each(function () {
51            $(this).children('.container-fluid').each(function () {
52                if ($(this).children('.container').children('.row').children('.col-12').text().trim() == "") {
53                    $(this).remove();
54                }
55            });
56
57            $(this).children('.container-fluid').html($(this).children('.container-fluid').children('.container').children('.row').children('.col-12').text().substr(0, 0) + '');
58
59            var url = $(this).children('.newsflash-title').children('a').attr('href');
60            $(this).append('<a href="' + url + '"><div class="acesse">Acesse </div></a>');
61            artigos++;
62        });
63        
64        var dots = '';
65        for (x = 0; x < (artigos / 2); x++)
66            dots = dots + '<div class="dot-slider"></div>';
67        $('.tabelas-anteriores-mod').append(
68            '<div class="control">' +
69            '<div class="prev-slider-gen"><i class="fa fa-angle-left"></i></div>' +
70            '<div class="nextend-bullet-bar">' + dots + '</div>' +
71            '<div class="next-slider-gen"><i class="fa fa-angle-right"></i></div>' +
72            '</div>'
73        );
74        $('.tabelas-anteriores-mod .control .dot-slider').first().addClass('active');
75
76        $('.titulo-destaque').css("color", "#4965F2");
77
78        $('.titulo-tabelas-anteriores-mod').css("color", "#160333");
79        $('.titulo-tabelas-anteriores-mod').css("font-weight", "400");
80        
81        $('.tabelas-anteriores-mod .prev-slider-gen').click(function () {
82             console.log( $('.tabelas-anteriores-mod').children().children('.newsflash').children().length );
83            if (
84                $('.tabelas-anteriores-mod').children().children('.newsflash').children().length > 1
85                && $('.tabelas-anteriores-mod').children().children('.newsflash').children(':visible').length > 1
86            ) {
87                var setted = true;
88                $('.tabelas-anteriores-mod').children().children('.newsflash').children().each(function () {
89                    if ($(this).is(':visible') && setted) {
90                        $(this).hide();
91                        setted = false;
92                    }
93                });
94                if ($('.tabelas-anteriores-mod').children().children('.newsflash').children(':visible').length % 1 == 0) {
95                    var current = $(this).parent().children('.nextend-bullet-bar').children('.dot-slider.active');
96                    current = current.next().addClass('active');
97                    current.prev().removeClass('active');
98                }
99            }
100        });
101
102        $('.tabelas-anteriores-mod .next-slider-gen').click(function () {
103            if ($('.tabelas-anteriores-mod').children().children('.newsflash').children().length > 1) {
104                var setted = true;
105                $($('.tabelas-anteriores-mod').children().children('.newsflash').children().get().reverse()).each(function () {
106                    if ($(this).is(':hidden') && setted) {
107                        $(this).show();
108                        setted = false;
109                    }
110                });
111                if (
112                    $('.tabelas-anteriores-mod').children().children('.newsflash').children(':visible').length % 1 == 0
113                    || $('.tabelas-anteriores-mod').children().children('.newsflash').children(':visible').length % 1 == 1
114                ) {
115                    var current = $(this).parent().children('.nextend-bullet-bar').children('.dot-slider.active');
116                    current = current.prev().addClass('active');
117                    current.next().removeClass('active');
118                }
119            }
120        });
121
122    }
123});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.