PageSourceSearch

https://itabaiana.se.gov.br/assets/js/main.min.js

js itabaiana.se.gov.br collected 2026-10-02 11:42:30 UTC 11,857 bytes, 1 lines download raw bytes

1"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then(function(registration){}).catch(function(err){});var PostContentManager=function(){function PostContentManager(initElement){this._epTwitter="https://publish.twitter.com/oembed?url=",this._epIntagram="https://api.instagram.com/oembed?url=";var thisClass=this;$(initElement).each(function(i){thisClass.extractDataElement($(this));var ObjAtual=$(this).parent();if(ObjAtual.addClass("social-embed"),"facebook"==thisClass.dataElement.fonte){var embed=document.createElement("div");embed.className="fb-"+thisClass.dataElement.tipo,embed.setAttribute("data-href",thisClass.dataElement.src),embed.setAttribute("data-width","489"),embed.setAttribute("data-allowfullscreen","false"),embed.setAttribute("data-show-text","true");var iframe=document.createElement("embed");iframe.src="https://www.facebook.com/plugins/post.php?href="+encodeURI(thisClass.dataElement.src_ref)+"&width=489&show_text=true",iframe.width="489",iframe.height="489",iframe.setAttribute("style","border:none;overflow:hidden"),iframe.setAttribute("target","_top"),iframe.setAttribute("scrolling","no"),iframe.setAttribute("allowfullscreen","false"),iframe.setAttribute("allowTransparency","true"),embed.appendChild(iframe),thisClass.factoryEmbed(ObjAtual,embed)}else if("pdf"==thisClass.dataElement.fonte){var object=document.createElement("object");object.data=thisClass.dataElement.src,object.type="application/pdf",thisClass.checkSuportPDF()&&(object.className="box_post-pdf");var objectP=document.createElement("p"),objectPStrong=document.createElement("strong"),objectPStrongText=document.createTextNode("Seu navegador não suporta a exibição do PDF. ");objectPStrong.appendChild(objectPStrongText);var objectA=document.createElement("a");objectA.href=thisClass.dataElement.src,objectA.target="_blank";var objectAText=document.createTextNode("Clique aqui para fazer o download/baixar o PDF.");objectA.appendChild(objectAText),objectPStrong.appendChild(objectA),objectP.appendChild(objectPStrong),object.appendChild(objectP),thisClass.factoryEmbed(ObjAtual,object)}else"twitter"==thisClass.dataElement.fonte?thisClass.getResultAjax(ObjAtual,thisClass.factoryEndPoint(thisClass.dataElement.src)):"instagram"==thisClass.dataElement.fonte&&thisClass.getResultAjax(ObjAtual,thisClass.factoryEndPoint(thisClass.dataElement.src))})}return PostContentManager.prototype.checkSuportPDF=function(){return void 0!==navigator.mimeTypes["application/pdf"]||!!(window.ActiveXObject||"ActiveXObject"in window)&&function(){return!(!this.createAXO("AcroPDF.PDF")&&!this.createAXO("PDF.PdfCtrl"))}()},PostContentManager.prototype.createAXO=function(type){var ax;try{ax=new ActiveXObject(type)}catch(e){ax=null}return ax},PostContentManager.prototype.getEndPointTwitter=function(){return this._epTwitter},PostContentManager.prototype.getEndPointInstagram=function(){return this._epIntagram},PostContentManager.prototype.factoryEndPoint=function(add){var url;return"twitter"==this.dataElement.fonte?url=this.getEndPointTwitter():"instagram"==this.dataElement.fonte&&(url=this.getEndPointInstagram()),url+encodeURI(add)},PostContentManager.prototype.extractDataElement=function(element){this.dataElement={fonte:element.attr("data-fonte"),tipo:element.attr("data-tipo"),src:element.attr("src"),src_ref:element.attr("data-src")}},PostContentManager.prototype.getResultAjax=function(local,url){if(url){var thisClass=this;$.ajax({url:url,dataType:"jsonp",async:!1,success:function(e){thisClass.factoryEmbed(local,e.html)}})}},PostContentManager.prototype.factoryEmbed=function(local,embed){embed&&local.html(embed)},PostContentManager}();function attrDefault($el,data_var,default_val){return void 0!==$el.data(data_var)?$el.data(data_var):default_val}$(function($){"use strict";$('[data-toggle="tooltip"]').tooltip(),$(".back-to-top").on("click",function(event){event.preventDefault(),$("html, body").animate({scrollTop:0},"slow")}),"function"==typeof $.fn.inputmask&&$("[data-mask]").each(function(i,el){var $this=$(el),mask=$this.data("mask").toString(),opts={numericInput:attrDefault($this,"numeric",!1),radixPoint:attrDefault($this,"radixPoint",""),rightAlignNumerics:"right"==attrDefault($this,"numericAlign","left"),regex:""},placeholder=attrDefault($this,"placeholder",""),is_regex=attrDefault($this,"isRegex","");switch(placeholder.length&&(opts[placeholder]=placeholder),mask.toLowerCase()){case"cpf":mask="999.999.999-99";break;case"cnpj":mask="99.999.999/9999-99";break;case"phone":mask="(999) 9999-9999";break;case"celphone":mask="(999) 999999-9999";break;case"contato_telefone":mask=["(99) 9999-9999","(99) 99999-9999"];break;case"cpf_cnpj":mask=["999.999.999-99","99.999.999/9999-99"];break;case"currency":case"rcurrency":var sign=attrDefault($this,"sign","$");mask="999.999.999,99","rcurrency"==$this.data("mask").toLowerCase()?mask+=" "+sign:mask=sign+" "+mask,opts.numericInput=!0,opts.rightAlignNumerics=!1,opts.radixPoint=".";break;case"email":mask="Regex",opts.regex="[a-zA-Z0-9._%-]+@[a-zA-Z0-9-.]+\\.[a-zA-Z]{2,4}";break;case"number":mask="Regex",opts.regex="[0-9]+";break;case"fdecimal":mask="decimal",$.extend(opts,{autoGroup:!0,groupSize:3,radixPoint:attrDefault($this,"rad","."),groupSeparator:attrDefault($this,"dec",",")})}is_regex&&(opts.regex=mask,mask="Regex"),$this.inputmask(mask,opts)})}),$(".menu-topo-nav ul.navbar-nav li.dropdown").hover(function(){var $this=$(this);1350<$(window).width()&&($this.find(".dropdown-menu").stop(!0,!0).delay(100).fadeIn(300),$this.stop(!0,!0).delay(200).addClass("show"),$this.find(".dropdown-toggle").stop(!0,!0).delay(100).attr("aria-expanded","true"))},function(){var $this=$(this);1350<$(window).width()&&($this.find(".dropdown-menu").stop(!0,!0).delay(100).fadeOut(300),$this.stop(!0,!0).delay(200).removeClass("show"),$this.find(".dropdown-toggle").stop(!0,!0).delay(100).attr("aria-expanded","fal
1se"))}),$(window).scroll(function(){200<$(window).scrollTop()?$("#back-to-top").addClass("show"):$("#back-to-top").removeClass("show")});var btn=$("#back-to-top-acessibilidade");btn.on("click",function(e){e.preventDefault(),$("html, body").animate({scrollTop:0},"300")}),$("select[rel='select_link']").change(function(e){$(this).find("option:selected").each(function(){var url=$(this).attr("data-link");""!=url&&"#"!=url&&(location.href=url)})});var embedSocialPost=new PostContentManager(".box_post p embed");$("#btn-contraste").on("click",function(e){$("body").hasClass("contraste")?$("body").removeClass("contraste"):$("body").addClass("contraste")}),$(document).ready(function(){$(".corpo")[0].setAttribute("id","irConteudo")});var FuncAcessibilidade={init:function(alt,key,text){if(alt)switch(key){case 48:this.checkShowMenu()?this.hideMenu():this.showMenu();break;case 49:location.href="#irConteudo";break;case 50:location.href="#irMenu";break;case 51:this.sendToTop(),$("#input-busca").focus();break;case 52:location.href="#irRodape";break;case 53:location.href="/texto/5/acessibilidade";break;case 54:location.href="/mapa";break;case 55:location.href="/informacao";break;case 56:$("body").removeClass("contraste");break;case 57:$("body").addClass("contraste")}else switch(text){case"+":this.addZoom();break;case"-":this.removeZoom(!1);break;case"=":this.removeZoom(!0)}},getElement:function(){return $("#box_acessibilidade")},sendToTop:function(){$("html, body").animate({scrollTop:0},300)},getMenuAltura:function(){var largura=$(window).width();return 769<=largura&&largura<=991?620:largura<769?1050:580},showMenu:function(){this.getElement().animate({marginTop:"0px"},200),this.getElement().attr("data-isshow","yes")},hideMenu:function(){this.getElement().animate({marginTop:"-"+this.getMenuAltura()+"px"},200),this.getElement().attr("data-isshow","no")},checkShowMenu:function(){return"yes"==this.getElement().attr("data-isshow")},getNivelZoom:function(){return parseInt($("body").attr("data-zoom"))},getLimiteZoom:function(){return 5},addZoom:function(){var nivelZoom=this.getNivelZoom();if(nivelZoom<this.getLimiteZoom()){var novoNivelZoom=nivelZoom+1;$("body").attr("data-zoom",novoNivelZoom)}},removeZoom:function(clear){var nivelZoom=this.getNivelZoom();if(0<nivelZoom){var novoNivelZoom=0;clear||(novoNivelZoom=nivelZoom-1),$("body").attr("data-zoom",novoNivelZoom)}}};function aumentarFonte(){$("*").each(function(){var fonteAtual,$this=$(this);0!=(fonteAtual=parseInt($this.css("fontSize")))&&$this.css({"font-size":fonteAtual+1+"px"})})}function reduzirFonte(){$("*").each(function(){var fonteAtual,$this=$(this);0!=(fonteAtual=parseInt($this.css("fontSize")))&&$this.css({"font-size":fonteAtual-1+"px"})})}function initMapa(mapId,options){if(options.gps.lat&&options.gps.lng){var myLatlng=new google.maps.LatLng(options.gps.lat,options.gps.lng),myOptions={zoom:15,center:myLatlng,mapTypeId:google.maps.MapTypeId.ROADMAP,mapTypeControl:!0,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.HORIZONTAL_BAR,position:google.maps.ControlPosition.BOTTOM_CENTER}},contentHtml=options.titulo+"</br>"+options.endereco;""!=options.complemento&&(contentHtml+=options.complemento),contentHtml+="</br>"+options.cidade+" - "+options.estado+" - "+options.bairro+"</br>CEP: "+options.cep+"</br>"+options.email+"</br>"+options.telefone;var map_1=new google.maps.Map(document.getElementById(mapId),myOptions),infowindow_1=new google.maps.InfoWindow({content:contentHtml}),marker_1=new google.maps.Marker({position:myLatlng,map:map_1,icon:options.icon,title:options.titulo});google.maps.event.addListener(marker_1,"click",function(){infowindow_1.open(map_1,marker_1)})}}var thisUrlAlert=window.location.href.split("#"),modalAlerta=null;if(thisUrlAlert[1]){switch(thisUrlAlert[1]){case"newsletter_inscrito":modalAlerta="NewsletterInscricao";break;case"newsletter_confirmado":modalAlerta="NewsletterConfirmada";break;case"newsletter_invalido":modalAlerta="NewsletterInvalido";break;case"contato_enviado":modalAlerta="ContatoEnviado";break;
1case"curriculo_enviado":modalAlerta="CurriculoEnviado";break;case"voto_computado":modalAlerta="VotoComputado"}modalAlerta&&($("#alerta"+modalAlerta).modal("show"),location.href="#")}function previewImage(obj){var $this=$(obj),localPreview=$this.attr("data-preview"),idInput=$this.attr("id");if(obj.files&&obj.files[0]){var reader=new FileReader;reader.onload=function(e){$("#"+idInput+"_"+localPreview).attr("src",e.target.result)},reader.readAsDataURL(obj.files[0]),$("button[data-action='previewCancel'][data-input-file='"+idInput+"']").show()}}function eventoBannerLgpd(){var termoAceito=localStorage.getItem("lgpd-aceito"),bannerLgpd=document.getElementById("lgpd-banner");document.getElementById("lgpd-banner-botao").addEventListener("click",function(e){localStorage.setItem("lgpd-aceito",!0),bannerLgpd.classList.remove("show")}),termoAceito&&"true"==termoAceito||bannerLgpd.classList.add("show")}function eventoAcessoRapido(){var btn=document.getElementById("acesso-rapido-servicos-btn"),obj=document.getElementsByClassName("acesso-rapido-servicos")[0];btn&&btn.addEventListener("click",function(e){obj.classList.contains("open")?obj.classList.remove("open"):obj.classList.add("open")})}function abrirBusca(){$("#modalBusca").modal("toggle")}$('form[data-no-submit-enter="s"]').on("keyup keypress",function(e){var keyCode=e.keyCode||e.which,$this=$(this);if(13===keyCode)return e.preventDefault(),"s"==$this.attr("data-init-recaptcha")&&grecaptcha.execute(),!1}),$("input[type='file']").change(function(){$(this).attr("data-preview")&&previewImage(this)}),$("button[data-action='previewCancel']").hide().on("click",function(){var idInput=$(this).attr("data-input-file"),localPreview=$(this).attr("data-preview"),objImage=$("#"+idInput+"_"+localPreview);$("#"+idInput).val(""),objImage.attr("src",$(this).attr("data-atual")),$(this).hide()}),window.addEventListener("load",eventoBannerLgpd),eventoAcessoRapido();

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.