PageSourceSearch

https://somoscooperativismo-ba.coop.br/assets/js/components/busca_lupa_nacional.js

js somoscooperativismo-ba.coop.br collected 2026-10-08 10:59:38 UTC 4,115 bytes, 68 lines download raw bytes

1$ = jQuery.noConflict();
2$(document).ready(function () {
3    var protocolo = window.location.protocol;
4    var host = window.location.host;
5    var linkCss = protocolo + '//' + host + '/assets/css/components/busca_lupa_nacional.css';
6    $('head').append('<link rel="stylesheet" type="text/css" href="' + linkCss + '">');
7    $('#section-id-1682671288220').removeClass('sppb-hidden-md');
8
9    $('.top-ocb .awesomplete').first().prepend('<i class="fa-solid lupa-direita">' +
10        '<svg id="Grupo_2536" data-name="Grupo 2536" xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 25 25">' +
11        '<path id="Caminho_26193" data-name="Caminho 26193" d="M1250.784,17.67a12.5,12.5,0,1,1-12.5-12.5,12.5,12.5,0,0,1,12.5,12.5" transform="translate(-1225.784 -5.17)" fill="#00166b"/>' +
12        '<path id="Caminho_26194" data-name="Caminho 26194" d="M1240.534,20.672a4.384,4.384,0,1,1,1.4-2.405" transform="translate(-1227.033 -6.477)" fill="none" stroke="#fff" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1"/>' +
13        '<line id="Linha_214" data-name="Linha 214" x2="3.846" y2="3.846" transform="translate(14.726 15)" fill="none" stroke="#fff" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1"/>' +
14        '</svg>' +
15        '</i>');
16    $('.logo-busca .awesomplete').first().prepend('<i class="fa-solid lupa-direita">' +
17        '<svg id="Grupo_2536" data-name="Grupo 2536" xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 25 25">' +
18        '<path id="Caminho_26197" data-name="Caminho 26193" d="M1250.784,17.67a12.5,12.5,0,1,1-12.5-12.5,12.5,12.5,0,0,1,12.5,12.5" transform="translate(-1225.784 -5.17)" fill="#00166b"/>' +
19        '<path id="Caminho_26198" data-name="Caminho 26194" d="M1240.534,20.672a4.384,4.384,0,1,1,1.4-2.405" transform="translate(-1227.033 -6.477)" fill="none" stroke="#fff" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1"/>' +
20        '<line id="Linha_214" data-name="Linha 214" x2="3.846" y2="3.846" transform="translate(14.726 15)" fill="none" stroke="#fff" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1"/>' +
21        '</svg>' +
22        '</i>');
23
24    $('input[name=q]').attr('placeholder', 'Digite o que você procura');
25
26    $('.lupa-direita').click(function () {
27        if (!$('.logo-busca input[name=q]').is(':visible') && !$('#sppb-addon-6zRiUpNP8XVsX_DN0GwUe input[name=q]').is(':visible')) {
28            if ($(this).parent().parent().parent().parent().parent().attr('id') == 'sppb-addon-1682671338325') {
29                var tamanho = $("#sp-menu").width() + "px";
30
31                if(($(window).width() < 992) && ($(window).width() > 576)) {
32                    tamanho = ($("#sp-logo").width() + 30) + "px";
33                } else if(($(window).width() < 576) && ($(window).width() > 500)) {
34                    tamanho = ($("#sp-logo").width() + 15) + "px";
35                } else if($(window).width() <= 500) {
36                    tamanho = $("#sp-logo").width() + "px";
37                }
38
39                $('.logo-busca input[name=q]').animate({width: tamanho}, function () {
40                    $('.logo-busca input[name=q]').css({
41                        'display': 'block',
42                        'width': tamanho
43                    });
44                });
45
46            }
47
48            if ($(this).parent().parent().parent().parent().parent().attr('id') == 'sppb-addon-6zRiUpNP8XVsX_DN0GwUe') {
49                $('.top-ocb input[name=q]').animate({width: "100%"}, function () {
50                    $('.top-ocb input[name=q]').css({
51                        'display': 'block',
52                        'width': '100%'
53                    });
54                });
55            }
56
57            return;
58        }
59
60        $('.logo-busca input[name=q]').animate({width: "100px"}, function () {
61            $('#sppb-addon-1682671338325 input[name=q]').css({'display': 'none'});
62        });
63
64        $('.top-ocb input[name=q]').animate({width: "100px"}, function () {
65            $('#sppb-addon-6zRiUpNP8XVsX_DN0GwUe input[name=q]').css({'display': 'none'});
66        });
67    });
68});

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.