1$(document).ready(function(){ 2 /* Elemento Lighbox */ 3 $(document).delegate('*[data-toggle="lightbox"]', 'click', function(event) { 4 event.preventDefault(); 5 $(this).ekkoLightbox({ 6 loadingMessage: 'Carregando...', 7 always_show_close: false 8 }); 9 }); 10 /* Gallery */ 11 $('#main-conteudo').lightGallery({ 12 thumbnail: true, 13 share: false, 14 animateThumb: false, 15 showThumbByDefault: false, 16 selector: '.gallery-item' 17 }); 18 /* Pesquisa Links Uteis */ 19 /* Function que transforma tag html IMG em SVG */ 20 $('img.svg').each(function(){ 21 var $img = $(this); 22 var imgID = $img.attr('id'); 23 var imgClass = $img.attr('class'); 24 var imgURL = $img.attr('src'); 25 jQuery.get(imgURL, function(data) { 26 var $svg = $(data).find('svg'); 27 if(typeof imgID !== 'undefined') { 28 $svg = $svg.attr('id', imgID); 29 } 30 if(typeof imgClass !== 'undefined') { 31 $svg = $svg.attr('class', imgClass+' replaced-svg'); 32 } 33 $svg = $svg.removeAttr('xmlns:a'); 34 if(!$svg.attr('viewBox') && $svg.attr('height') && $svg.attr('width')) { 35 $svg.attr('viewBox', '0 0 ' + $svg.attr('height') + ' ' + $svg.attr('width')) 36 } 37 $img.replaceWith($svg); 38 }, 'xml'); 39 }); 40 // $(function(){ 41 // $("#filtro input").keyup(function(){ 42 // var index = $(this).parent().index(); 43 // var nth = "#filtro .linksUteis:nth-child("+(index+1).toString()+")"; 44 // var valor = $(this).val().toUpperCase(); 45 // $("#filtro .links_filtro ").show(); 46 // $(nth).each(function(){ 47 // if($(this).text().toUpperCase().indexOf(valor) < 0){ 48 // $(this).parent().hide(); 49 // } 50 // }); 51 // }); 52 53 // $("#filtro input").blur(function(){ 54 // $(this).val(""); 55 // }); 56 // }); 57 58 $('.row-galeria').owlCarousel({ 59 items:3.5, 60 loop:true, 61 center:true, 62 stagePadding: 0, 63 margin:0, 64 nav:true, 65 dots:false, 66 responsive:{ 67 1200:{ 68 items:3.5, 69 stagePadding: 10, 70 margin:20, 71 nav:true 72 }, 73 768:{ 74 items:2, 75 stagePadding: 18, 76 margin:20, 77 nav:true 78 }, 79 480:{ 80 items:2, 81 stagePadding: 10, 82 margin:20, 83 nav:true 84 }, 85 0:{ 86 items:1.1, 87 stagePadding: 0, 88 center:false, 89 loop:false, 90 margin:20, 91 nav:true 92 } 93 94 95 } 96 }); 97 98 $('.row-links').owlCarousel({ 99 items:4, 100 navContainer:$('.col-nav'), 101 nav:true, 102 dots:false, 103 margin:30, 104 responsive:{ 105 1200:{ 106 items:4, 107 }, 108 768:{ 109 items:3, 110 nav:true, 111 dots:false 112 }, 113 700:{ 114 items:2, 115 nav:false, 116 dots:true 117 }, 118 480:{ 119 items:2, 120 nav:false, 121 dots:true 122 }, 123 0:{ 124 items:1, 125 nav:false, 126 dots:true 127 } 128 } 129 }); 130 131 $('#fecharPopUP').on('click', function() { 132 $('#banner-popup').remove(); 133 // var date = new Date(); 134 // date.setTime(date.getTime() + (60 * 1000 * 30)); /* 30 minutos */ 135 // $.cookie("popUpClose", "true", { expires: date }); 136 }); 137 138 $(".item-convenios").on('click', function() { 139 //alert('Hit disparado.'); 140 codDoc = $(this).data('codigo'); 141 $.ajax({
142 url: "convenios_interna_hit.php?documento="+codDoc 143 }); 144 }); 145 146 $(".item-download").on('click', function() { 147 //alert('Hit disparado.'); 148 codDoc = $(this).data('codigo'); 149 $.ajax({ 150 url: "downloads_interna_hit.php?documento="+codDoc 151 }); 152 }); 153 154 /* Contador Documento */ 155 $('.item-licitacao-interna').on('click', function(){ 156 codDoc = $(this).data('codigo'); 157 $.ajax({ 158 url: "licitacao_interna_hit.php?documento="+codDoc 159 }); 160 }); 161 162 $(".item-licitacao").on('click', function() { 163 //alert('Hit disparado.'); 164 codDoc = $(this).data('codigo'); 165 $.ajax({ 166 url: "licitacao_interna_hit.php?documento="+codDoc 167 }); 168 }); 169 170 window.ImprimirSite = window.ImprimirSite || {}; 171 window.ImprimirSite.printContent = function (id, urlserver, titulo, subititulo, data_atual) { 172 let w = $(window).width(); 173 let h = $(window).height(); 174 let meio_w = w / 2; 175 let meio_h = h / 2; 176 let altura = 768; 177 let largura = 1024; 178 let altura2 = altura / 2; 179 let largura2 = largura / 2; 180 let meio1 = meio_h - altura2; 181 let meio2 = meio_w - largura2; 182 let str = $("#" + id).html(); 183 184 let newwin = window.open('', 'printwin', `left=${meio2},top=${meio1},width=${largura},height=${altura}`); 185 186 let content = ` 187 <html> 188 <head> 189 <base href="${urlserver}" /> 190 <style> 191 .content-header-print { margin-bottom: 20px; } 192 table { font-family: Arial, sans-serif; border-collapse: collapse; width: 100%; color: black; } 193 thead { background-color: black !important; } 194 th { color: #FFF; text-align: center; } 195 td:nth-child(1), th:nth-child(1) { width: 30%; } 196 td:nth-child(2), th:nth-child(1) { width: 40%; } 197 td:nth-child(3), th:nth-child(1) { width: 30%; } 198 td, th { border: 1px solid #DDDDDD; padding: 8px; } 199 tr:nth-child(even) { background-color: #dddddd; } 200 a { color: #000000; text-decoration: none; } 201 </style> 202 <script> 203 function chkstate() { 204 if (document.readyState === "complete") { 205 window.close(); 206 } else { 207 setTimeout(chkstate, 2000); 208 } 209 } 210 function print_win() { 211 window.print(); 212 chkstate(); 213 } 214 </script> 215 <title>${subititulo} > ${titulo}</title> 216 </head> 217 <body style="background:none;" onload="print_win()"> 218 <div class="content-header-print">${subititulo} - ${titulo} ${data_atual}</div> 219 ${str} 220 </body> 221 </html> 222 `; 223 224 newwin.document.write(content); 225 newwin.document.close(); 226 } 227 228});
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.