1$ = jQuery.noConflict(); 2$(document).ready(function () { 3 if (($(location).attr('href').indexOf('sistema-ocb') >= 0) || ($(location).attr('href').indexOf('sistema-oceb'))){ 4 var protocolo = window.location.protocol; 5 var host = window.location.host; 6 var linkCss = protocolo + '//' + host + '/assets/css/sistemaocb.css'; 7 $('head').append('<link rel="stylesheet" type="text/css" href="' + linkCss + '">'); 8 9 $('#t4-masthead').remove(); 10 $('.page-header').remove(); 11 $('.article-aside').remove(); 12 $('.jllikeproSharesContayner').hide(); 13 $('#t4-header').addClass("header-sistema-ocb"); 14 $('#t4-main-body').addClass("body-sistema-ocb"); 15 $('.t4-content').addClass("content-sistema-ocb"); 16 $('.page-link').remove(); 17 18 /*var itens = 0; 19 $('.content-linha-tempo').children('.newsflash').children('.mod-articlesnews__item').each(function(){ 20 if(itens > 0) 21 $(this).hide(); 22 itens++; 23 $(this).addClass('box-ano box-ano-'+itens); 24 }); 25 26 var ultimoItem = itens; 27 var itens = 0; 28 var html = '<div class="dots-anos offset-4 offset-sm-1 offset-md-2 offset-lg-3 offset-xl-3 offset-xxl-4">'; 29 $('.content-linha-tempo').children('.newsflash').children('.mod-articlesnews__item').children('.newsflash-title').each(function(){ 30 itens++; 31 var ativo = ''; 32 var bar = '<div class="bar'+ativo+' bar-'+itens+'"></div>'; 33 34 if(itens == (ultimoItem-1)) 35 bar = '<div class="bar-ultimo'+ativo+' bar-'+itens+'"></div>'; 36 37 if(itens < 2) 38 ativo = '-ativo'; 39 40 if($(this).text().trim() == 'Atualmente') 41 bar = ''; 42 html = html+'<div class="dots'+ativo+' dot-'+itens+'" data-id="'+itens+'"></div><span class="ano'+ativo+' ano-'+itens+'">'+$(this).text().trim()+'</span>'+bar; 43 }); 44 html = html + '</div><div class="clearfix"> </div>'; 45 46 $('.content-linha-tempo').children('.newsflash').children('.mod-articlesnews__item').each(function(){ 47 var html = '<h4 class="newsflash-title">'+$(this).children('.newsflash-title').html()+'</h4>'; 48 $(this).children('.newsflash-title').remove(); 49 $(this).children('.container-fluid').each(function(){ 50 if($(this).children('.container').children('.row').children('.col-12').text().trim() == ""){ 51 $(this).remove(); 52 } 53 }); 54 $(this).children('.container-fluid').children('.container').children('.row').children('.col-12').each(function(){ 55 if($(this).html().trim() != ""){ 56 $(this).prepend(html); 57 } 58 }) 59 }); 60 61 $('.titulo-historia-sistema-ocb').after(html); 62 63 $('.dots').click(function(){ 64 var idElement = $(this).data('id'); 65 $('.box-ano').hide(); 66 $('.box-ano-'+idElement).show(); 67 68 $('.dots-ativo').removeClass('dots-ativo').addClass('dots'); 69 $('.bar-ultimo-ativo').removeClass('bar-ultimo-ativo').addClass('bar-ultimo'); 70 $('.bar-ativo').removeClass('bar-ativo').addClass('bar'); 71 $('.ano-ativo').removeClass('ano-ativo').addClass('ano'); 72 73 $('.dots').each(function(){ 74 if($(this).data('id') <= idElement){ 75 $('.dot-'+$(this).data('id')).removeClass('dots').addClass('dots-ativo'); 76 $('.ano-'+$(this).data('id')).removeClass('ano').addClass('ano-ativo'); 77 78 if($('.bar-'+($(this).data('id')-1)).hasClass('bar-ultimo')) 79 $('.bar-'+($(this).data('id')-1)).removeClass('bar-ultimo').addClass('bar-ultimo-ativo'); 80 else 81 $('.bar-'+($(this).data('id')-1)).removeClass('bar').addClass('bar-ativo'); 82 } 83 }); 84 }); 85 86 $('.dot-1').click(function(){ 87 88 $('.box-ano').hide(); 89 $('.dots-ativo').removeClass('dots-ativo').addClass('dots'); 90 $('.bar-ultimo-ativo').removeClass('bar-ultimo-ativo').addClass('bar-ultimo'); 91 $('.bar-ativo').removeClass('bar-ativo').addClass('bar'); 92 $('.ano-ativo').removeClass('ano-ativo').addClass('ano'); 93 94 $('.box-ano-1').show(); 95 $('.dot-1').removeClass('dots').addClass('dots-ativo'); 96 $('.ano-1').removeClass('ano').addClass('ano-ativo'); 97 });*/ 98 99 $('.content-linha-tempo').append( 100 '<div class="control">' + 101 '<div class="prev-slider-gen"><i class="fa fa-angle-left"></i></div>' +
102 '<div class="next-slider-gen"><i class="fa fa-angle-right"></i></div>' + 103 '</div>' 104 ); 105 106 $('.prev-slider-gen').click(function () { 107 if ($('.dots-ativo').last().data('id') != 1) { 108 $('.dots-ativo').last().prev().prev().prev().click(); 109 } 110 }); 111 112 $('.next-slider-gen').click(function () { 113 if ($('.dots').first().data('id') != (ultimoItem + 1)) { 114 $('.dots').first().click(); 115 } 116 }); 117 118 mudarPasso(7); 119 120 } 121});
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.