1(function ($) { 2 "use strict"; 3 4 /*------------------------------------- 5 Popup 6 -------------------------------------*/ 7 var yPopup = $(".popup-youtube"); 8 if (yPopup.length) { 9 yPopup.magnificPopup({ 10 disableOn: 700, 11 type: 'iframe', 12 mainClass: 'mfp-fade', 13 removalDelay: 160, 14 preloader: false, 15 fixedContentPos: false 16 }); 17 } 18 19 if ($('.elv-zoom-single').length) { 20 $('.elv-zoom-single').magnificPopup({type: 'image'}); 21 } 22 23 if ($('.zoom-gallery').length) { 24 $('.zoom-gallery').each(function () { // the containers for all your galleries 25 $(this).magnificPopup({ 26 delegate: 'a.elv-zoom', // the selector for gallery item 27 type: 'image', 28 gallery: { 29 enabled: true 30 } 31 }); 32 }); 33 } 34 35 /*------------------------------------- 36 jQuery MeanMenu activation code 37 --------------------------------------*/ 38 $('nav#dropdown').meanmenu({siteLogo: "<a><img src='../images/pmsjc-white.png' alt='logo' class='img-fluid' style='width:130px;'></a>"}); 39 40 /*------------------------------------- 41 Wow js Active 42 -------------------------------------*/ 43 new WOW().init(); 44 45 /*------------------------------------- 46 Jquery Scollup 47 -------------------------------------*/ 48 $.scrollUp({ 49 scrollText: '<i class="fa fa-angle-double-up"></i>', 50 easingType: 'linear', 51 scrollSpeed: 900, 52 animation: 'fade' 53 }); 54 55 /*------------------------------------- 56 Circle Bars - Knob 57 -------------------------------------*/ 58 if (typeof($.fn.knob) != 'undefined') { 59 $('.knob.knob-nopercent').each(function () { 60 var $this = $(this), 61 knobVal = $this.attr('data-rel'); 62 $this.knob({ 63 'draw': function () { 64 } 65 }); 66 $this.appear(function () { 67 $({ 68 value: 0 69 }).animate({ 70 value: knobVal 71 }, { 72 duration: 2000, 73 easing: 'swing', 74 step: function () { 75 $this.val(Math.ceil(this.value)).trigger('change'); 76 } 77 }); 78 }, {accX: 0, accY: -150}); 79 }); 80 } 81 82 /*------------------------------------- 83 Window load function 84 -------------------------------------*/ 85 $(window).on('load', function () { 86 87 /*------------------------------------- 88 Page Preloader 89 -------------------------------------*/ 90 $('#preloader').fadeOut('slow', function () { 91 $(this).remove(); 92 }); 93 /*------------------------------------- 94 jQuery for Isotope initialization 95 -------------------------------------*/ 96 var $container = $('#isotope-container'); 97 if ($container.length > 0) { 98 var $isotope = $container.find('.featuredContainer').isotope({ 99 filter: '*', 100 animationOptions: { 101 duration: 750, 102 easing: 'linear', 103 queue: false 104 } 105 }); 106 $container.find('.isotope-classes-tab').on('click', 'a', function () { 107 var $this = $(this); 108 $this.parent('.isotope-classes-tab').find('a').removeClass('current'); 109 $this.addClass('current'); 110 var selector = $this.attr('data-filter'); 111 $isotope.isotope({ 112 filter: selector, 113 animationOptions: { 114 duration: 750, 115 easing: 'linear', 116 queue: false 117 } 118 }); 119 return false; 120 }); 121 } 122 }); 123 124 /*------------------------------------- 125 Auto height for product listing 126 -------------------------------------*/ 127 $(window).on('load resize', function() { 128 var wHeight = $(window).height(), 129 mLogoH = $('a.logo-mobile-menu').outerHeight(); 130 wHeight = wHeight - 50; 131 $('.mean-nav > ul').css('height', wHeight + 'px'); 132 headerNsliderResize(); 133 }); 134 135 /*------------------------------------- 136 Accordion 137 -------------------------------------*/ 138 var accordion = $('#accordion'); 139 accordion.children('.panel').children('.panel-collapse').each(function () { 140 if ($(this).hasClass('in')) { 141 $(this).parent('.panel').children('.panel-heading').addClass('active'); 142 } 143 }); 144 accordion.on('show.bs.collapse', function (e) { 145 $(e.target).prev('.panel-heading').addClass('active'); 146 }).on('hide.bs.collapse', function (e) { 147 $(e.target).prev('.panel-heading').removeClass('active'); 148 }); 149 150 /*------------------------------------- 151 Contact Form initiating 152 -------------------------------------*/ 153 var contactForm = $('#contact-form'); 154 if (contactForm.length) { 155 contactForm.validator().on('submit', function (e) { 156 var $this = $(this), 157 $target = contactForm.find('.form-response'); 158 if (e.isDefaultPrevented()) { 159 $target.html("<div class='alert alert-success'><p>Please select all required field.</p></div>"); 160 } else { 161 $.ajax({ 162 url: "vendor/php/contact-form-process.php", 163 type: "POST", 164 data: contactForm.serialize(), 165 beforeSend: function () { 166 $target.html("<div class='alert alert-info'><p>Loading ...</p></div>"); 167 }, 168 success: function (text) { 169 if (text == "success") { 170 $this[0].reset(); 171 $target.html("<div class='alert alert-success'><p>Message sent successfully.</p></div>"); 172 } else { 173 $target.html("<div class='alert alert-success'><p>
173" + text + "</p></div>"); 174 } 175 } 176 }); 177 return false; 178 } 179 }); 180 } 181 182 /*------------------------------------- 183 Google Map 184 -------------------------------------*/ 185 if ($('#googleMap').length) { 186 var initialize = function () { 187 var mapOptions = { 188 zoom: 15, 189 scrollwheel: false, 190 center: new google.maps.LatLng(-37.81618, 144.95692), 191 styles: [{ 192 stylers: [{ 193 saturation: -100 194 }] 195 }] 196 }; 197 var map = new google.maps.Map(document.getElementById("googleMap"), mapOptions); 198 var marker = new google.maps.Marker({ 199 position: map.getCenter(), 200 animation: google.maps.Animation.BOUNCE, 201 icon: 'img/map-marker.png', 202 map: map 203 }); 204 } 205 // Add the map initialize function to the window load function 206 google.maps.event.addDomListener(window, "load", initialize); 207 } 208 209 /*------------------------------------- 210 Carousel slider initiation 211 -------------------------------------*/ 212 $('.rc-carousel').each(function () { 213 var carousel = $(this), 214 loop = carousel.data('loop'), 215 items = carousel.data('items'), 216 margin = carousel.data('margin'), 217 stagePadding = carousel.data('stage-padding'), 218 autoplay = carousel.data('autoplay'), 219 autoplayTimeout = carousel.data('autoplay-timeout'), 220 smartSpeed = carousel.data('smart-speed'), 221 dots = carousel.data('dots'), 222 nav = carousel.data('nav'), 223 navSpeed = carousel.data('nav-speed'), 224 rXsmall = carousel.data('r-x-small'), 225 rXsmallNav = carousel.data('r-x-small-nav'), 226 rXsmallDots = carousel.data('r-x-small-dots'), 227 rXmedium = carousel.data('r-x-medium'), 228 rXmediumNav = carousel.data('r-x-medium-nav'), 229 rXmediumDots = carousel.data('r-x-medium-dots'), 230 rSmall = carousel.data('r-small'), 231 rSmallNav = carousel.data('r-small-nav'), 232 rSmallDots = carousel.data('r-small-dots'), 233 rMedium = carousel.data('r-medium'), 234 rMediumNav = carousel.data('r-medium-nav'), 235 rMediumDots = carousel.data('r-medium-dots'), 236 center = carousel.data('center'); 237 carousel.owlCarousel({ 238 loop: (loop ? true : false), 239 items: (items ? items : 4), 240 lazyLoad: true, 241 margin: (margin ? margin : 0), 242 autoplay: (autoplay ? true : false), 243 autoplayTimeout: (autoplayTimeout ? autoplayTimeout : 1000), 244 smartSpeed: (smartSpeed ? smartSpeed : 250), 245 dots: (dots ? true : false), 246 nav: (nav ? true : false), 247 navText: ['<i class="fa fa-angle-left" aria-hidden="true"></i>', '<i class="fa fa-angle-right" aria-hidden="true"></i>'], 248 navSpeed: (navSpeed ? true : false), 249 center: (center ? true : false), 250 responsiveClass: true, 251 responsive: { 252 0: { 253 items: (rXsmall ? rXsmall : 1), 254 nav: (rXsmallNav ? true : false), 255 dots: (rXsmallDots ? true : false) 256 }, 257 480: { 258 items: (rXmedium ? rXmedium : 2), 259 nav: (rXmediumNav ? true : false), 260 dots: (rXmediumDots ? true : false) 261 }, 262 768: { 263 items: (rSmall ? rSmall : 3), 264 nav: (rSmallNav ? true : false), 265 dots: (rSmallDots ? true : false) 266 }, 267 992: { 268 items: (rMedium ? rMedium : 5), 269 nav: (rMediumNav ? true : false), 270 dots: (rMediumDots ? true : false) 271 } 272 } 273 }); 274 }); 275 276 /*------------------------------------- 277 Jquery Stiky Menu at window Load 278 -------------------------------------*/ 279 $(window).on('scroll', function () { 280 var s = $('#sticker'), 281 w = $('body'), 282 h = s.outerHeight(), 283 windowpos = $(window).scrollTop(), 284 windowWidth = $(window).width(), 285 h3 = s.parent('#header-three'), 286 h2 = s.parent('#header-two'), 287 h1 = s.parent('#header-one'), 288 h1H = h1.find('.header-top-bar').outerHeight(), 289 topBar = s.prev('.header-top-bar'), 290 tempMenu; 291 if (windowWidth > 991) { 292 w.css('padding-top', ''); 293 var topBarH, mBottom = 0; 294 if (h3.length) { 295 topBarH = h = 1; 296 mBottom = 0; 297 } else if (h2.length) { 298 mBottom = h2.find('.main-menu-area').outerHeight(); 299 topBarH = w.find("#top-slider").outerHeight(); 300 topBarH = mBottom + topBarH; 301 } else if (h1.length) { 302 topBarH = topBar.outerHeight();
303 if (windowpos <= topBarH) { 304 if (h1.hasClass('header-fixed')) { 305 h1.css('top', '-' + windowpos + 'px'); 306 } 307 } 308 } 309 if (windowpos >= topBarH) { 310 if (h1.length || h3.length) { 311 s.addClass('stick'); 312 } 313 if (h1.length) { 314 if (h1.hasClass('header-fixed')) { 315 h1.css('top', '-' + topBarH + 'px'); 316 } else { 317 w.css('padding-top', h + 'px'); 318 } 319 } else if (h2.length) { 320 h2.addClass('hide-menu'); 321 tempMenu = h2.find('.main-menu-area').clone(); 322 tempMenu.addClass('temp-main-menu stick').attr("id", ''); 323 tempMenu.css({opacity: 0}); 324 if (h2.find('.temp-main-menu.stick').length == 0) { 325 h2.append(tempMenu); 326 h2.find('.temp-main-menu.stick').animate({opacity: 1}, 100); 327 } 328 if (h2.find('.temp-main-menu.stick').length > 1) { 329 h2.find('.temp-main-menu.stick').last().remove(); 330 } 331 } 332 } else { 333 s.removeClass('stick'); 334 if (h1.length) { 335 w.css('padding-top', 0); 336 } else if (h2.length) { 337 h2.removeClass('hide-menu'); 338 h2.find('.stick.temp-main-menu').remove(); 339 } 340 } 341 } 342 }); 343 344 function headerNsliderResize() { 345 var Hh1 = $('#header-one'), 346 wWidth = $(window).width(), 347 Hh1slider = Hh1.parents('#wrapper').find("#header-area-space"), 348 mHeight = Hh1.outerHeight(); 349 if (wWidth < 992) { 350 mHeight = $('body > .mean-bar').outerHeight(); 351 } 352 Hh1slider.css("margin-top", mHeight + 'px'); 353 } 354 355 var href = "https://pmsjc.es.gov.br/transparencia/"; 356 357 $(".btnEditais").click(function(e) { 358 $.ajax({ 359 url: 'setVar.php', 360 type: "POST", 361 data: { var: 'editais' }, 362 success: function(callback) { 363 window.open(href, '_blank'); 364 //window.location = href; 365 } 366 }); 367 }); 368 369 $(".btnOuvidoria").click(function(e) { 370 $.ajax({ 371 url: 'setVar.php', 372 type: "POST", 373 data: { var: 'ouvidoria' }, 374 success: function(callback) { 375 window.open(href, '_blank'); 376 //window.location = href; 377 } 378 }); 379 }); 380 381 $(".btnLicitacoes").click(function(e) { 382 $.ajax({ 383 url: 'setVar.php', 384 type: "POST", 385 data: { var: 'lics' }, 386 success: function(callback) { 387 //window.location = href; 388 window.open(href, '_blank'); 389 } 390 }); 391 }); 392 393 $(".btnLeis").click(function(e) { 394 $.ajax({ 395 url: 'setVar.php', 396 type: "POST", 397 data: { var: 'leis' }, 398 success: function(callback) { 399 window.open(href, '_blank'); 400 //window.location = href; 401 } 402 }); 403 }); 404 405 $(".btnJornal").click(function(e) { 406 $.ajax({ 407 url: 'setVar.php', 408 type: "POST", 409 data: { var: 'jornal a ordem' }, 410 success: function(callback) { 411 window.open(href, '_blank'); 412 //window.location = href; 413 } 414 }); 415 }); 416 417 $(".btnJOrdem").click(function(e) { 418 $.ajax({ 419 url: 'setVar.php', 420 type: "POST", 421 data: { var: 'jornal a ordem' }, 422 success: function(callback) { 423 window.open(href, '_blank'); 424 //window.location = href; 425 } 426 }); 427 }); 428 429 $("#lOrganica").click(function(e) { 430 window.open("files/lei-organica", "_blank"); 431 }); 432 433 $("#aumentar-fonte").click(function () { 434 var size = $("p").css('font-size'); 435 436 size = size.replace('px', ''); 437 size = parseInt(size) + 2; 438 439 $("p").animate({'font-size' : size + 'px'}); 440 return false;
441 }); 442 443 $("#diminuir-fonte").click(function () { 444 var size = $("p").css('font-size'); 445 446 size = size.replace('px', ''); 447 size = parseInt(size) - 2; 448 449 $("p").animate({'font-size' : size + 'px'}); 450 return false; 451 }); 452 453 454})(jQuery);
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.