67
| <![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:2063554,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>]]>
|
359
| <![CDATA[<script type="text/javascript">
function reloadPagina(pesquisa, reloadData, paginacao){
var ajaxLoadTimeout;
$.ajax({
type: "POST",
url: "enquete_ajax.php",
data: {
input_pesquisa: pesquisa,
paginacao: paginacao,
acesso: 'https://www.vera.mt.gov.br/Imprensa/Enquetes/',
tipo: '1'
},
beforeSend: function(xhr){
ajaxLoadTimeout = setTimeout(function() {
$('.btn-pesquisar i').removeClass();
$('.btn-pesquisar i').addClass('fa fa-circle-o-notch fa-spin fa-fw');
}, 150);
}
}).done(function(data){
clearTimeout(ajaxLoadTimeout);
$('.btn-pesquisar i').removeClass();
$('.btn-pesquisar i').addClass('fa fa-search');
$(reloadData).html(data);
$('html').scrollTop(0);
});
}
/* Keyup function */
$('input[name="input_filter"]').on('keyup',function(){
var value = $(this).val().toLowerCase();
if (value.length >= 3) {
reloadPagina(value, '#reloadPagina', 1);
}else{
reloadPagina('', '#reloadPagina', 1);
}
});
</script>]]>
|
418
| <![CDATA[<script type="text/javascript">
/* Click function */
var filtro = $('input[name="input_filter"]').val().toLowerCase();
var paginaAtual = $('.col-box-pagination li.active a').data('page');
$('.prev-page').on('click', function(){
var paginaAnterior = paginaAtual - 1;
if(paginaAnterior <= 0) {
return false;
}else{
reloadPagina(filtro, '#reloadPagina', paginaAnterior);
}
});
$('.next-page').on('click', function(){
var totalPaginas = $(this).data('totalpages');
var proximaPagina = paginaAtual + 1;
if(proximaPagina > totalPaginas) {
return false;
}else{
reloadPagina(filtro, '#reloadPagina', proximaPagina);
}
});
$('.page').on('click', function(){
var pagina = $(this).data('page');
reloadPagina(filtro, '#reloadPagina', pagina);
});
</script>]]>
|
959
| <![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>]]>
|