1$ = jQuery.noConflict(); 2$(document).ready(function () { 3 var url = $(location).attr('href'); 4 var splitUrl = url.split('/').reverse(); 5 6 if( 7 splitUrl[1] === 'solucoes-coop' 8 && ( 9 splitUrl[0] === 'esgcoop' 10 || splitUrl[0] === 'conexaocoop' 11 ) 12 ){ 13 $ = jQuery.noConflict(); 14 15 aplicandoCss(); 16 adicionandoClassesControle(); 17 gerarTagDestaque(); 18 reposicionarItensMeta(); 19 limitarInfoWrap(); 20 21 22 function aplicandoCss() { 23 var protocolo = window.location.protocol; 24 var host = window.location.host; 25 26 var linkCss = protocolo + '//' + host + '/assets/css/components/noticias-geral.css'; 27 $('head').append('<link rel="stylesheet" type="text/css" href="' + linkCss + '">'); 28 } 29 30 31 32 function adicionandoClassesControle(){ 33 //$('title').html('Sescoop - Serviço Nacional de Aprendizagem do Cooperativismo'); 34 $("#t4-header").addClass('header-sescoop'); 35 $("#t4-main-body").addClass('body-sescoop'); 36 $(".t4-content").addClass('content-sescoop'); 37 38 var sectionNoticiasId = '#section-id-k3Cdn4kNNxVnueVQialNH'; 39 40 $(sectionNoticiasId+' .sppb-column .sppb-addon').first().addClass('noticia-destaque').addClass('destaque'); 41 /*$(sectionNoticiasId+' .sppb-column .sppb-addon').addClass('destaque');*/ 42 $(sectionNoticiasId+' .sppb-column .sppb-addon:not(.noticia-destaque)').addClass('artigo-item'); 43 $(sectionNoticiasId+' .sppb-column .sppb-addon.artigo-item').first().addClass('destaque'); 44 } 45 46 function gerarTagDestaque(){ 47 $('.destaque').before('<div class="tag-destaque">Destaque</div>'); 48 } 49 50 function reposicionarItensMeta(){ 51 var dataPublicacao = $('.sppb-article-meta').children()[0]; 52 var categoriaArtigo = $('.sppb-article-meta').children()[1]; 53 $('.sppb-article-meta').children().remove(); 54 $('.sppb-article-meta').append(categoriaArtigo, dataPublicacao); 55 } 56 57 function limitarInfoWrap(){ 58 $('.sppb-article-info-wrap') 59 .children('h3') 60 .children('a').each(function (key, data) { 61 62 }); 63 } 64 } 65});
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.