195
| <![CDATA[<script>
var $j = jQuery.noConflict();
$j(function(){
var form = $j('#contato-form')[0];
form.addEventListener('submit', function(e) {
if(grecaptcha.getResponse() == "") {
e.preventDefault();
alert("Algo errado :(");
return false;
};
e.preventDefault();
if (this.checkValidity()) {
$j.ajax({
type: "POST",
url: $j(this).attr('action'),
data: $j(this).serialize(),
success: function(data) {
form.reset();
$j('#contato-form').html("<strong>Feito!</strong> Mensagem enviada com sucesso.");
$j('#contato-form').addClass("alert alert-success");
},
error: function () {
$j('#contato-form').html("<strong>Ops!</strong> Ocorreu algum erro. Por favor, tente novamente.");
$j('#contato-formt').addClass("alert alert-danger");
}
}, 1000);
}
// $('#PostResult').removeClass("u-hidden");
// $('#ContactForm').addClass("u-hidden");
return false;
}, false);
});
$j(document).ready(function(){
$j('.lista-links-uteis').slick({
dots: false,
arrows: false,
infinite: true,
speed: 300,
slidesToShow: 6,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 2000,
centerMode: true,
responsive: [
{
breakpoint: 1200,
settings: {
slidesToShow: 4,
slidesToScroll: 1,
infinite: true,
dots: true
}
},
{
breakpoint: 992,
settings: {
slidesToShow: 3,
slidesToScroll: 1
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 2,
slidesPerRow: 1
}
}
// You can unslick at a given breakpoint now by adding:
// settings: "unslick"
// instead of a settings object
]
});
});
function onloadCallback() {
grecaptcha.render('recaptchagoogle', {
'sitekey' : '6LfcWkIUAAAAAKC-ECHNWuxKrG3_H56DqVH1YDh5'
});
};
</script>]]>
|