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>]]>
|
533
| <![CDATA[<script type="text/javascript">
$(document).ready(function(){
listarCategorias();
$('[data-toggle="popover"]').popover();
// $('.menuTop').css('width', (window.screen.width - 200) + 'px');
//Ajuste para quando ocorrer sobreposição de modal
$(document).on('hidden.bs.modal', '.modal', function () {
$('.modal:visible').length && $(document.body).addClass('modal-open');
});
});
$('#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");
})
}
})
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("Ops...!", "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 href="/?id=todas-noticias&categoria=' + elem.alias + '" class="d-none d-sm-block"><li class="list-group-item"><small style="color: #828282">' + elem.titulo + '</small><hr class="linha-menu-lateral"></li></a>'
$("#listaCategorias").append(htmlCategorias)
})
}
loading.close();
}else{
swal("Ops...", "Ocorreu um erro ao carregar o conteúdo. Tente novamente mais tarde!", "warning");
loading.close();
}
}
}).fail(function () {
swal("Ops...", "Ocorreu um erro ao carregar o conteúdo. Tente novamente mais tarde!", "warning");
loading.close();
});
}
function registrarVisualizacaoSite( Artigo_codigo, pagina, referrer ){
var screenWidth = window.screen.width;
var screenHeight = window.screen.height;
var screenSize = screenWidth + "x" + screenHeight;
$.post("/service/" + "registrarVisualizacao/","&Artigo_codigo=" + Artigo_codigo + "&pagina=" + pagina + "&screenSize=" + screenSize + "&referrer=" + referrer, function( result ){
})
}
$(document).ready(function(){
var footerHeight = $('#footer').height();
$('body').css('margin-bottom', parseInt( footerHeight + 10 ) + 'px');
});
$(window).resize(function(){
var footerHeight = $('#footer').height();
$('body').css('margin-bottom', parseInt( footerHeight + 10 ) + 'px');
});
function exibirPopUp(){
// echo $resultPopUp[0]->get('ArtigoTipo_alias');
}
function popUpTVPrefeitura( id ){
window.open('/tvcaieiras/?id='+id,'TV Caieiras', 'width='+1066+', height='+544+', top='+0+', left='+0+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}
</script>]]>
|
713
| <![CDATA[<script>
$("a[href='#containerTop']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
</script>]]>
|
723
| <![CDATA[<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-65961076-1');
</script>]]>
|