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>]]>
|
657
| <![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
});
var ajusteAgenda = false;
$(document).ready(function() {
$('#eventos').addClass('active');
listarAgenda();
});
$(window).resize(function () {
if(window.screen.width < 767 && ajusteAgenda == false ){
ajusteAgenda = true;
listarAgenda();
}else if(window.screen.width >= 767 && ajusteAgenda == true){
ajusteAgenda = false;
listarAgenda();
}
});
$('#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 listarAgenda(){
$.post("/service/listarAgenda/", 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 ){
if(window.screen.width < 767){
ajusteAgenda = true;
}else{
ajusteAgenda = false;
}
var html = '';
var htmlIndicator = '';
var paineis = Math.ceil(obj.elements.length / 3);
var indicador = 0;
var repeticao = 3;
if(ajusteAgenda){
for(var i = 0; i < obj.elements.length; i++){
var active = '';
if(i == 0){
active = 'active'
}
htmlIndicator += ' <li data-target="#carroselAgenda" data-slide-to="' + [i] + '" class="' + active + '"></li>';
html += ' <div class="carousel-item ' + active + '"> ';
html += ' <div class="row">';
html += ' <div class="col-md-4">';
html += ' <div class="card">';
html += ' <img class="card-img-top" src="/internetfiles/front/' + obj.elements[i].pasta + '/' + obj.elements[i].Artigo_imagem + '">';
html += ' <div class="card-body">';
html += ' <h4 class="card-title" style="min-height: 60px !important;">' + obj.elements[i].titulo + '</h4>';
html += ' <a href="/?id=noticia-interna&apelido=' + obj.elements[i].apelido + '_' + obj.elements[i].pasta + '" class="btn btn-light-green btn-o">Saiba mais</a>';
html += ' </div>';
html += ' </div>';
html += ' </div>';
html += ' </div>';
html += ' </div>';
}
}else{
for(var i = 0; i < paineis; i++){
var active = '';
if(i == 0){
active = 'active'
}
htmlIndicator += ' <li data-target="#carroselAgenda" data-slide-to="' + [i] + '" class="' + active + '"></li>';
html += ' <div class="carousel-item ' + active + '"> ';
html += ' <div class="row">';
for(var j = indicador; j < repeticao; j++){
if(obj.elements.length <= j){
break;
}
html += ' <div class="col-md-4">';
html += ' <div class="card">';
html += ' <img class="card-img-top" src="/internetfiles/front/' + obj.elements[j].pasta + '/' + obj.elements[j].Artigo_imagem + '">';
html += ' <div class="card-body">';
html += ' <h4 class="card-title">' + obj.elements[j].titulo + '</h4>';
html += ' <a href="/?id=noticia-interna&apelido=' + obj.elements[j].apelido + '_' + obj.elements[j].pasta + '" class="btn btn-light-green btn-o">Saiba mais</a>';
html += ' </div>';
html += ' </div>';
html += ' </div>';
indicador = j;
}
repeticao = indicador + 4;
indicador += 1;
html += ' </div>';
html += ' </div>';
}
}
$("#divAgenda").removeClass('d-none')
$("#bodyListaAgenda").html(html);
$("#bodyIndicators").html(htmlIndicator);
loading.close();
}
}else{
$("#divAgenda").addClass('d-none');
// 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>]]>
|
908
| <![CDATA[<script>
$("a[href='#containerTop']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
</script>]]>
|
918
| <![CDATA[<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-65961076-1');
</script>]]>
|