1function chamaajaxgrvprod1(){ 2 mandaajax = 0 3 if (document.getElementById('seu_nome').value==""){ 4 alert("Preencha o campo: Nome"); 5 document.getElementById('seu_nome').focus(); 6 mandaajax = 1; 7 return false 8 } 9 if (document.getElementById('seu_email').value==""){ 10 alert("Preencha o campo: E-mail"); 11 document.getElementById('seu_email').focus(); 12 mandaajax = 1; 13 return false 14 } 15 if (document.getElementById('seu_email').value.indexOf('@', 0) == -1 || document.getElementById('seu_email').value.indexOf('.', 0) == -1) { 16 alert("Favor preencher e-mail corretamente"); 17 document.getElementById('seu_email').focus(); 18 mandaajax = 1; 19 return false 20 } 21 if (document.getElementById('assunto').value==""){ 22 alert("Selecione o campo: assunto"); 23 document.getElementById('assunto').focus(); 24 mandaajax = 1; 25 return false 26 } 27 if (document.getElementById('mensagem').value==""){ 28 alert("Preencha o campo: Mensagem"); 29 document.getElementById('mensagem').focus(); 30 mandaajax = 1; 31 return false 32 } 33 34 if (mandaajax==0){ 35 emailempresa = document.getElementById('emailempresa').value; 36 emailempresa = emailempresa.replace(/ /g,"+"); 37 emailempresa = emailempresa.replace("@","<<->>"); 38 39 seu_nome = document.getElementById('seu_nome').value; 40 seu_nome = seu_nome.replace(/ /g,"+"); 41 42 seu_email = document.getElementById('seu_email').value; 43 seu_email = seu_email.replace(/ /g,"+"); 44 seu_email = seu_email.replace("@","<<->>"); 45 46 seu_telefone = document.getElementById('seu_telefone').value; 47 seu_telefone = seu_telefone.replace(/ /g,"+"); 48 49 assunto = document.getElementById('assunto').value; 50 assunto = assunto.replace(/ /g,"+"); 51 52 mensagem = document.getElementById('mensagem').value; 53 mensagem = mensagem.replace(/ /g,"+"); 54 55 linkcompleto = document.getElementById('linkcompleto').value; 56 linkcompleto = linkcompleto.replace(/ /g,"+"); 57 58 dados = "linkcompleto="+linkcompleto+"&emailempresa="+emailempresa+"&seu_nome="+seu_nome+"&seu_email="+seu_email+"&seu_telefone="+seu_telefone+"&mensagem="+mensagem+"&assunto="+assunto 59 var url="perfilemailgrv.php"
60 xmlHttp=GetXmlHttpObject(stateChangedtxthome) 61 xmlHttp.open("POST", url , true) 62 xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); 63 xmlHttp.send(dados) 64 } 65} 66 67 68function validacamposcome() { 69 if (document.getElementById('comentario').value==""){ 70 alert("Preencha o Comentario"); 71 document.getElementById('comentario').focus(); 72 return false 73 } 74 if (document.getElementById('chkTermosUso').checked == false){ 75 alert("Aceite os Termos "); 76 return false 77 } 78 if (document.getElementById('recaptcha_response_field').value==""){ 79 alert("Preencha"); 80 document.getElementById('recaptcha_response_field').focus(); 81 return false 82 } 83 return true 84} 85 86 87function stateChangedtxthome() { 88 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 89 var resultadoHTML = new String(); 90 resultadoHTML = xmlHttp.responseText; 91 if (resultadoHTML=="ok"){ 92 alert("Enviado com sucesso."); 93 document.getElementById('light').style.display='none'; 94 document.getElementById('fade').style.display='none'; 95 document.getElementById('emailempresa').value = ""; 96 document.getElementById('seu_nome').value = ""; 97 document.getElementById('seu_email').value = ""; 98 document.getElementById('seu_telefone').value = ""; 99 document.getElementById('assunto').value = ""; 100 document.getElementById('mensagem').value = ""; 101 } 102 } 103} 104function showRecaptcha(element) { 105 Recaptcha.create("6LeRnBEUAAAAAF54EHR-ABgFsPeUTAWG4v_I7unG", element, { 106 theme: "clean"}); 107 } 108 109 110 111function redirecionar2(pc_cidade,bairro,id_sub, id_cat){ 112 document.frm1.action = "guia-de-empresas-em-"+pc_cidade+"/"+bairro+"/"+id_cat+"/"+id_sub+"/"; 113 document.frm1.submit(); 114 } 115function createXMLHTTP(){ 116 var ajax; 117 118 try{ 119 ajax = new ActiveXObject("Microsoft.XMLHTTP"); 120 } 121 catch(e){ 122 try{ 123 ajax = new ActiveXObject("Msxml2.XMLHTTP"); 124 alert(ajax); 125 } 126 catch(ex){ 127 try{ 128 ajax = new XMLHttpRequest(); 129 } 130 catch(exc){ 131 alert("Esse browser nao tem recursos para uso do Ajax"); 132 ajax = null; 133 } 134 } 135 return ajax; 136 } 137 138 139 var arrSignatures = ["MSXML2.XMLHTTP.5.0", "MSXML2.XMLHTTP.4.0", 140 "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", 141 "Microsoft.XMLHTTP"]; 142 for (var i=0; i < arrSignatures.length; i++){ 143 try{ 144 var oRequest = new ActiveXObject(arrSignatures[i]); 145 return oRequest; 146 } 147 catch (oError){} 148 } 149 150 throw new Error("MSXML is not installed on your system."); 151 } 152 153function chamaAjax(acao){ 154 155 var ajax = createXMLHTTP(); 156 157 ajax.open("post","objIndex_bairro.php",true); 158 ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 159 ajax.onreadystatechange = function(){ 160 if (ajax.readyState == 4){ 161 if(acao == 1){ 162 document.getElementById("cidade").innerHTML = ajax.responseText; 163 } 164 if(acao == 2){ 165 document.getElementById("bairro").innerHTML = ajax.responseText; 166 } 167 if(acao == 3){ 168 document.getElementById("categoria").innerHTML = ajax.responseText; 169 } 170 } 171 } 172 if(acao == 2){ 173 ajax.send("acao=2&cidade="+document.frm0.cidade.value); 174 } 175 if(acao == 3){ 176 ajax.send("acao=3&cidade="+document.frm0.cidade.value+"&bairro="+document.frm0.bairro.value); 177 } 178 document.frm0.controle_combo.value = "cidade"; 179 document.frm0.submit(); 180} 181 182 183function botaoEnter(tecla, cidade){ 184 if(window.tecla) { 185 tecla = tecla.keyCode 186 } else if(tecla.which) { 187 tecla = tecla.which 188 } 189 if (tecla == 13){ 190 retornoPesquisar(cidade); 191 } 192} 193 194function retornoPesquisar(cidade){ 195 document.frm0.action = "https://www.encontrasp.com.br/busca/index.php"; 196 document.frm0.submit(); 197} 198function teclaEnter(tecla){ 199 if(navigator.appName == "Microsoft Internet Explorer"){ 200 tecla = tecla.keyCode; 201 }else{ 202 tecla = tecla.charCode; 203 } 204 if(tecla == 13){ 205 } 206} 207 208jQuery(function() { 209 jQuery.support.placeholder = false; 210 test = document.createElement('input'); 211 if('placeholder' in test) jQuery.support.placeholder = true; 212}); 213function tabenter(event,campo){ 214 var tecla = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode; 215 if (tecla==13) { 216 campo.focus(); 217 } 218} 219function tabentertab(event,opcao){ 220 var tecla = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode; 221 if (tecla==13) { 222 if (opcao=="0"){ 223 validacampos(); 224 } 225 if (opcao=="1"){ 226 validacamposlogin(); 227 } 228 } 229} 230function validacamposlogin(){ 231 if (document.getElementById('login').value==""){ 232 alert("Preencha: Login"); 233 document.getElementById('login').focus(); 234 return false 235 } 236 if (document.getElementById('senha2').value==""){ 237 alert("Preencha: Senha"); 238 document.getElementById('senha2').focus(); 239 return false 240 } 241 var tamanho = document.getElementById('senha2').value.length; 242 if(tamanho < 4){ 243 alert("A senha deve conter um minimo de 4 caracteres!"); 244 return false 245 } 246 chamaajaxloga() 247} 248function jacadastradologar(){ 249 document.getElementById('loginjacadastrado').style.display = ''; 250 document.getElementById('cadastro').style.display = 'none'; 251 document.getElementById('esqueceusenha').style.display = 'none'; 252} 253 254function loadRecaptchaScript(callback) { 255 if (typeof grecaptcha === 'undefined') { 256 var recaptchaScript = document.createElement('script'); 257 recaptchaScript.src = 'https://www.google.com/recaptcha/api.js?hl=pt-BR&render=explicit'; 258 recaptchaScript.async = true; 259 recaptchaScript.defer = true; 260 document.head.appendChild(recaptchaScript); 261 } 262} 263function novocadastro(){ 264 document.getElementById('cadastro').style.display = ''; 265 document.getElementById('loginjacadastrado').style.display = 'none'; 266 document.getElementById('esqueceusenha').style.display = 'none'; 267 268 loadRecaptchaScript(function() { 269 console.log('reCAPTCHA carregado.'); 270 }); 271} 272function chamavaliddor(){ 273 loadRecaptchaScript(function() { 274 console.log('reCAPTCHA carregado.'); 275 }); 276} 277 278var VarEemail = document.getElementById('email'); 279if (VarEemail) { 280 VarEemail.addEventListener('focus', function() { 281 if (!window.recaptchaWidgetId) { 282 window.recaptchaWidgetId = grecaptcha.render('divcaptcaah_novo', { 283 'sitekey': '6Lc47SYUAAAAALeknGfVWWDexsq_K8ht53OiH1uV', 284 'callback': recaptchaCallback 285 }); 286 } 287 }, { passive: true }); 288} 289 290var telefoneOrcamento = document.getElementById('email_orcamento'); 291if (telefoneOrcamento) { 292 telefoneOrcamento.addEventListener('focus', function() { 293 if (!window.recaptchaWidgetId) { 294 window.recaptchaWidgetId = grecaptcha.render('divcaptcaahorca', { 295 'sitekey': '6Lc47SYUAAAAALeknGfVWWDexsq_K8ht53OiH1uV', 296 'callback': recaptchaCallbackorca 297 }); 298 } 299 }, { passive: true }); 300} 301 302var emailparaResgate = document.getElementById('emailpararesgate'); 303if (emailparaResgate) { 304 emailparaResgate.addEventListener('focus', function() { 305 if (!window.recaptchaWidgetId) { 306 window.recaptchaWidgetId = grecaptcha.render('divcaptcaah_esq', { 307 'sitekey': '6Lc47SYUAAAAALeknGfVWWDexsq_K8ht53OiH1uV', 308 'callback': recaptchaCallback 309 }); 310 } 311 }, { passive: true }); 312} 313 314function recaptchaCallbackorca() { 315 $('#botao1').removeAttr('disabled'); 316}; 317 318function recaptchaCallback(response) { 319 console.log("reCAPTCHA solved:", response); 320} 321 322function esquecisenhas(){ 323 document.getElementById('esqueceusenha').style.display = ''; 324 document.getElementById('cadastro').style.display = 'none'; 325 document.getElementById('loginjacadastrado').style.display = 'none'; 326 loadRecaptchaScript(function() { 327 console.log('reCAPTCHA carregado.'); 328 }); 329} 330function validacamposesqueci(){ 331 if (document.getElementById('emailpararesgate').value==""){ 332 alert("Preencha: E-mail"); 333 document.getElementById('emailpararesgate').focus(); 334 return false 335 } 336 if (document.getElementById('emailpararesgate').value!=""){ 337 if (document.getElementById('emailpararesgate').value.indexOf('@', 0) == -1 || document.getElementById('emailpararesgate').value.indexOf('.', 0) == -1) { 338 alert("Preencha o E-mail"); 339 document.getElementById('emailpararesgate').focus(); 340 return false 341 } 342 } 343 document.formesqueci.submit(); 344} 345function escodedivi(){ 346 document.getElementById('errodetexto').style.display = 'none'; 347 removeClass(document.getElementById("email"), "jaexiste"); 348} 349function validacampos(){ 350 if (document.getElementById('apelido').value=="" || document.getElementById('apelido').value.length < 6){ 351 alert("Preencha: Nome"); 352 document.getElementById('apelido').focus(); 353 return false 354 } 355 if (document.getElementById('email').value=="" || document.getElementById('email').value.length < 6){ 356 alert("Preencha: E-mail"); 357 document.getElementById('email').focus(); 358 return false 359 } 360 if (document.getElementById('email').value.indexOf('@', 0) == -1 || document.getElementById('email').value.indexOf('.', 0) == -1) { 361 alert("Favor preencher e-mail corretamente"); 362 document.getElementById('email').focus(); 363 return false 364 } 365 if (document.getElementById('senha').value==""){ 366 alert("Preencha: Senha"); 367 document.getElementById('senha').focus(); 368 return false 369 } 370 var tamanho = document.getElementById('senha').value.length; 371 if(tamanho < 6){ 372 alert("A senha deve conter um minimo de 6 caracteres!"); 373 return false 374 } 375 var recaptchaResponse = document.getElementById('g-recaptcha-response').value; 376 if (recaptchaResponse === "" || recaptchaResponse === null) { 377 alert("Favor clicar em 'Eu não sou um robô'"); 378 return false;
379 } 380 chamaajax(); 381} 382var xmlHttp 383function chamaajax(){ 384 document.getElementById('idbotacaocadastra').style.display = 'none'; 385 document.getElementById('idbotacaoaguarde').style.display = ''; 386 var url="verificausuario.php?email="+document.getElementById('email').value; 387 xmlHttp=GetXmlHttpObject(stateChangedusu) 388 xmlHttp.open("GET", url , true) 389 xmlHttp.send(null) 390} 391function stateChangedusu() { 392 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 393 var resultadoHTML = new String(); 394 resultadoHTML = xmlHttp.responseText; 395 console.log("resultadoHTML " + resultadoHTML); 396 if (resultadoHTML=="Ok" || resultadoHTML==""){ 397 document.formregistre.submit(); 398 }else{ 399 document.getElementById('errodetexto').style.display = ''; 400 addClass(document.getElementById("email"), "jaexiste"); 401 document.getElementById('idbotacaocadastra').style.display = ''; 402 document.getElementById('idbotacaoaguarde').style.display = 'none'; 403 document.getElementById('errodetexto').innerHTML = resultadoHTML; 404 document.getElementById('email').value = ""; 405 return false; 406 } 407 408 } 409} 410function chamaajaxloga(){ 411 document.getElementById('idbotacaovaienter').style.display = 'none'; 412 document.getElementById('idbotacaoaguardeenter').style.display = ''; 413 414 document.getElementById('login').style.boxShadow = '0px 1px 3px #b3b3b3 inset'; 415 document.getElementById('senha2').style.boxShadow = '0px 1px 3px #b3b3b3 inset'; 416 var url="autenticacao.php"; 417 dados = "senha="+document.formlogin.senha.value+"&login="+document.formlogin.login.value; 418 xmlHttp=GetXmlHttpObject(stateChangedusulog) 419 xmlHttp.open("POST", url , true); 420 xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); 421 xmlHttp.send(dados) 422} 423function stateChangedusulog() { 424 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 425 var resultadoHTML = new String(); 426 resultadoHTML = xmlHttp.responseText; 427 if (resultadoHTML=="OK"){ 428 document.formlogin.action = 'painel/bemvindo.php'; 429 document.formlogin.submit(); 430 }else{ 431 document.getElementById('idbotacaovaienter').style.display = ''; 432 document.getElementById('idbotacaoaguardeenter').style.display = 'none'; 433 textttopadrao="Erro. Login ou senha inválido..."; 434 if (resultadoHTML=="login"){ 435 textttopadrao="Erro. Login inválido..."; 436 document.getElementById('login').style.boxShadow = '1px 1px 3px #FF0000 inset'; 437 }else if (resultadoHTML=="senha"){ 438 textttopadrao="Erro. senha inválida."; 439 document.getElementById('senha2').style.boxShadow = '1px 1px 3px #FF0000 inset'; 440 }else if (resultadoHTML=="inativo"){ 441 textttopadrao="Erro. Usuário aguardando confirmação de Cadastro."; 442 } 443 document.getElementById('errode').innerHTML = textttopadrao; 444 document.getElementById('mostraerro').style.display = ''; 445 document.getElementById('idbotacaocadastra').style.display = ''; 446 document.getElementById('idbotacaoaguarde').style.display = 'none'; 447 document.getElementById('login').value=="" 448 document.getElementById('senha2').value=="" 449 return false; 450 } 451 452 } 453} 454 455function chamavarficaselogado(){ 456 var url="verificaselogado.php"; 457 dados = "opcao=ccheck"; 458 xmlHttp=GetXmlHttpObject(stateChangedverlogado) 459 xmlHttp.open("POST", url , true); 460 xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); 461 xmlHttp.send(dados) 462} 463function stateChangedverlogado() { 464 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 465 var resultadoHTML = new String(); 466 resultadoHTML = xmlHttp.responseText; 467 document.getElementById('iddotopomenucad').innerHTML = resultadoHTML; 468 chamavarficaselogadomenu(); 469 } 470} 471 472function chamavarficaselogadomenu(){ 473 var url="verificaselogadomenu.php"; 474 dados = "opcao=ccheck"; 475 xmlHttp=GetXmlHttpObject(stateChangedverlogadomenu) 476 xmlHttp.open("POST", url , true); 477 xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); 478 xmlHttp.send(dados) 479} 480function stateChangedverlogadomenu() { 481 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 482 var resultadoHTML = new String(); 483 resultadoHTML = xmlHttp.responseText; 484 document.getElementById('divmenumobile').innerHTML = resultadoHTML; 485 } 486} 487 488 489function hasClass(ele,cls) { 490 return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)')); 491} 492function addClass(ele,cls) { 493 if (!this.hasClass(ele,cls)) ele.className += " "+cls; 494} 495function removeClass(ele,cls) { 496 if (hasClass(ele,cls)) { 497 var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)'); 498 ele.className=ele.className.replace(reg,' '); 499 } 500} 501function GetXmlHttpObject(handler) 502{ 503var objXmlHttp=null 504 505if (navigator.userAgent.indexOf("Opera")>=0) 506{ 507alert("This example doesn't work in Opera") 508return 509} 510if (navigator.userAgent.indexOf("MSIE")>=0) 511{ 512var strName="Msxml2.XMLHTTP" 513if (navigator.appVersion.indexOf("MSIE 5.5")>=0) 514{ 515strName="Microsoft.XMLHTTP" 516} 517try 518{ 519objXmlHttp=new ActiveXObject(strName) 520objXmlHttp.onreadystatechange=handler 521return objXmlHttp 522} 523catch(e) 524{ 525alert("Error. Scripting for ActiveX might be readOnly") 526return 527} 528} 529if (navigator.userAgent.indexOf("Mozilla")>=0) 530{ 531objXmlHttp=new XMLHttpRequest()
532objXmlHttp.onload=handler 533objXmlHttp.onerror=handler 534return objXmlHttp 535} 536} 537function redirecionar(bairro, id_cat){ 538 document.frm1.action = bairro+"/"+id_cat+"/"; 539 document.frm1.submit(); 540} 541function redirecionar2(bairro, id_sub, id_cat){ 542 document.frm1.action = bairro+"/"+id_cat+"/"+id_sub+"/"; 543 document.frm1.submit(); 544} 545function chamaajaxsoudono(){ 546 mandaajax = 0 547 if (document.getElementById('seu_nome_soudono').value==""){ 548 alert("Preencha o campo: Nome"); 549 document.getElementById('seu_nome_soudono').focus(); 550 mandaajax = 1; 551 return false 552 } 553 if (document.getElementById('seu_email_soudono').value==""){ 554 alert("Preencha o campo: E-mail"); 555 document.getElementById('seu_email_soudono').focus(); 556 mandaajax = 1; 557 return false 558 } 559 if (document.getElementById('seu_email_soudono').value.indexOf('@', 0) == -1 || document.getElementById('seu_email_soudono').value.indexOf('.', 0) == -1) { 560 alert("Favor preencher e-mail corretamente"); 561 document.getElementById('seu_email_soudono').focus(); 562 mandaajax = 1; 563 return false 564 } 565 if (document.getElementById('mensagem_soudono').value==""){ 566 alert("Preencha o campo: Mensagem"); 567 document.getElementById('mensagem_soudono').focus(); 568 mandaajax = 1; 569 return false 570 } 571 572 if (mandaajax==0){ 573 574 emailempresa = document.getElementById('emailempresa_soudono').value; 575 emailempresa = emailempresa.replace(/ /g,"+"); 576 emailempresa = emailempresa.replace("@","<<->>"); 577 578 seu_nome = document.getElementById('seu_nome_soudono').value; 579 seu_nome = seu_nome.replace(/ /g,"+"); 580 581 seu_email = document.getElementById('seu_email_soudono').value; 582 seu_email = seu_email.replace(/ /g,"+"); 583 seu_email = seu_email.replace("@","<<->>"); 584 585 seu_telefone = document.getElementById('seu_telefone_soudono').value; 586 seu_telefone = seu_telefone.replace(/ /g,"+"); 587 588 mensagem = document.getElementById('mensagem_soudono').value; 589 mensagem = mensagem.replace(/ /g,"+"); 590 591 linkcompleto = document.getElementById('linkcompleto_soudono').value; 592 linkcompleto = linkcompleto.replace(/ /g,"+"); 593 594 dados = "linkcompleto="+linkcompleto+"&emailempresa="+emailempresa+"&seu_nome="+seu_nome+"&seu_email="+seu_email+"&seu_telefone="+seu_telefone+"&mensagem="+mensagem 595 var url="soudonodestaempresagrv.php" 596 xmlHttp=GetXmlHttpObject(stateChangedtxsoudono) 597 xmlHttp.open("POST", url , true) 598 xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); 599 xmlHttp.send(dados) 600 } 601} 602function stateChangedtxsoudono() { 603 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 604 var resultadoHTML = new String(); 605 resultadoHTML = xmlHttp.responseText; 606 if (resultadoHTML=="ok"){ 607 alert("Enviado com sucesso."); 608 document.getElementById('lightdono').style.display='none'; 609 document.getElementById('fade').style.display='none'; 610 document.getElementById('emailempresa_soudono').value = ""; 611 document.getElementById('seu_nome_soudono').value = ""; 612 document.getElementById('seu_email_soudono').value = ""; 613 document.getElementById('seu_telefone_soudono').value = ""; 614 document.getElementById('mensagem_soudono').value = ""; 615 } 616 } 617} 618 619function confirmaaexcluempre(idemrpresssa){ 620 if (!window.confirm('Essa ação irá EXCLUIR esse estabelecimento direto do Banco de dados. Sugerimos que você altere os dados ou Reprove. \n\n Reprovar estabelecimento ele fica armazenado em nosso banco de dados mas não aparece no site, Excluir apaga o registro no banco de dados. \n\n Caso deseje continuar pressione OK')) { 621 window.alert('Operação Cancelada'); 622 return false 623 }else{ 624 document.formaprovadentro.idempresa.value=idemrpresssa; 625 document.formaprovadentro.acadoquefazer.value=8; 626 627 document.formaprovadentro.submit(); 628 } 629} 630function confirmaaexcluempreusuario(idemrpresssa){ 631 if (!window.confirm('Excluir Empresa \n\nEsta empresa será excluÃda e você não poderá mais encontrá-la. \n\nSe deseja confirmar a exclusão, clique no botão OK.')) { 632 window.alert('Operação Cancelada'); 633 return false 634 }else{ 635 document.formaprovadentro.idempresa.value=idemrpresssa; 636 document.formaprovadentro.acadoquefazer.value=8; 637 638 document.formaprovadentro.submit(); 639 } 640} 641function confirmaaexcluempredef(idemrpresssa){ 642 if (!window.confirm('ADMINISTRADOR - Essa ação irá EXCLUIR esse estabelecimento direto do Banco de dados. Sugerimos que você altere os dados ou Reprove. \n\n Reprovar estabelecimento ele fica armazenado em nosso banco de dados mas não aparece no site, Excluir apaga o registro no banco de dados. \n\n Caso deseje continuar pressione OK')) { 643 window.alert('Operação Cancelada'); 644 return false 645 }else{ 646 document.formaprovadentro.idempresa.value=idemrpresssa; 647 document.formaprovadentro.acadoquefazer.value=5; 648 649 document.formaprovadentro.submit(); 650 } 651} 652$(document).ready(function() { 653 $(document).keyup(function(e) { 654 if (e.keyCode == 27) { 655 fechamodallpropriprio(); 656 } 657 }); 658}); 659function fechamodallpropriprio(){ 660 qualemquestao = document.getElementById('lightativonomemento').value; 661 document.getElementById(''+qualemquestao+'').style.display='none'; 662 document.getElementById('fade').style.display='none'; 663 664} 665function enviapraexcluirusu(qualiddocabra){ 666 if (!window.confirm('TEM CERTEZA?')) { 667 window.alert('Operação Cancelada'); 668 return false 669 }else{ 670 $.ajax({ 671 type: "POST", 672 url: "painel/excluirusudel.php", 673 data: { 674 iddalinha: qualiddocabra, 675 qualiddocabra: qualiddocabra, 676 }, 677 success: function(data) { 678 document.getElementById("ruaid"+qualiddocabra+"").style.display='none'; 679 } 680 }); 681 } 682} 683 684function loadads() { 685 console.log("'loadads' function executed."); 686} 687 688 689function loadstatcounter() { 690 if (typeof grloadstatcounter === 'undefined') { 691 var loadstatcounterScript = document.createElement('script'); 692 loadstatcounterScript.src = 'https://www.statcounter.com/counter/counter.js'; 693 loadstatcounterScript.async = true; 694 loadstatcounterScript.defer = true; 695 document.head.appendChild(loadstatcounterScript); 696 if (typeof loadads === "function") { 697 loadads(); 698 } else {
699 console.log("'loadads' indefinida."); 700 } 701 } 702} 703 704 705window.onload = function() { 706 chamavarficaselogado(); 707 setTimeout(function() { 708 loadstatcounter(); 709 }, 800); 710};
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.