PageSourceSearch

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

js somoscooperativismo-ba.coop.br collected 2026-10-08 10:59:53 UTC 3,600 bytes, 66 lines download raw bytes

1$ = jQuery.noConflict();
2$(document).ready(function () {
3    if(
4        $(location).attr('href').indexOf('&id=117') >= 0
5    ){
6        var protocolo = window.location.protocol;
7        var host = window.location.host;
8        var linkCss = protocolo+ '//' + host + '/assets/css/transparencia_ocb.css';
9        $('head').append('<link rel="stylesheet" type="text/css" href="'+linkCss+'">');
10        
11        $('.item-101').removeClass('item-101');
12        $('.page-header').remove();
13        $('.article-aside').remove();       
14        $('.pagenavigation').remove();
15        $('.jllikeproSharesContayner').hide();
16
17        $('#t4-main-body').addClass("body-pagina-transparencia-ocb");
18
19        var arrBreadcrumbs = $('.breadcrumb').children();
20        var breadcrumbs = arrBreadcrumbs[0].innerHTML+arrBreadcrumbs[1].innerHTML;
21        var crumbs = arrBreadcrumbs.length;        
22
23        for(itens = 3; itens < crumbs; itens++)
24            breadcrumbs = breadcrumbs + arrBreadcrumbs[itens].innerHTML;
25
26        $('.breadcrumb').html(breadcrumbs);
27
28        $.get('/index.php?option=com_transparencia_ocb&view=relatriostransparenciaocbs', function(data){
29            var dados = data.split('<tbody>')[1].split('</tbody>')[0];
30            var linhas = dados.split('<tr');
31            var html = '<div class="row"> ';
32            var boxes = 0;
33            $.each(linhas, function(index, value){
34                if(typeof value.split('<td') != 'undefined'){                    
35                    var colunas = value.split('<td');
36                    if(typeof colunas[2] != 'undefined'){
37                        boxes++;
38                        html = html + '<div class="col-3 cards-relatorio-transparencia-ocb">';
39                        var ano = colunas[2].split('>')[1].split('<')[0];
40                        var linkYoutbe = (colunas[3].split('>')[1].split('<')[0].indexOf('v=') >= 0) ? colunas[3].split('>')[1].split('<')[0].split('v=')[1] : '';
41                        var arquivos = (colunas[4].indexOf('<div class="col-12">') >= 0) ? colunas[4].split('<div class="col-12">')[1].split('</div>')[0] : '';
42
43                                              
44                        html = html + '<div class="link-youtube"><iframe width="290" height="160" src="https://www.youtube.com/embed/'+linkYoutbe+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>';
45                        html = html + '<div class="ano">'+ano+'</div>';
46                        html = html + '<div class="arquivos">'+arquivos+'</div>';
47                        html = html + '</div>';
48                    }
49                }
50            });
51            html = html + '</div>';
52            
53            $('.transparencia-obc-relatorios-content').html(html);
54        }).then(function(){
55            $('.cards-relatorio-transparencia-ocb .arquivos a').attr('target','_blank').append('<i class="fas fa-arrow-alt-to-bottom"></i>');
56            $('.cards-relatorio-transparencia-ocb .arquivosInvertido a').attr('target','_blank').append('<i class="fas fa-arrow-alt-to-bottom"></i>');
57            $('.cards-relatorio-transparencia-ocb .arquivos a').addClass('botao-azul');
58            $('.botao-azul').on('mouseover',function(){
59                $(this).children('.fa-arrow-alt-to-bottom').css('color','#2EDCFF');
60            });
61            $('.botao-azul').on('mouseout',function(){
62                $(this).children('.fa-arrow-alt-to-bottom').css('color','#002EBF');
63            });
64        });
65    }
66});

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.