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>]]>
|
4199
| <![CDATA[<script type="text/javascript">
$(document).ready(function () {
listarCategorias();
exibirItem('demanda-juventude-fazendo-arte');
});
function exibirItem(pag) {
$(".conteudoSecretaria").each(function () {
$(this).addClass('d-none');
});
$('.conteudo-' + pag).removeClass('d-none');
if(pag == "programacao-obras"){
listarObras();
}
if(pag == "producao-associada-turismo"){
listarCarroselArtesanato();
}
}
function listarCarroselArtesanato(){
var htmlCarousel = '';
var htmlIndicators = '';
for(var i = 1; i < 7; i++){
var firstSlide = '';
if(i == 1){
firstSlide = 'active';
}
htmlCarousel += ' <div class="carousel-item ' + firstSlide + '"> ';
htmlCarousel += ' <img src="/img/fundo-destaque.png"> ';
htmlCarousel += ' <div class="carousel-caption"> ';
htmlCarousel += ' <div class="pics"> ';
htmlCarousel += ' <img src="/img/Artesanato/' + i + '.jpg"> ';
htmlCarousel += ' </div> ';
htmlCarousel += ' </div> ';
htmlCarousel += ' </div> ';
htmlIndicators += '<li data-target="#carroselGaleria" data-slide-to="' + i + '" class="' + firstSlide + '"><img src="/img/Artesanato/' + i + '.jpg"></li>';
}
$('#carroselGaleria .carousel-inner').html(htmlCarousel);
$('#carroselGaleria .carousel-indicators').html(htmlIndicators);
}
function exibirPlanos(pag){
$(".conteudoPlanos,.conteudo-planos-municipais p").each(function () {
$(this).addClass('d-none');
});
$(' .conteudo-' + pag).removeClass('d-none');
}
function listarCategorias() {
loading.open();
$.post("/service/listarCategorias/", 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) {
if (obj.elements.length > 0) {
$(obj.elements).each(function (row, elem) {
var htmlCategorias = '<a class="d-none d-sm-block" href="/?id=todas-noticias&categoria=' + elem.alias + '"><li class="list-group-item categorias"><small style="color: #828282">' + elem.titulo + '</small><hr class="linha-menu-lateral"></li></a>'
$("#listaCategorias").append(htmlCategorias)
})
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();
});
}
$('#acessados').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(){
$('#acessados').trigger('click')
});
var jsonObras = [];
function listarObras(){
$.post("/service/listarImagensObras/", function(){})
.done(function(result){
var obj = JSON.parse( result );
if ( obj.success ){
if( obj.elements.length > 0 ){
// obj.elements = obj.elements.reverse();
var html = '';
var nome = '';
html += ' <div class="row">';
// var aux = ',';
for(var i = 0; i < obj.elements.length; i++){
data = obj.elements[i].split(".");
data = data[2] + '/' + data[1] + '/' + data[0];
jsonObras.push({
posicao: i,
data: data,
url: obj.elements[i]
});
}
function custom_sort(a, b) {
return new Date(a.data).getTime() - new Date(b.data).getTime();
}
jsonObras = jsonObras.sort(custom_sort).reverse();
for(var i = 0; i < jsonObras.length; i++){
data = jsonObras[i].data.split("/");
data = data[2] + '/' + data[1] + '/' + data[0];
html += ' <div class="col-md-3 mb-3">';
html += ' <a class="obra-link" data-value="' + i +'">';
html += ' <div class="content-img">';
html += ' <img class="img-fluid" src="/img/programacao-obras/' + jsonObras[i].url +'">';
html += ' </div>';
html += ' <p class="text-center">' + data + '</p>';
html += ' </a>';
html += ' </div>';
}
$('#body-programacao-obras').html(html);
}
}else{
swal("Oops...", "Ocorreu um erro ao carregar o conteúdo. Tente novamente mais tarde!", "warning");
}
}).fail(function () {
swal("Oops...", "Ocorreu um erro ao carregar o conteúdo. Tente novamente mais tarde!", "warning");
});
}
$(document).on('click', '.obra-link', function(){
var val = $(this).data("value");
listarModal(val);
});
$(document).on('click', '#next', function(){
var val = $(this).data("value") + 1;
listarModal(val);
});
$(document).on('click', '#prev', function(){
var val = $(this).data("value") - 1;
listarModal(val);
});
function listarModal(val){
// console.log(val)
var disabledPrev = '';
var disabledNext = '';
if(val == 0){
disabledPrev = 'disabled';
}else{
disabledPrev = '';
}
if(val == (jsonObras.length - 1)){
disabledNext = 'disabled';
}else{
disabledNext = '';
}
var html = '';
var url = jsonObras[val].url;
html += '<div class="row px-2 justify-content-between align-items-center">';
html += ' <div class="col-1">';
html += ' <a id="prev" data-value="' + val + '" class="btn p-0 ' + disabledPrev + '"> <i class="fa fa-chevron-left"></i> </a>';
html += ' </div>';
html += ' <div class="col-9">';
html += ' <img class="img-fluid m-auto" src="/img/programacao-obras/' + url +'">';
html += ' </div>';
html += ' <div class="col-1">';
html += ' <a id="next" data-value="' + val + '" class="btn p-0 ' + disabledNext + '"> <i class="fa fa-chevron-right"></i> </a>';
html += ' </div>';
$('#modalObrasBody').html(html);
$('#modalObras').modal('show')
}
</script>]]>
|
4509
| <![CDATA[<script>
$("a[href='#containerTop']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
</script>]]>
|
4519
| <![CDATA[<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-65961076-1');
</script>]]>
|