65
| <![CDATA[<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '470486017036059');
fbq('track', 'PageView');
fbq('track', 'ViewContent');
fbq('track', 'Search');
fbq('track', 'Lead');
</script>]]>
|
99
| <![CDATA[<script>
// teste();
// function teste(){
// $.post("/service/", "daoName=DAO/front/artigosDAO&serviceName=listarArtigosNoticiasBanner", function( result ){
// var obj = JSON.parse(result);
// if ( obj.success ){
// if( obj.elements.length > 0 ){
// for(var i = 0; i < obj.elements.length; i++){
// loading.obj.messages.push(obj.elements[i].titulo)
// }
// }
// }
// });
// }
</script>]]>
|
396
| <![CDATA[<script type="text/javascript">
$(window).on('resize', function(){
if (window.screen.width < 1024) {
$('.dropdown-menu[aria-labelledby=menuSecretarias] .list-inline').css('height', parseInt( $(".listaMenuTop li").height() * 2.2 ) + 'px');
}else{
$('.dropdown-menu[aria-labelledby=menuSecretarias] .list-inline').css('height', '');
}
});
$('.dropdown').on('shown.bs.dropdown', function () {
if (window.screen.width < 1024) {
$('.dropdown-menu[aria-labelledby=menuSecretarias] .list-inline').css('height', parseInt( $(".listaMenuTop li").height() * 2.2 ) + 'px');
}else{
$('.dropdown-menu[aria-labelledby=menuSecretarias] .list-inline').css('height', '');
}
});
$(document).on('click', '.dropdown-menu[aria-labelledby=menuSecretarias]', function (e) {
e.stopPropagation();
});
$("form").on('submit', function(e){
e.preventDefault();
})
$(".controlMenuTop-left").on("click" ,function(){
var scrolled = $(".listaMenuTop").scrollLeft();
var scrollWidth = document.getElementsByClassName("listaMenuTop")[0].scrollWidth;
if (scrolled>0) {
scrolled = scrolled - parseInt($(".listaMenuTop").parent().width());
$(".listaMenuTop").animate({
scrollLeft: scrolled
});
}
});
$(".controlMenuTop-right").on("click" ,function(){
var scrolled = $(".listaMenuTop").scrollLeft();
var scrollWidth = document.getElementsByClassName("listaMenuTop")[0].scrollWidth;
if (scrolled < scrollWidth){
scrolled = scrolled + parseInt($(".listaMenuTop").parent().width());
$(".listaMenuTop").animate({
scrollLeft: scrolled
});
}
});
function pesquisarSite(){
var campoPesquisa = $("#campoPesquisaHome").val();
var pagina = 0;
var Artigo_tipo = 'noticia';
// if(campoPesquisa != ''){
window.location.href = "/pesquisa/?id=pesquisa-site&campoPesquisa=" + campoPesquisa + "&pagina=" + pagina + "&Artigo_tipo=" + Artigo_tipo;
//
}
</script>]]>
|
1613
| <![CDATA[<script>
// Swipe do carrosel Bootstrap 4
!function(t){
t.fn.bcSwipe=function(e){
var n={
threshold:50
};
return e&&t.extend(n,e),this.each(function(){
function e(t){
1==t.touches.length&&(u=t.touches[0].pageX,c=!0,this.addEventListener("touchmove",o,!1))
}function o(e){
if(c){
var o=e.touches[0].pageX,i=u-o;Math.abs(i)>=n.threshold&&(h(),t(this).carousel(i>0?"next":"prev"))
}
}function h(){
this.removeEventListener("touchmove",o),u=null,c=!1
}var u,c=!1;"ontouchstart"in document.documentElement&&this.addEventListener("touchstart",e,!1)
}),this
}
}(jQuery);
$('.carousel').bcSwipe({
threshold: 50
});
$(document).ready(function() {
carregarConteudo('segmentacoes-turisticas');
$('#segmentacoes-turisticas').addClass('active');
});
function scrollEsquerda(janela) {
event.preventDefault();
$('.' + janela).animate({
scrollLeft: "-=250px"
}, "slow");
}
function scrollDireita(janela) {
event.preventDefault();
$('.' + janela).animate({
scrollLeft: "+=250px"
}, "slow");
}
$('#categorias').click(function(){
var a=$('#listaCategorias').find('a');
if($(a[0]).hasClass("d-none d-sm-block")){
$('#listaCategorias a').each(function(){
$(this).removeClass("d-none d-sm-block");
})
}else{
$('#listaCategorias a').each(function(){
$(this).addClass("d-none d-sm-block");
})
}
});
$('#listaCategorias a').click(function(){
$('#listaCategorias a').each(function(){
$(this).removeClass("d-none d-sm-block");
});
})
function carregarConteudo(apelido) {
$(".historia").each(function() {
$(this).addClass('d-none');
});
$('.historia-' + apelido).removeClass('d-none');
if(apelido == 'fotos-antigas'){
carregarFotosAntigas('fotos_antigas_lugares')
}else if(apelido == 'galeria-prefeitos'){
carregarFotosAntigas('fotos_antigas_galeria_dos_prefeitos')
}else if(apelido == 'historia'){
carregarFotosAntigas('historia_fotos')
}
}
function carregarFotosAntigas(alias){
loading.open();
$.post("/service/galeria/", "&apelido="+alias, function(){})
.done(function(result){
if ((result.search("gerenciador MySQL") > 0) || (result.search("erro na execução do Comando SQL") > 0)) {
swal("Oops...!", "Não foi possível estabelecer uma conexão com o Banco de Dados. Verifique a conexão com a internet com a internet e tente novamente mais tarde. ", "warning");
loading.close()
}else{
var obj = JSON.parse( result );
if(obj.success){
var htmlCarousel = '';
var htmlIndicators = '';
var idCarrosel;
var bol = true;
if (alias == 'fotos_antigas_galeria_dos_prefeitos'){
idCarrosel = 'fotos_antigas_galeria_dos_prefeitos';
bol = true;
} else if(alias == 'historia_fotos'){
idCarrosel = 'carrosel_historia_fotos'
bol = false;
}else{
idCarrosel = 'carrosel_fotos_antigas';
bol = false;
}
for(var i = 0; i < obj.elements.length; i++){
var active = '';
if(i == 0){
active = 'active'
}
htmlCarousel += ' <div class="carousel-item ' + active + '"> ';
htmlCarousel += ' <img src="img/fundo-destaque.png"> ';
htmlCarousel += ' <div class="carousel-caption" style="height: 95%;" ';
htmlCarousel += ' <div class="pics"> ';
htmlCarousel += ' <img src="/internetfiles/front/' + obj.elements[i].codigo + '/' +obj.elements[i].Artigo_imagem + '">';
htmlCarousel += ' </div> ';
htmlCarousel += ' </div> ';
htmlCarousel += ' </div> ';
if (bol == true){
htmlIndicators += '<li data-target="#carrosel_fotos_antigas_galeria_dos_prefeitos" data-slide-to="' + i + '" class="' + active + '"></li>';
}else{
htmlIndicators += ' <li data-target="#'+ idCarrosel +'" data-slide-to="' + i + '" class="' + active + '"><img src="/internetfiles/front/' + obj.elements[i].codigo + '/' +obj.elements[i].Artigo_imagem + '"></li> ';
}
}
htmlCarousel += '<a class="carousel-control-prev" href="#' + idCarrosel + '" role="button" data-slide="prev">';
htmlCarousel += ' <span class="carousel-control-prev-icon" aria-hidden="true"></span>';
htmlCarousel += ' <span class="sr-only">Previous</span>';
htmlCarousel += '</a>';
htmlCarousel += '<a class="carousel-control-next" href="#' + idCarrosel + '" role="button" data-slide="next">';
htmlCarousel += ' <span class="carousel-control-next-icon" aria-hidden="true"></span>';
htmlCarousel += ' <span class="sr-only">Next</span>';
htmlCarousel += '</a>';
if(alias == 'fotos_antigas_lugares' || alias == 'fotos_antigas_eventos' || alias == 'fotos_antigas_obras'){
$('#carrosel_fotos_antigas .carousel-inner').html(htmlCarousel);
$('#carrosel_fotos_antigas .carousel-indicators').html(htmlIndicators);
// }else if(alias == 'fotos_antigas_pontos_turisticos'){
// $('#carrosel-' + alias + ' .carousel-inner').html(htmlCarousel);
// $('#carrosel-' + alias + ' .carousel-indicators').html(htmlIndicators);
}else{
$('#carrosel_' + alias + ' .carousel-inner').html(htmlCarousel);
$('#carrosel_' + alias + ' .carousel-indicators').html(htmlIndicators);
}
loading.close()
}else{
swal("Oops...", "Ocorreu um erro ao carregar o conteúdo. Tente novamente mais tarde!", "warning");
loading.close()
}
}
}).fail(function () {
swal("Oops...", "Ocorreu um erro ao carregar o conteúdo. Tente novamente mais tarde!", "warning");
loading.close()
});
}
</script>]]>
|
1867
| <![CDATA[<script>
$("a[href='#containerTop']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
</script>]]>
|
1877
| <![CDATA[<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-65961076-1');
</script>]]>
|