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