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>]]>
|
59
| <![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>]]>
|
74
| <![CDATA[<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-DJ0N9KCXK3');
</script>]]>
|
155
| <![CDATA[<script type='text/javascript'>var dropdown=new TINY.dropdown.init('dropdown', {id:'menu', active:'menuhover'});</script>]]>
|
220
| <![CDATA[<script>
function mascara(telefone){
if(telefone.value.length == 0)
telefone.value = '(' + telefone.value; //quando começamos a digitar, o script irá inserir um parênteses no começo do campo.
if(telefone.value.length == 3)
telefone.value = telefone.value + ') '; //quando o campo já tiver 3 caracteres (um parênteses e 2 números) o script irá inserir mais um parênteses, fechando assim o código de área.
}
</script>]]>
|
432
| <![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>]]>
|
664
| <![CDATA[<script>
(() => {
cookieConsent();
})();
</script>]]>
|