204
| <![CDATA[<style>
@media screen and (min-width: 767.9px) {
#header {
position: fixed;
right: 0;
left: 0;
top: 0px;
}
}
</style>]]>
|
544
| <![CDATA[<script type="text/javascript">
/*$('#input_data').daterangepicker({
// autoUpdateInput: false,
opens: 'left',
"startDate": "01/10/2022",
"endDate": "31/10/2022",
"resetstartDate": "01/10/2022",
"resetendDate": "31/10/2022",
locale: {
cancelLabel: 'Limpar',
separator: ' - ',
// format: 'DD/MMMM/YYYY'
// format :('DD/MMMM/YYYY')
format: 'DD/MM/YYYY'
}
});
$('#input_data').on('apply.daterangepicker', function(ev, picker) {
$(this).val(picker.startDate.format('DD/MM/YYYY') + ' - ' + picker.endDate.format('DD/MM/YYYY'));
});
$('#input_data').on('cancel.daterangepicker', function(ev, picker) {
$(this).val();
// console.log($(this))
});*/
function reloadPagina(pesquisa, secretaria, data, reloadData, paginacao){
var ajaxLoadTimeout;
$.ajax({
type: "POST",
url: "noticias_ajax.php",
data: {
input_pesquisa: pesquisa,
input_secretaria: secretaria,
input_data: data,
paginacao: paginacao,
acesso: 'https://www.sinop.mt.gov.br/Noticias/',
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();
var data = document.getElementById("input_data").value
var secretaria = $("#input_secretaria option:selected").val();
if (value.length >= 3 || secretaria != '' || data != '') {
reloadPagina(value, secretaria, data,'#reloadPagina', 1);
}else{
reloadPagina('', '', '','#reloadPagina', 1);
}
});
$("#input_secretaria").change(function(){
var secretaria = $(this).val();
var value = $('input[name="input_filter"]').val().toLowerCase();
var data = document.getElementById("input_data").value
if (data != '' || secretaria != '' || value.length >= 3) {
reloadPagina(value, secretaria, data,'#reloadPagina', 1);
}else{
reloadPagina('', '', '','#reloadPagina', 1);
}
})
$("#input_data").change(function(){
var data = $(this).val();
var secretaria = $("#input_secretaria option:selected").val();
var value = $('input[name="input_filter"]').val().toLowerCase();
if (data != '' || secretaria != '' || value.length >= 3) {
reloadPagina(value, secretaria, data,'#reloadPagina', 1);
}else{
reloadPagina('', '', '','#reloadPagina', 1);
}
})
</script>]]>
|
952
| <![CDATA[<script type="text/javascript">
/* Click function */
var filtro = $('input[name="input_filter"]').val().toLowerCase();
var input_data = document.getElementById("input_data").value
var secretaria = $("#input_secretaria option:selected").val();
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, secretaria, input_data,'#reloadPagina', paginaAnterior);
}
});
$('.next-page').on('click', function(){
var totalPaginas = $(this).data('totalpages');
var proximaPagina = paginaAtual + 1;
if(proximaPagina > totalPaginas) {
return false;
}else{
reloadPagina(filtro, secretaria, input_data,'#reloadPagina', proximaPagina);
}
});
$('.page').on('click', function(){
var pagina = $(this).data('page');
reloadPagina(filtro, secretaria, input_data,'#reloadPagina', pagina);
});
</script>]]>
|
1256
| <![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:1242413,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=');
(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-99810099-1', 'auto');
ga('send', 'pageview');
</script>]]>
|
1278
| <![CDATA[<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-113555057-2');
</script>]]>
|
1512
| <![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>]]>
|