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 41 $(".item-download").on('click', function() { 42 codDocL = $(this).data('codigo'); 43 $.ajax({
44 url: "downloads_interna_hit.php?documento=" + codDocL 45 }); 46 }); 47 48 $(".item-licitacao").on('click', function() { 49 codDocL = $(this).data('codigo'); 50 $.ajax({ 51 url: "licitacao_interna_hit.php?documento=" + codDocL 52 }); 53 }); 54 55 $(".item-documentos-listagem").on('click', function() { 56 codDocL = $(this).data('codigo'); 57 $.ajax({ 58 url: "documentos_listagem_hit.php?documentol=" + codDocL 59 }); 60 }); 61 62 $(".item-documento").on('click', function() { 63 codDoc = $(this).data('codigo'); 64 $.ajax({ 65 url: "documentos_interna_hit.php?documento=" + codDoc 66 }); 67 }); 68 69 // $('.row-galeria').owlCarousel({ 70 // items:4.5, 71 // loop:true, 72 // center:true, 73 // stagePadding: 0, 74 // margin:0, 75 // nav:true, 76 // dots:false, 77 // responsive:{ 78 // 1200:{ 79 // items:4.5, 80 // stagePadding: 10, 81 // margin:20, 82 // nav:true 83 // }, 84 // 991:{ 85 // items:3.5, 86 // stagePadding: 18, 87 // margin:20, 88 // nav:true 89 // }, 90 // 768:{ 91 // items:2, 92 // stagePadding: 18, 93 // margin:20, 94 // nav:true 95 // }, 96 // 480:{ 97 // items:2, 98 // stagePadding: 10, 99 // margin:20, 100 // nav:true 101 // }, 102 // 0:{ 103 // items:1.1, 104 // stagePadding: 0, 105 // center:false, 106 // loop:false, 107 // margin:20, 108 // nav:true 109 // } 110 111 112 // } 113 // }); 114 115 // $('.row-turismo').owlCarousel({ 116 // items:3.2, 117 // // navContainer:$('.col-nav'), 118 // nav:true, 119 // // center:true, 120 // dots:false, 121 // loop:true, 122 // margin:16, 123 // responsive:{ 124 // 1200:{ 125 // items:3.2, 126 // }, 127 // 768:{ 128 // items:2, 129 // }, 130 // 480:{ 131 // items:2, 132 // }, 133 // 0:{ 134 // items:2, 135 // } 136 // } 137 // }); 138 $('.galeria-fotos-slick').slick({ 139 slidesToShow:4.7, 140 slidesToScroll: 1, 141 centerMode:false, 142 centerPadding: '60px', 143 appendArrows:$('.gallery-box-arrows'), 144 autoplay: false, 145 autoplaySpeed: 2000, 146 responsive: [{ 147 breakpoint: 1400, 148 settings: { 149 slidesToShow: 3.7, 150 centerPadding: '60px', 151 152 } 153 },{ 154 breakpoint: 992, 155 settings: { 156 slidesToShow: 2.7, 157 centerPadding: '60px', 158 159 } 160 },{ 161 breakpoint: 768, 162 settings: { 163 slidesToShow: 2, 164 centerPadding: '40px', 165 166 } 167 },{ 168 breakpoint: 576, 169 settings: { 170 slidesToShow: 1, 171 centerMode:false 172 173 } 174 }] 175 176 }); 177 178 $('.row-servico-mobile').slick({ 179 slidesToShow: 3, 180 slidesToScroll: 1, 181 autoplay: true, 182 autoplaySpeed: 2000, 183 responsive: [ 184 { 185 breakpoint: 1200, 186 settings: { 187 slidesToShow: 2, 188 slidesToScroll: 1, 189 }, 190 }, 191 { 192 breakpoint: 1008, 193 settings: { 194 slidesToShow: 1, 195 slidesToScroll: 1, 196 }, 197 }, 198 { 199 breakpoint: 800, 200 settings: { 201 rows:2, 202 slidesToShow: 1, 203 slidesToScroll: 1 204 }, 205 }, 206 ], 207 }); 208 209 $('.servicos_sec_slick').slick({ 210 rows:2, 211 slidePerRow: 3, 212 slidesToShow: 3, 213 slidesToScroll: 1, 214 autoplay: true, 215 autoplaySpeed: 2000, 216 arrows:true, 217 dots: true, 218 nextArrow:$('.servicos_sec_arrows_next'), 219 prevArrow:$('.servicos_sec_arrows_prev'), 220 appendDots:$('.servicos_sec_dots'), 221 responsive: [ 222 { 223 breakpoint: 1200, 224 settings: { 225 slidesToShow: 2, 226 slidesToScroll: 1, 227 }, 228 }, 229 { 230 breakpoint: 1008, 231 settings: { 232 slidesToShow: 1, 233 slidesToScroll: 1, 234 }, 235 }, 236 { 237 breakpoint: 800, 238 settings: { 239 rows:2, 240 slidesToShow: 1, 241 slidesToScroll: 1 242 }, 243 }, 244 ], 245 }); 246 $('.row-turismo-principal').slick({ 247 slidesToShow: 1, 248 slidesToScroll: 1,
249 arrows: false, 250 fade: true, 251 asNavFor: '.row-turismo' 252 }); 253 $('.row-turismo').slick({ 254 slidesToShow: 3, 255 slidesToScroll: 1, 256 margin:10, 257 margin: '10px', 258 asNavFor: '.row-turismo-principal', 259 dots: false, 260 centerMode: false, 261 focusOnSelect: false, 262 responsive: [ 263 { 264 breakpoint: 1200, 265 settings: { 266 slidesToShow: 3, 267 slidesToScroll: 1, 268 }, 269 }, 270 { 271 breakpoint: 1008, 272 settings: { 273 slidesToShow: 1, 274 slidesToScroll: 1, 275 }, 276 }, 277 { 278 breakpoint: 1008, 279 settings: { 280 slidesToShow: 1, 281 slidesToScroll: 1, 282 autoplay: true, 283 autoplaySpeed: 6000, 284 }, 285 }, 286 ], 287 }); 288 289 $('.row-links').owlCarousel({ 290 items:4, 291 // navContainer:$('.col-nav'), 292 loop:true, 293 nav:true, 294 dots:false, 295 margin:30, 296 responsive:{ 297 1200:{ 298 items:4, 299 }, 300 768:{ 301 items:3, 302 }, 303 480:{ 304 items:2, 305 }, 306 0:{ 307 items:1, 308 } 309 } 310 }); 311 $('.conselhos-servicos-slick').slick({ 312 slidesToShow: 4, 313 slidesToScroll: 1, 314 arrows: false, 315 dots: true, 316 // appendArrows: $('#conselhos-slick-controles'), 317 autoplay: true, 318 responsive: [{ 319 breakpoint: 1200, 320 settings: { 321 slidesToShow: 4, 322 slidesToScroll: 1, 323 }, 324 }, 325 { 326 breakpoint: 992, 327 settings: { 328 slidesToShow: 3, 329 slidesToScroll: 1, 330 }, 331 }, 332 { 333 breakpoint: 768, 334 settings: { 335 rows: 2, 336 slidesToShow: 2, 337 slidesToScroll: 1 338 }, 339 }, { 340 breakpoint: 575, 341 settings: { 342 rows: 3, 343 slidesToShow: 1, 344 slidesToScroll: 1 345 }, 346 } 347 ], 348 }); 349});
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.