63
| <![CDATA[<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:2063560,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>]]>
|
892
| <![CDATA[<script>
$('.carousel').carousel({
pause: true,
interval: false
});
</script>]]>
|
1192
| <![CDATA[<script>
/* Função Verifica JSON */
function IsJsonString(str) {
try {
JSON.parse(str);
} catch (e) {
return false;
}
return true;
}
$('#formulario_newsletter').on('submit', function(e) {
e.preventDefault();
if ($("#formulario_newsletter :invalid").length > 0) {
var idPrimeiroItem = $("#formulario_newsletter :invalid")[0].id;
validaSelectpicker();
$('#formulario_newsletter').addClass('was-validated');
return false;
}
$('#buttonNewsletter').attr('disabled', 'true');
grecaptcha.ready(function() {
grecaptcha.execute('6LcXQK8ZAAAAAIL-BnTZpQjz4JE7Lw60A5nQeYDu', {
action: 'formulario'
}).then(function(token) {
var formdata = new FormData($("#formulario_newsletter")[0]);
formdata.append('g-recaptcha-response', token);
$.ajax({
type: 'POST',
url: 'newsletter_envia.php',
data: formdata,
processData: false,
contentType: false
}).done(function(response) {
if (IsJsonString(response)) {
var data = JSON.parse(response);
$('#buttonNewsletter').removeAttr('disabled');
if (data.false_email) {
$('#verificaModal').modal('show');
}
if (data.sucesso) {
if (!data.emailEnviado) {
$('#spanCopiaEmail').removeClass('d-none');
}
$('#successModal').modal('show');
} else {
$('#errorAlert').removeClass('d-none');
$('#errorAlert').text(data.errorMsg);
}
} else {
$('#buttonNewsletter').removeAttr('disabled');
$('#infoModal .modal-header h3').text('Ocorreu um erro em nosso formulário!');
$('#infoModal .modal-body span').text('Tente novamente mais tarde. Caso o erro persista entrar em contato com a administração.');
$('#infoModal').modal('show');
}
});
});
});
});
</script>]]>
|
1650
| <![CDATA[<script type='text/javascript'>//<![CDATA[
$(document).ready(function(){
// if no cookie
if ($.cookie('cookie-lgpd')!="true") {
$("#barra-cookies-lgpd").show();
$("#aceitar-cookies-lgpd").click(function() {
$("#barra-cookies-lgpd").hide();
// set the cookie for 24 hours
var date = new Date();
date.setDate(date.getDate() + 30);
$.cookie('cookie-lgpd', "true", { expires: date });
});
}
});//]]>
</script>]]>
|