129
| <![CDATA[<script type="text/javascript">
$("input[placeholder]").each(function () {
var $this = $(this);
if($this.val() == ""){
$this.val($this.attr("placeholder")).focus(function(){
if($this.val() == $this.attr("placeholder")) {
$this.val("");
}
}).blur(function(){
if($this.val() == "") {
$this.val($this.attr("placeholder"));
}
});
}
});
<!--
$(function(){
$("#formContato").validate({
errorElement: 'div',
errorClass: 'form-error',
rules: {
'data[Contato][nome]': {
required: true
},
'data[Contato][email]': {
required: true,
email: true
},
'data[Contato][fone]': {
required: true
},
'data[Contato][assunto]': {
required: true
},
'data[Contato][msg]': {
required: false
}
},
messages: {
"data[Contato][nome]": {
required: 'Informe seu nome'
},
"data[Contato][email]": {
required: 'Informe seu e-mail de contato',
email: 'Digite um e-mail válido'
},
"data[Contato][fone]": {
required: 'Informe um telefone para Contato'
},
"data[Contato][assunto]": {
required: 'Informe o assunto'
},
"data[Contato][msg]": {
required: 'Escreva uma mensagem'
}
}
});
});
//-->
</script>]]>
|
218
| <![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-87845319-5', 'auto');
ga('send', 'pageview');
</script>]]>
|