1034
| <![CDATA[<script type="text/javascript">
$(document).ready(function(){
$('.row-slick-servicos').slick({
rows: 5,
dots: true,
slidesPerRow: 2,
speed: 500,
autoplay: true,
arrows: true,
infinite: true,
swipeToSlide: false,
responsive: [
{
breakpoint: 992,
settings: {
dots: true,
slidesPerRow: 3,
rows: 20,
}
},
{
breakpoint: 768,
settings: {
dots: true,
rows: 20,
slidesPerRow: 2
}
},
{
breakpoint: 576,
settings: {
dots: true,
rows: 20,
slidesPerRow: 2,
}
},
{
breakpoint: 360,
settings: {
dots: true,
rows: 20,
slidesPerRow: 1,
}
}
]
});
});
</script>]]>
|
1147
| <![CDATA[<script type="text/javascript">
$(document).ready(function(){
$('.row-slick-links').slick({
rows: 1,
dots: true,
slidesPerRow: 4,
speed: 500,
autoplay: true,
arrows: true,
infinite: true,
swipeToSlide: false,
responsive: [
{
breakpoint: 1025,
settings: {
arrows: false,
slidesPerRow: 3,
rows: 20,
}
},
{
breakpoint: 768,
settings: {
dots: true,
rows: 20,
slidesPerRow: 2
}
},
{
breakpoint: 576,
settings: {
dots: true,
rows: 20,
slidesPerRow: 2,
}
},
{
breakpoint: 360,
settings: {
dots: true,
rows: 20,
slidesPerRow: 1,
}
}
]
});
});
</script>]]>
|
1343
| <![CDATA[<script>
function close_enquete() {
$(".container-fluid-enquete").addClass("d-none");
}
function close_modal() {
$('#enqueteModal').modal('toggle');
$(".container-fluid-enquete").addClass("d-none");
}
</script>]]>
|
1353
| <![CDATA[<script>
/* Função Verifica JSON */
function IsJsonString(str) {
try {
JSON.parse(str);
} catch (e) {
return false;
}
return true;
}
function scrollToAnchor(aid){
// $('html,body').animate({scrollTop: ($(aid).offset().top)}, 'slow');
}
function animateCSS(element, animationName, callback) {
element.classList.add('animated', animationName)
function handleAnimationEnd() {
element.classList.remove('animated', animationName)
element.removeEventListener('animationend', handleAnimationEnd)
if (typeof callback === 'function') callback()
}
element.addEventListener('animationend', handleAnimationEnd)
}
$('#Enqute_voto').on('submit', function(e) {
e.preventDefault();
if ($("#Enqute_voto :invalid").length > 0) {
var idPrimeiroItem = $("#Enqute_voto :invalid")[0].id;
scrollToAnchor('#' + idPrimeiroItem, 50);
validaSelectpicker();
$('#Enqute_voto').addClass('was-validated');
return false;
}
$('#btnEnqute_voto').attr('disabled', 'true');
grecaptcha.ready(function() {
grecaptcha.execute('6LcB9sAUAAAAAOR-8Ct5JLPY0O_uphp5KrrnkElD', {
action: 'formulario'
}).then(function(token) {
var formdata = new FormData($("#Enqute_voto")[0]);
formdata.append('g-recaptcha-response', token);
$.ajax({
type: 'POST',
url: 'enquete_interna_envia.php',
data: formdata,
processData: false,
contentType: false
}).done(function(response) {
if (IsJsonString(response)) {
var data = JSON.parse(response);
// console.log(response)
$('#btnEnqute_voto').removeAttr('disabled');
if (data.erro_sucesso) {
scrollToAnchor('body', 20);
$('.sumir-erro').addClass('d-none');
$('#alert-success').addClass('d-none');
$('#alert-danger').removeClass('d-none');
$('#spanInfodanger').removeClass('d-none');
$('#spanInfodanger').text(data.Msginfo);
}
if (data.sucesso) {
scrollToAnchor('body', 20);
$('#alert-success').removeClass('d-none');
$('#spanInfosuccess').removeClass('d-none');
$('#spanInfosuccess').text(data.Msginfo);
} else {
$('.sumir-erro').addClass('d-none');
$('#alert-success').addClass('d-none');
$('#alert-danger').removeClass('d-none');
$('#spanInfodanger').removeClass('d-none');
$('#spanInfodanger').text(data.Msginfo);
// console.log(data)
scrollToAnchor('#spanInfodanger', 20);
}
} else {
$('#btnEnqute_voto').removeAttr('disabled');
$('#verificaModal .modal-header h3').text('Ocorreu um erro em nosso formulário!');
$('#verificaModal .modal-body span').text('Tente novamente mais tarde. Caso o erro persista entrar em contato com a administração.');
$('#verificaModal').modal('show');
}
});
});
});
});
</script>]]>
|
2027
| <![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>]]>
|