2
| <![CDATA[<script language="javascript">
// valida e-mail
function Valida_mail(campo,div) {
if (document.getElementById(campo).value != "") {
if (document.getElementById(campo).value.search(/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/) == -1) {
if(div){
document.getElementById(div).innerHTML = "<img src='https://www.cremesp.org.br/Templates/v200901/images/ico_correto.gif'>";
}
document.getElementById(campo).style.borderColor = "#FF0000";
document.getElementById(campo).style.backgroundImage = "none";
return false;
} else {
if(div){
document.getElementById(div).innerHTML = "<img src='https://www.cremesp.org.br/Templates/v200901/images/ico_correto.gif'>";
}
document.getElementById(campo).style.borderColor = "#7BB33A";
document.getElementById(campo).style.backgroundImage = "url(Templates/v200901/images/ico_correto.gif)";
document.getElementById(campo).style.backgroundRepeat="no-repeat";
document.getElementById(campo).style.backgroundPosition="center right";
document.getElementById(campo).style.paddingRight="15px";
return true;
}
} else {
if(div){
document.getElementById(div).innerHTML = "";
}
document.getElementById(campo).style.borderColor = "#CCCCCC";
document.getElementById(campo).style.backgroundImage = "none";
return false;
}
}
</script>]]>
|
37
| <![CDATA[<script language='JavaScript'>
function SomenteNumero(e){
var tecla=(window.event)?event.keyCode:e.which;
if((tecla > 47 && tecla < 58)) return true;
else{
if (tecla != 8 && tecla!=0) return false;
else return true;
}
}
//exemplo de uso
//<input type='text' onkeypress='return SomenteNumero(event)'>
</script>]]>
|
49
| <![CDATA[<script language='JavaScript'>
<!--
function validaCpf(s) {
var i;
var c = s.substr(0,9);
var dv = s.substr(9,2);
var d1 = 0;
for (i = 0; i < 9; i++) {
d1 += c.charAt(i)*(10-i);
}
if (d1 == 0) return false;
d1 = 11 - (d1 % 11);
if (d1 > 9) d1 = 0;
if (dv.charAt(0) != d1) {
return false;
}
d1 *= 2;
for (i = 0; i < 9; i++) {
d1 += c.charAt(i)*(11-i);
}
d1 = 11 - (d1 % 11);
if (d1 > 9) d1 = 0;
if (dv.charAt(1) != d1) {
return false;
}
return true;
}
function somente_numeros(evt)
{
var charCode = (evt.which) ? evt.which : evt.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57) && charCode != 37 && charCode != 39)
return false;
return true;
}
function validaForm() {
var ok = true;
var erro = ""
var qerro = 0;
var mensagem = ""
var cpf = document.Form.cpf.value;
if (cpf == "") {
qerro = qerro + 1
mensagem += (qerro + ". O CPF deve ser preenchido.\n");
document.Form.cpf.focus();
ok = false;
} else {
if (validaCpf(cpf) == false) {
qerro = qerro + 1
mensagem += (qerro + ". CPF Inválido, verifique se digitou corretamente.\n");
document.Form.cpf.focus();
ok = false;
}
}
if (ok == false) {
if (qerro > 1) {
alert("Atenção: Ocorreram " + qerro + " erros\n----------------------------------------------------------------------------------------------------\n" + mensagem + "----------------------------------------------------------------------------------------------------\nClique OK e tente novamente.");
} else {
alert("Atenção: Ocorreu " + qerro + " erro\n----------------------------------------------------------------------------------------------------\n" + mensagem + "----------------------------------------------------------------------------------------------------\nClique OK e tente novamente.");
}
return false;
} else if (ok == true) {
return true;
}
}
//-->
</script>]]>
|
122
| <![CDATA[<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>]]>
|
168
| <![CDATA[<script type="text/javascript">
jQuery(function($){
$("#data_cadastro").mask("99/99/9999");
$("#cep_cadastro").mask("99999-999");
$("#cpf_cadastro").mask("999.999.999-99");
$("#fixo_cadastro").mask("(99) 9999-9999");
$("#celular_cadastro").mask("(99) 99999-9999");
$("#placa_cadastro").mask("aaa-9*99");
$("#placa_cadastro_confirm").mask("aaa-9*99");
});
</script>]]>
|
181
| <![CDATA[<script type="text/javascript">
//mapeamento do google não remover
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23291907-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
//-----------------------------------------------------------
</script>]]>
|
197
| <![CDATA[<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-DJ0N9KCXK3');
</script>]]>
|
207
| <![CDATA[<script> //Mapeamento por Tags para Agência Publicidade
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MDNZFST');
</script>]]>
|
291
| <![CDATA[<script type='text/javascript'>var dropdown=new TINY.dropdown.init('dropdown', {id:'menu', active:'menuhover'});</script>]]>
|
427
| <![CDATA[<script>
function pureFadeIn(e,o){
var i=document.getElementById(e);
i.style.opacity=0,i.style.display=o||"block",function e(){
var o=parseFloat(i.style.opacity);
(o+=.02)>1||(i.style.opacity=o,requestAnimationFrame(e))
}();
}
function pureFadeOut(e){
var o=document.getElementById(e);
o.style.opacity=1,function e(){
(o.style.opacity-=.02)<0?o.style.display="none":requestAnimationFrame(e)
}()
}
function setCookie(e,o,i){
var t="";
if(i){
var n=new Date;
n.setTime(n.getTime()+24*i*60*60*1e3),t="; expires="+n.toUTCString()
}
document.cookie=e+"="+(o||"")+t+"; path=/"
}
function getCookie(e){
for(var o=e+"=",i=document.cookie.split(";"),t=0;t<i.length;t++){
for(var n=i[t];" "==n.charAt(0);)
n=n.substring(1,n.length);
if(0==n.indexOf(o))
return n.substring(o.length,n.length)
}
return null
}
function eraseCookie(e){
document.cookie=e+"=; Max-Age=-99999999;"
}
function purecookieDismiss(){
setCookie("purecookieDismiss","1",7),pureFadeOut("cookieConsentContainer")
}
function cookieConsent(){
getCookie("purecookieDismiss")||(document.querySelector(".cookieConsentContainer").classList.remove('hide'),pureFadeIn("cookieConsentContainer"))
}
</script>]]>
|
659
| <![CDATA[<script>
(() => {
cookieConsent();
})();
</script>]]>
|