34
| <![CDATA[<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-31700970-1', 'auto');
ga('send', 'pageview');
</script>]]>
|
45
| <![CDATA[<script language="JavaScript" type="text/javascript">
function setCookie(nome,valor,dias,caminho,dominio,seguro) {
var expires, date;
if (typeof dias == "number") {
date = new Date();
date.setTime( date.getTime() + (dias*24*60*60*1000) );
expires = date.toGMTString();
}
document.cookie = nome + "=" + escape(valor) +
((expires) ? "; expires=" + expires : "") +
((caminho) ? "; caminho=" + caminho : "") +
((dominio) ? "; dominio=" + dominio : "") +
((seguro) ? "; seguro" : "");
}
function pegarCookie(nome) {
var nomeq = nome + "=";
var c_ar = document.cookie.split(';');
for (var i=0; i<c_ar.length; i++) {
var c = c_ar[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nomeq) == 0) return unescape( c.substring(nomeq.length, c.length) );
}
return null;
}
function deletarCookie(nome,caminho,dominio) {
if (pegarCookie(nome)) {
document.cookie = nome + "=" +
((caminho) ? "; caminho=" + caminho : "") +
((dominio) ? "; dominio=" + dominio : "") +
"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}
var modificaTamanhoFonte = {
Unidade: "px",
TamanhoOriginal: 11,
TamanhoMaximo: 20,
TamanhoMinimo: 10,
Lista: [],
setDefaults: function(unit, dflt, mn, mx, sels) {
this.Unidade = unit; this.TamanhoOriginal = dflt;
this.TamanhoMaximo = mx; this.TamanhoMinimo = mn;
if (sels) this.set(dflt, mn, mx, sels);
},
set: function (dflt, mn, mx, sels) {
var ln = this.Lista.length;
for (var i=0; sels[i]; i++) {
this.Lista[ln+i] = [];
this.Lista[ln+i]["sel"] = sels[i];
this.Lista[ln+i]["dflt"] = dflt;
this.Lista[ln+i]["min"] = mn || this.TamanhoMinimo;
this.Lista[ln+i]["max"] = mx || this.TamanhoMaximo;
this.Lista[ln+i]["ratio"] = this.Lista[ln+i]["dflt"] / this.TamanhoOriginal;
}
},
init: function() {
if ( !document.getElementById || !document.getElementsByTagName ) return;
var tamanho, Modificador, i;
tamanho = window.location.search? window.location.search.slice(1): pegarCookie("fontSize");
tamanho = !isNaN( parseFloat(tamanho) )? parseFloat(tamanho): this.TamanhoOriginal;
if ( tamanho > this.TamanhoMaximo || tamanho < this.TamanhoMinimo ) tamanho = this.TamanhoOriginal;
this.curSize = this.TamanhoOriginal;
Modificador = document.getElementById('sizer');
if (Modificador) Modificador.style.display = "block";
if (this.Lista.length == 0) {
this.setDefaults( this.Unidade, this.TamanhoOriginal, this.TamanhoMinimo, this.TamanhoMaximo, ['body', 'td'] );
}
if ( tamanho != this.TamanhoOriginal ) this.adjust( tamanho - this.TamanhoOriginal );
},
adjust: function(n) {
if ( !this.curSize ) return;
var alist, tamanho, list, i, j;
if ( n > 0 ) {
if ( this.curSize + n > this.TamanhoMaximo ) n = this.TamanhoMaximo - this.curSize;
} else if ( n < 0 ) {
if ( this.curSize + n < this.TamanhoMinimo ) n = this.TamanhoMinimo - this.curSize;
}
if ( n == 0 ) return;
this.curSize += n;
alist = this.Lista;
for (i=0; alist[i]; i++) {
tamanho = this.curSize * alist[i]['ratio'];
tamanho = Math.max(alist[i]['min'], tamanho); tamanho = Math.min(alist[i]['max'], tamanho);
list = getElementsBySelector( alist[i]['sel'] );
for (j=0; list[j]; j++) { list[j].style.fontSize = tamanho + this.Unidade; }
}
setCookie( "fontSize", this.curSize, 180, "/" );
},
reset: function() {
var alist = this.Lista, list, i, j;
for (i=0; alist[i]; i++) {
list = getElementsBySelector( alist[i]['sel'] );
for (j=0; list[j]; j++) {
list[j].style.fontSize = '';
}
}
this.curSize = this.TamanhoOriginal;
deletarCookie("fontSize", "/");
}
}
function getElementsBySelector(selector) {
if (!document.getElementsByTagName) return [];
var nodeList = [document], tokens, bits, list, col, els, i, j, k;
selector = selector.normalize();
tokens = selector.split(' ');
for (i=0; tokens[i]; i++) {
if ( tokens[i].indexOf('#') != -1 ) {
bits = tokens[i].split('#');
var el = document.getElementById( bits[1] );
if (!el) return [];
if ( bits[0] ) {
if ( el.tagName.toLowerCase() != bits[0].toLowerCase() ) return [];
}
for (j=0; nodeList[j]; j++) {
if ( nodeList[j] == document || contained(el, nodeList[j]) )
nodeList = [el];
else return [];
}
continue;
} else if ( tokens[i].indexOf('.') != -1 ) {
bits = tokens[i].split('.'); col = [];
for (j=0; nodeList[j]; j++) {
els = getElementsByClassName( bits[1], bits[0], nodeList[j] );
for (k=0; els[k]; k++) { col[col.length] = els[k]; }
}
nodeList = [];
for (j=0; col[j]; j++) { nodeList.push(col[j]); }
continue;
} else {
els = [];
for (j = 0; nodeList[j]; j++) {
list = nodeList[j].getElementsByTagName(tokens[i]);
for (k = 0; list[k]; k++) { els.push(list[k]); }
}
nodeList = els;
}
}
return nodeList;
}
function getElementsByClassName(sClasse, sTag, oConta) {
var result = [], list, i;
var re = new RegExp("\\b" + sClasse + "\\b", "i");
oConta = oConta? oConta: document;
if ( document.getElementsByTagName ) {
if ( !sTag || sTag == "*" ) {
list = oConta.all? oConta.all: oConta.getElementsByTagName("*");
} else {
list = oConta.getElementsByTagName(sTag);
}
for (i=0; list[i]; i++)
if ( re.test( list[i].className ) ) result.push( list[i] );
}
return result;
}
function contained(oNo, oConta) {
if (!oNo) return;
while ( oNo = oNo.parentNode ) if ( oNo == oConta ) return true;
return false;
}
if (!Array.prototype.push) {
Array.prototype.push = function() {
for (var i=0; arguments[i]; i++) this[this.length] = arguments[i];
return this[this.length-1];
}
}
String.prototype.normalize = function() {
var re = /\s\s+/g;
return this.trim().replace(re, " ");
}
String.prototype.trim = function() {
var re = /^\s+|\s+$/;
return this.replace(re, "");
}
modificaTamanhoFonte.setDefaults( 'px', 11, 10, 20, ['body', 'td', 'div', 'p'] );
modificaTamanhoFonte.set(11, 11, 11, ['div#menu'] );
modificaTamanhoFonte.init();
</script>]]>
|
223
| <![CDATA[<script type="text/javascript" language="javascript">
function displaylayer(nameDiv,personal){
var nameDiv = document.getElementById(nameDiv);
if(personal.toLowerCase()=='on') nameDiv.style.display='';
else if (personal.toLowerCase()=='off') nameDiv.style.display='none';
else {
if(nameDiv.style.display == 'none') nameDiv.style.display='';
else nameDiv.style.display='none';
}
}
</script>]]>
|
264
| <![CDATA[<script type="text/javascript">
function validaFormInsc() {
if(document.getElementById('NMINSCRICAO') != null){ document.forminscricao.NMINSCRICAO.focus(); }
}
</script>]]>
|
280
| <![CDATA[<script>
new window.VLibras.Widget('https://vlibras.gov.br/app');
</script>]]>
|
285
| <![CDATA[<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/5e70b5c78d24fc2265881363/default';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
</script>]]>
|
364
| <![CDATA[<script type="text/javascript">
$(document).ready(function() {
$('a[name=modal]').click(function(e) {
e.preventDefault();
var id = $(this).attr('href');
var maskHeight = $(document).height();
var maskWidth = $(window).width();
$('#mask').css({'width': maskWidth, 'height': maskHeight});
$('#mask').fadeIn(1000);
$('#mask').fadeTo("slow", 0.8);
//Get the window height and width
var winH = $(window).height();
var winW = $(window).width();
$(id).css('top', winH / 2 - $(id).height() / 2);
$(id).css('left', winW / 2 - $(id).width() / 2);
$(id).fadeIn(2000);
});
/* $('.window .close').click(function (e) {*/
$('.window .close').click(function(e) {
e.preventDefault();
$('#mask').hide();
$('.window').hide();
window.location.href = '?pg=servicosonline';
});
/*$('#mask').click(function () {
$(this).hide();
$('.window').hide();
}); */
});
</script>]]>
|
456
| <![CDATA[<script type="text/javascript">
function new_window() {
JANELA = window.open('https://www.sefaz.feiradesantana.ba.gov.br:8080/sefaz.feira/serv_iptu_emissaoDAM_tela1.jsp', 'new', 'width=700,height=440,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}
</script>]]>
|
879
| <![CDATA[<script type="text/javascript">
function verificaDados() {
//var razao = $('#razao').val();
//var qtdRazao = razao.length;
var cpfCnpj = $('#cpfcnpj').val();
var qtdCpfCnpj = cpfCnpj.length;
if (qtdCpfCnpj === 0) { //qtdRazao === 0 ||
$("#Result").html('<div align="right"><table border="0" cellpadding="0" cellspacing="0"><tr><td><span style="font:12px Arial, Helvetica, sans-serif; color:#F00;"><strong>Preencha todos os campos.</strong></span> ; ;</td><td><a href="#" onclick="verificaDados();"><img src="imagens/alvaraOnline/avancar.png" border="0" /></a></td></tr></table></div>');
$('#razao').focus();
} else if (qtdCpfCnpj < 13) {
$("#Result").html('<div align="right"><table border="0" cellpadding="0" cellspacing="0"><tr><td><span style="font:12px Arial, Helvetica, sans-serif; color:#F00;"><strong>CNPJ Inválido.</strong></span> ; ;</td><td><a href="#" onclick="verificaDados();"><img src="imagens/alvaraOnline/avancar.png" border="0" /></a></td></tr></table></div>');
$('#cpfcnpj').focus();
} /*else if (qtdRazao === "") {
$("#Result").html('<div align="right"><table border="0" cellpadding="0" cellspacing="0"><tr><td><span style="font:12px Arial, Helvetica, sans-serif; color:#F00;"><strong>Preencha o campo.</strong></span> ; ;</td><td><a href="#" onclick="verificaDados();"><img src="imagens/alvaraOnline/avancar.png" border="0" /></a></td></tr></table></div>');
$('#razao').focus();
} */else {
$("#Result").html('<img src="imagens/159.gif" border="0" /> ; ; ;<span style="font:10px Arial, Helvetica, sans-serif; background:none !important; color:#555; border:none !important; ">Verificando dados. Aguarde por favor...</span>');
$.post('exec/exe_inexistenciaInscricao.php',
{
//POST_RAZAO: razao,
POST_CNPJ: cpfCnpj
}, function (comet) {
$("#inexistenciaOnline").html(comet);
});
}
}
function validaCertidao() {
var razao = $('#razaovalida').val();
var cnpj = $('#cnpjvalida').val();
var tipo = $('#tipo').val();
var ano = $('#ano').val();
var sequence = $('#sequence').val();
var dtValidade = $('#dtValidade').val();
var dtEmissao = $('#dtEmissao').val();
if (razao === "" || cnpj === "" || tipo === "" || ano === "") {
alert('Preencha todos os campos!');
} else {
$("#Result").html('<img src="imagens/159.gif" border="0" /> ; ; ;<span style="font:10px Arial, Helvetica, sans-serif; background:none !important; color:#555; border:none !important; ">Verificando dados. Aguarde por favor...</span>');
$.post('exec/exe_validaInexistencia.php',
{
POST_RAZAO: razao,
POST_CNPJ: cnpj,
POST_TIPO: tipo,
POST_ANO: ano,
POST_SEQUENCE: sequence,
POST_DTVALIDADE: dtValidade,
POST_DTEMISSAO: dtEmissao
}, function (comet) {
$("#Result").html(comet);
});
}
}
var semnome = false;
function Sem_Nome(){
console.log('aa');
if(semnome){
semnome = !semnome;
$('#razaovalida').val('');
$('#razaovalida').attr('readonly', false);
} else {
semnome = !semnome;
$('#razaovalida').val('XXXXXXXXXXXXXXXX');
$('#razaovalida').attr('readonly', true);
}
}
</script>]]>
|
1075
| <![CDATA[<script type="text/javascript">
function SlideDiv(Div) {
jQuery('#' + Div).slideToggle(300);
}
</script>]]>
|
1082
| <![CDATA[<script> SlideDiv('div_inexistencia'); </script>]]>
|