1$ = jQuery.noConflict(); 2 3$(document).ready(function () { 4 5 chamarCSS(); 6 delimitarEspacoSubtitulosListaManuaisECartilhas(); 7 8 function chamarCSS() { 9 var protocolo = window.location.protocol; 10 var host = window.location.host; 11 12 var linkCss = protocolo + '//' + host + '/assets/css/publicacoes-saber-cooperar.css'; 13 14 $('head').append('<link rel="stylesheet" type="text/css" href="' + linkCss + '">'); 15 } 16 17 function delimitarEspacoSubtitulosListaManuaisECartilhas() { 18 $('.lista-saber-cooperar') 19 .children('.sppb-addon-content') 20 .children('.sppb-row') 21 .children('.sppb-col-sm-3') 22 .children('.sppb-addon-article') 23 .children('.sppb-article-info-wrap') 24 .each(function () { 25 26 var titulo = $(this) 27 .children('h3').children('a') 28 .text(); 29 30 var texto = $(this) 31 .children('.sppb-article-introtext') 32 .text(); 33 34 if (titulo.length <= 25) { 35 36 $(this) 37 .children('.sppb-article-introtext') 38 .text(limitarTextoArtigo(texto, 150)); 39 40 $(this) 41 .children('h3').children('a') 42 .css('height', '1rem'); 43 44 $(this) 45 .children('.sppb-article-introtext') 46 .css('height', '6rem'); 47 48 } 49 50 if (titulo.length > 25 && titulo.length <= 45) { 51 $(this) 52 .children('.sppb-article-introtext') 53 .text(limitarTextoArtigo(texto, 120)); 54 55 $(this) 56 .children('h3').children('a') 57 .css('height', '2.5rem'); 58 59 $(this) 60 .children('.sppb-article-introtext') 61 .css('height', '4.3rem'); 62 63 } 64 65 if (titulo.length > 40 && titulo.length <= 85) { 66 $(this) 67 .children('.sppb-article-introtext') 68 .text(limitarTextoArtigo(texto, 85)); 69 70 $(this) 71 .children('h3').children('a') 72 .css('height', '2.8rem'); 73 74 $(this) 75 .children('.sppb-article-introtext') 76 .css('height', '4rem'); 77 78 } 79 80 if (titulo.length > 60 && titulo.length <= 80) { 81 $(this) 82 .children('.sppb-article-introtext') 83 .text(limitarTextoArtigo(texto, 60)); 84 85 $(this) 86 .children('h3').children('a') 87 .css('height', '4rem'); 88 89 $(this) 90 .children('.sppb-article-introtext') 91 .css('height', '2.8rem'); 92 93 } 94 95 if (titulo.length >= 80) { 96 $(this) 97 .children('.sppb-article-introtext') 98 .text(limitarTextoArtigo(texto, 0)); 99 $(this) 100 .children('h3').children('a') 101 .css('height', '6.5rem'); 102 } 103 104 }); 105 } 106 107 function limitarTextoArtigo(texto, tamanhoTexto) { 108 109 var textoReduzido = texto.slice(0, tamanhoTexto); 110 111 return textoReduzido; 112 } 113});
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.