Logo CEWEB.br Logo NIC.br Logo CGI.br
Home Sobre o projeto

Sites Verificados

Lista com todos os sítios que foram verificados pela TIC Web Acessibilidade. Dentro de cada domínio, há informações detalhadas sobre as páginas coletadas, bem como os erros e avisos de cada uma *.

Endereço Nota Erros Avisos

www.camarafundao.es.gov.br/pagina/ler/2113/banco-de-i
deias

88.73 12 26
Recomendações Avaliadas
1.1 Respeitar os Padrões Web.

Recomendações

Número Descrição Quantidade Linhas Código Fonte
1.1.3 Presença de CSS(s) in-line 8 78 101 103 105 105 107 115 115
1.1.4 Presença de CSS(s) interno 1 84
1.1.6 Presença de javascript(s) interno 6 131 176 188 1011 1059 1084
78 <![CDATA[<body style="background-color:#fafafa;"> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 paginatransparencia ajustar_fonte" id="pagina"> <style type="text/css"> .panel-body table[border='0']{ border: none; } .panel-body table[border='0'] td{ border: none; } .panel-body table[border='0'] tr{ border: none; } .auto-caption img{ height: auto !important; } </style> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title"> Banco de Ideias </h3> </div> <div class="panel-body auto-caption"> <p><p><img alt="" src="/uploads/files/banco-de-ideias.jpg?1621008985598" style="height:209px; width:235px" /></p> <p><span style="color:#2980b9"><u><em><strong>PARTICIPE VOC&Ecirc; TAMB&Eacute;M DANDO SUGEST&Otilde;ES/ID&Eacute;IAS</strong></em></u></span></p> <p><span style="color:#2980b9"><u><em><strong> DE </strong></em></u></span><span style="color:#2980b9"><u><em><strong>PROJETOS QUE O LEGISLATIVO ;</strong></em></u></span></p> <p><span style="color:#2980b9"><u><em><strong>POSSA PROPOR PARA O MELHOR DA COLETIVIDADE FUNDOENSE.</strong></em></u></span></p> <p> ;</p> <p><u><em><strong>ENVIE SUA SUGEST&Atilde;O/IDEIA para o e-mail:</strong></em></u><strong> ;<a href="mailto:cmfes@camarafundao.es.gov.br">cmfes@camarafundao.es.gov.br</a></strong></p> <p> ;</p> <p><span style="color:#ecf0f1"><strong><em><span style="background-color:#2980b9">O Legislativo Municipal trabalhando com voc&ecirc;!!</span></em></strong></span></p> <p> ;</p> <p> ;</p> <p> ;</p> </p> </div> </div><!-- /panel --> <link href="http://www.camarafundao.es.gov.br/statics/assets/plugins/captionjs/captionjs.css?v=2" type="text/css" rel="stylesheet"> <script src="http://www.camarafundao.es.gov.br/statics/assets/plugins/captionjs/jquery.caption.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { $('.auto-caption img').captionjs({ 'force_dimensions':false, 'is_responsive':false, 'inherit_styles':true }); }); </script> </div> <!-- /pagina --> </div> <script src='http://www.camarafundao.es.gov.br/statics/assets/js/jquery-1.11.1.min.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/bootstrap/js/bootstrap.min.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/font-awesome/fontawesome-free-5.15.4-web/js/all.js?v=1.18'></script> <script src="http://www.camarafundao.es.gov.br/statics/assets/plugins/prettyPhoto/js/jquery.prettyPhoto.js?v=1.18"></script> <script src="http://www.camarafundao.es.gov.br/statics/assets/plugins/fancybox/jquery.fancybox.js?v=1.18"></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/js/jquery-1.11.1.min.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/bootstrap/js/bootstrap.min.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/bootstrap/js/ie10-viewport-bug-workaround.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/bootflat/js/icheck.min.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/bootflat/js/jquery.fs.selecter.min.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/bootflat/js/jquery.fs.stepper.min.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/jquery.mask.min.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/jquery.maxlength.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/bxslider/jquery.bxslider.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/flexisel/js/jquery.flexisel.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/validation/js/languages/jquery.validationEngine-pt_BR.min.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/validation/js/jquery.validationEngine.min.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/validation/js/contrib/other-validations.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/prettyPhoto/js/jquery.prettyPhoto.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/magnific-popup/jquery.magnific-popup.min.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/fancybox/jquery.fancybox.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/captionjs/jquery.caption.min.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/frontend/select2/dist/js/select2.full.min.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/smartmenus/jquery.smartmenus.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/smartmenus/addons/bootstrap/jquery.smartmenus.bootstrap.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/jquery.wheelmenu.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/datepicker/bootstrap-datepicker.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/datepicker/locales/bootstrap-datepicker.pt-BR.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/inputmask-5/jquery.inputmask.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/assets/plugins/inputmask-5/inputmask_personalizacao.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/frontend/js/scripts.js?v=1.18'></script> <script src='http://www.camarafundao.es.gov.br/statics/frontend/js/scripts_transparencia.js?v=1.18'></script> <!-- Script para adicionar abertura em popup em links com a classe "popup" --> <script> $(".popup").fancybox({ 'width': '95%', 'height': '92%', 'autoScale': false, 'transitionIn': 'none', 'transitionOut': 'none', 'type': 'iframe' }); </script> <!-- Função da Pesquisa no Menu --> <script> const BASE_URL = "http://www.camarafundao.es.gov.br/"; function fonte(e) { var elements = $('p, h1, h2, h3, h4, h5, h6, a, button, input, i, svg'); elements.each((index, item) => { let element = $(item); let font = $(element).css('font-size'); let newFont = e == 'a' ? parseInt(font) + 1 : parseInt(font) - 1; element.css('font-size', newFont); }) } function openSearch(e) { // Função de Botão de Busca if ($('#bloco-logo .form-padrao input').val() != '') { $('#bloco-logo form').submit(); } else { let button = document.querySelector('#bloco-logo button.botao-busca'); let form = document.querySelector('#bloco-logo .form-padrao'); form.classList.toggle('hidden'); button.classList.toggle('hidden'); } } function dataAtualFormatada(e) { let data = new Date(e); let dia = data.getDate(); if (dia <= 9) dia = "0" + dia; var meses = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"]; data = dia + " de " + meses[data.getMonth()] + " de " + data.getFullYear(); return data; } $(".nav-stacked a").click(function(e) { if ($(this).children('svg').attr('data-icon') == 'plus') $(this).children('svg').attr('data-icon', 'minus') else $(this).children('svg').attr('data-icon', 'plus') }); $('.dropdown-submenu a.submenu-institucional').on("click", function(e) { // Faz os submenu do submenu funcionar no mobile e.preventDefault(); $(this).next('ul').toggle('open'); e.stopPropagation(); }); $(document).ready(function() { // Processa depois de carregar a página if (typeof funcion_a_comprobar === 'function') { if (typeof number == "undefined" || number == null) { let number = $('.inputmask_tel'); number.inputmask({ mask: ["+55 (99) 9999-9999", "+55 (99) 9 9999-9999", ], keepStatic: true }); } if (typeof cpf_cnpj == "undefined" || cpf_cnpj == null) { let cpf_cnpj = $('.inputmask_cpf_cnpj'); cpf_cnpj.inputmask({ mask: ["999.999.999-99", "99.999.999/9999-99", ], keepStatic: true }); } } $(window).scroll(function() { var scrollTop = $(window).scrollTop(); if (scrollTop > 80) { $('#acessibilidade').addClass("navbar-fixed-top"); } else { $('#acessibilidade').removeClass("navbar-fixed-top"); } }); var html = document.getElementsByTagName('html')[0]; html.style.cssText = '--Primary0: #1F3F63; --Primary1: #345070; --Primary2: #4C637D;'; function removeAcento(text) { // Função que remove assentos text = text.toLowerCase(); text = text.replace(new RegExp('[ÁÀÂÃ]', 'gi'), 'a'); text = text.replace(new RegExp('[ÉÈÊ]', 'gi'), 'e'); text = text.replace(new RegExp('[ÍÌÎ]', 'gi'), 'i'); text = text.replace(new RegExp('[ÓÒÔÕ]', 'gi'), 'o'); text = text.replace(new RegExp('[ÚÙÛ]', 'gi'), 'u'); text = text.replace(new RegExp('[Ç]', 'gi'), 'c'); return text; } // ===================== SERVIÇOS ===================== // Filtro por Pesquisa function filtra_servicos(value) { value = removeAcento(value.toLowerCase()); setTimeout(() => { var bloco_tabs = $('.bloco-tabs ul'); // bloco_tabs.hide(); $(".bloco-tabs ul li").filter(function() { let item = removeAcento($(this).text().toLowerCase()); $(this).toggle(item.indexOf(value) > -1); if ($(bloco_tabs).is(":hidden")) { return $('.openTabs').click(); } }); }, 500); } $("#search-faq #termos").on("keyup", function(e) { var value = e.target.value; filtra_servicos(value); }); $("#search-faq").on("submit", function(e) { e.preventDefault(); var value = $("#search-faq #termos").val(); filtra_servicos(value); }); $('#acesso a').click(function(e) { e.preventDefault(); var categoria = $(this).data('categoria'); var request = $.ajax({ // type: 'POST', // data: data, //dataType tells jQuery to expect JSON response dataType: "json", url: BASE_URL + `faq/faqs_post/?categoria_id=` + categoria, beforeSend() { $('.bloco-tabs ul.nav').html(''); $('.bloco-tabs ul.nav').addClass('loader'); }, }) .done(function(msg) { $('.bloco-tabs ul.nav').removeClass('loader'); $('.bloco-tabs ul.nav').load(); msg.map(item => { $('ul.nav.nav-pills.nav-stacked').append(` <li> <a class="item" data-toggle="collapse" href="#${item.id}" role="button" aria-expanded="false" aria-controls="${item.id}">${item.pergunta} <i class="fa fa-plus"></i></a> <div class="texto collapse" id="${item.id}"> ${item.resposta} </div> </li> `); }); }) .fail(function() { $('.message').html('Não consegui carregar, tente novamente.'); }); }); var isSomethingTrue = false; $('.openTabs').click(function(e) { e.preventDefault(); $('.bloco-tabs').toggle('in'); $(this).toggleClass('botao-primary0'); if (!isSomethingTrue) { isSomethingTrue = true; $(this).html('Ver menos serviços'); } else { isSomethingTrue = false; $(this).html('Ver todos os serviços'); } }); // ===================== SERVIÇOS ===================== // Função de Load More Notícias var offset_posts = 5 $('#load_more_posts').click(function(e) { e.preventDefault(); var request = $.ajax({ // type: 'GET', // data: data, //dataType tells jQuery to expect JSON response dataType: "json", url: BASE_URL + `noticia/get_post/${offset_posts}/5`, beforeSend() { $('#load_more_posts').html('Carregando...'); $('.loader').removeClass('hidden'); }, }) .done(function(msg) { offset_posts = offset_posts + 5; $('.loader').addClass('hidden'); $('#load_more_posts').html('Carregar mais notícias'); msg.map(item => { $('.noticias').append(` <a href="${BASE_URL}noticia/ler/${item.id}/${item.titulo.normalize('NFD').replace(/[\u0300-\u036f]/g, '').replace(/[^\w-]+/g, '-').toLowerCase()}" title="Notícia: ${item.titulo}"> <div class="col-xs-12 imagem no-padding"> <img class="img-responsive" src="${item.capa}" alt="${item.titulo}" /> </div> <div class="col-xs-12 texto"> <h2>${item.titulo}</h2> <p>` + item.chamada.substring(0, 550) + `</p> <h5>` + dataAtualFormatada(item.publicacao) + `</h5> </div> <hr /> </a> `); }) }) .fail(function() { $('.message').html('Não consegui carregar, tente novamente.'); }); }); // Função de Load More nos Faqs var offset_faqs = 8 $('#load_more_faq').click(function(e) { e.preventDefault(); var request = $.ajax({ dataType: "json", url: BASE_URL + `faq/faqs_post/${offset_faqs}/5`, beforeSend() { $('#load_more_faq').html('Carregando...'); $('.loader').removeClass('hidden'); }, }) .done(function(msg) { offset_faqs = offset_faqs + 5; $('.loader').addClass('hidden'); $('#load_more_faq').html('Carregar mais perguntas'); msg.map(item => { $('ul.nav.nav-pills.nav-stacked').append(` <li> <a class="item" data-toggle="collapse" href="#${item.id}" role="button" aria-expanded="false" aria-controls="${item.id}">${item.pergunta} <i class="fa fa-plus"></i></a> <div class="texto collapse" id="${item.id}"> ${item.resposta} </div> </li> `); }) }) .fail(function() { $('.message').html('Não consegui carregar, tente novamente.'); }); }); // Bloco de Vereadores/Atividade Legislativa no Portal Institucional var VereadoresAPI = $('.vereadores-lista').data('vereadoresapi'); if (typeof VereadoresAPI !== "undefined" && VereadoresAPI) { // alert(VereadoresAPI); $.getJSON(VereadoresAPI + 'api/vereador/?v=2&qtd=100', function(json) { // Lista os Vereadores var bloco_vereadores = $('.vereadores-lista'); var parlamentar = $.map(json.dados, function(item) { var situacoes = ['Licença', 'Suplente', 'Falecido', 'Licenciado para assumir cargo no Executivo']; if (situacoes.includes(item.situacao)) return; var email = `<h5 class="email"><i class="fas fa-envelope"></i>${item.email}</h5>`; return bloco_vereadores.append(` <a target="_blank" href="${VereadoresAPI}vereador.aspx?id=${item.ID}" target="_blank" title="Veja mais sobre o vereador(a) ${item.nome_parlamentar}" class="vereador-item"> <div class="imagem"> <img src="${item.foto}" alt="Foto do vereador(a) ${item.nome}" /> </div> <div class="texto"> <h3>${item.nome}</h3> ${email ? email : null} <h5 class="partido">${item.partido_sigla}</h5> </div> </a> `); // <p>Situação <span>${item.situacao}</span></p> }); }); $('.vereadores-lista .loader').hide(); } var ClienteUrlApi = $('#atividade-legislativa').data('clienteurlapi'); // console.log(ClienteUrlApi); if (typeof ClienteUrlApi !== "undefined" && ClienteUrlApi) { $.getJSON(ClienteUrlApi + 'api/norma_filtros?v=2', function(json) { var data = $.map(json.tipos, function(item) { return { id: item.tipo_id, text: item.tipo } }); data.unshift({ id: '', text: '' }); return $('.especie_normativa').select2({ // Monta o Select usando Ajax placeholder: 'Selecione o tipo', width: '100%', data: data }); }); $.getJSON(ClienteUrlApi + 'api/proposicao_filtros/?v=2&area=LEG', function(json) { var data = $.map(json.tipos, function(item) { return { id: item.tipo_id, text: item.tipo } }); data.unshift({ id: '', text: '' }); return $('.proposicoes').select2({ // Monta o Select usando Ajax placeholder: 'Selecione o tipo', width: '100%', data: data }); }); $.getJSON(ClienteUrlApi + 'api/proposicao_filtros/?v=2&area=ADM', function(json) { var data = $.map(json.tipos, function(item) { return { id: item.tipo_id, text: item.tipo } }); data.unshift({ id: '', text: '' }); return $('.processos_administrativos').select2({ // Monta o Select usando Ajax placeholder: 'Selecione o tipo', width: '100%', data: data }); }); } // Função de Load More nos Faqs // $('#fotos a:not(.botao)').click(function(e) { $('#fotos .link-popup').click(function(e) { e.preventDefault(); let idGaleria = $(this).data('id'); let dado = $(this); //Initial csrf values var data = {}; var api_images = []; var api_titles = []; var api_descriptions = []; $.ajax({ // type: 'POST', data: data, //dataType tells jQuery to expect JSON response dataType: "json", url: BASE_URL + `galeria/get_galeria_anexos/` + idGaleria, }) .done(function(msg) { if (msg.length === 0) { api_images.push(dado.context.href); api_titles.push(dado.context.alt); api_descriptions.push(['']); } else { msg.map(item => { api_images.push(item['arquivo']); api_titles.push(item['titulo']); api_descriptions.push(item['titulo']); }); } $.prettyPhoto.open(api_images, api_titles, api_descriptions); $.prettyPhoto.changePage('next'); $.prettyPhoto.changePage('previous'); $.prettyPhoto.close(); }) .fail(function(response, status, error) { // console.log(error); $.prettyPhoto.open(BASE_URL + 'assets/img/brasao.jpg', 'Não consegui carregar, tente novamente.', ''); }); }); $('#fotos .galeria').click(function(e) { e.preventDefault(); let idGaleria = $(this).data('id'); let dado = $(this); //Initial csrf values var data = {}; var api_images = []; var api_titles = []; var api_descriptions = []; $.ajax({ // type: 'POST', data: data, //dataType tells jQuery to expect JSON response dataType: "json", url: BASE_URL + `galeria/get_galeria_anexos/` + idGaleria, }) .done(function(msg) { if (msg.length === 0) { api_images.push(dado.context.href); api_titles.push(dado.context.alt); api_descriptions.push(['']); } else { msg.map(item => { api_images.push(item['arquivo']); api_titles.push(item['titulo']); api_descriptions.push(item['titulo']); }); } $.prettyPhoto.open(api_images, api_titles, api_descriptions); $.prettyPhoto.changePage('next'); $.prettyPhoto.changePage('previous'); $.prettyPhoto.close(); }) .fail(function(response, status, error) { // console.log(error); $.prettyPhoto.open(BASE_URL + 'assets/img/brasao.jpg', 'Não consegui carregar, tente novamente.', ''); }); }); // Auto Contraste Função $('#acessibilidade_contraste').on('click', function(event) { event.preventDefault(); $('body').toggleClass('contrast'); $('body').toggleClass('scrollbar-color'); $('#acesso-rapido .col-lg-11>.row').toggleClass('scrollbar-color'); if ($(this).attr('data-original-title') == 'Aplicar auto contraste') { $(this).attr('data-original-title', 'Remover auto contraste'); } else { $(this).attr('data-original-title', 'Aplicar auto contraste'); }; var logo_menu = document.getElementById('logo-menu'); if (!logo_menu) return null; if (logo_menu.src == 'http://www.camarafundao.es.gov.br/assets/img/logo_site_branco.png') logo_menu.src = 'http://www.camarafundao.es.gov.br/assets/img/logo_site.png'; else logo_menu.src = 'http://www.camarafundao.es.gov.br/assets/img/logo_site_branco.png'; }); var Contrast = { storage: 'contrastState', cssClass: 'contrast', currentState: null, check: checkContrast, getState: getContrastState, setState: setContrastState, toogle: toogleContrast, updateView: updateViewContrast }; toggleContrast = function() { Contrast.toogle(); }; Contrast.check(); function checkContrast() { this.updateView(); } function getContrastState() { return localStorage.getItem(this.storage) === 'true'; } function setContrastState(state) { localStorage.setItem(this.storage, '' + state); this.currentState = state; this.updateView(); } function updateViewContrast() { var body = document.body; if (!body) return; if (this.currentState === null) this.currentState = this.getState(); if (this.currentState) { body.classList.add(this.cssClass); } else { body.classList.remove(this.cssClass); } } function toogleContrast() { this.setState(!this.currentState); } // FIM AUTOCONTRASTE $('a[rel=group]').fancybox(); $("a[rel^='prettyPhoto']").prettyPhoto({ default_width: 700, //I have tried playing with these values default_height: 500, //I have tried playing with these values theme: 'light_rounded', social_tools: '<a target="_blank" download href="#" class="download_image left btn btn-xs btn-default"><span class="fa fa-download"></span> Baixar Imagem</a>', overlay_gallery: false, show_title: false, hideflash: true, iframe_markup: "<iframe src='{path}' width='{width}' height='{height}' frameborder='no' allowfullscreen='true'></iframe>", deeplinking: false }); $('body').on('click', '.download_image', function() { var foto_download = $('#fullResImage').attr('src'); $(this).attr('href', foto_download); }); $('div.thumbnail').on('click', 'a', function() { var id = $(this).attr('id'); if (id.length) { $.ajax({ url: BASE_URL + 'galeria/contador_acessos/' + id, type: "post", data: { 'id': id } }); } }); // VERIFICA SWIPER if (document.getElementsByClassName('destaques').length !== 0) { var destaques = new Swiper(".destaques", { loop: true, // autoHeight: true, autoplay: { delay: 5000, disableOnInteraction: false, }, pagination: { el: ".destaques .swiper-pagination", dynamicBullets: true, clickable: true, }, navigation: { nextEl: ".destaques .swiper-button-next", prevEl: ".destaques .swiper-button-prev", }, }); } var swiper = new Swiper(".mySwiper", { slidesPerView: 2, spaceBetween: 30, pagination: { el: ".swiper-pagination", clickable: true, }, }); $('.carousel').carousel(); var swiper = new Swiper('.agendaSwiper', { slidesPerView: 3, // spaceBetween: 30, cssMode: true, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, pagination: { el: ".swiper-pagination", }, mousewheel: true, keyboard: true, pagination: { el: ".swiper-pagination", clickable: true, }, }); function getDirection() { var windowWidth = window.innerWidth; var direction = window.innerWidth <= 760 ? 'vertical' : 'horizontal'; return direction; } if (document.getElementsByClassName('especialidades').length !== 0) { var especialidades = new Swiper(".especialidades", { // slidesPerView: 1, calculateHeight: true, spaceBetween: 20, breakpoints: { // 0: { // }, // when window width is >= 768px 769: { slidesPerGroup: 4, slidesPerView: 2, allowTouchMove: false, grid: { rows: 2, }, }, }, // loop: true, // <- causes issues combined with multi row setup!! navigation: { nextEl: ".especialidades .swiper-button-next", prevEl: ".especialidades .swiper-button-prev", }, }); } if (document.getElementsByClassName('galerias').length != 0) { var banners = new Swiper(".galerias", { slidesPerView: 1, autoHeight: true, loop: true, spaceBetween: 10, // effect: "fade", breakpoints: { // 0: { // }, // when window width is >= 768px 769: { slidesPerView: 4, }, }, navigation: { nextEl: "#galerias .next", prevEl: "#galerias .prev", }, pagination: { el: ".galerias .swiper-pagination", clickable: true, }, }); } if (document.getElementsByClassName('banners').length != 0) { var banners = new Swiper(".banners", { slidesPerView: 1, autoHeight: true, loop: true, spaceBetween: 10, // effect: "fade", autoplay: { delay: 5000, disableOnInteraction: false, }, navigation: { nextEl: ".banners .swiper-button-next", prevEl: ".banners .swiper-button-prev", }, pagination: { el: ".banners .swiper-pagination", clickable: true, }, }); var estatico = new Swiper(".estatico", { slidesPerView: 1, autoHeight: true, loop: false, spaceBetween: 10, // effect: "fade", autoplay: { // delay: 3000, disableOnInteraction: true, }, navigation: { nextEl: ".estatico .swiper-button-next", prevEl: ".estatico .swiper-button-prev", }, pagination: { el: ".estatico .swiper-pagination", clickable: true, }, }); } if (document.getElementsByClassName('portais').length != 0) { var portais = new Swiper(".portais", { loop: true, loopFillGroupWithBlank: true, breakpoints: { 0: { slidesPerView: 1, slidesPerGroup: 1, }, // when window width is >= 768px 769: { slidesPerView: 6, slidesPerGroup: 6, spaceBetween: 30, }, }, navigation: { nextEl: ".portais .swiper-button-next", prevEl: ".portais .swiper-button-prev", }, }); } $('#web-tv #video').carousel({ interval: false, }); // bootstrap-datepicker --------------------- // if (typeof $('.bootstrap_datepicker') !== 'undefined') { // $('.bootstrap_datepicker').datepicker({ // format: 'dd/mm/yyyy' // }); // } $('#imprimir').click(function() { window.print(); }); }); function cookies(functions) { const container = document.querySelector('.cookies-container'); const save = document.querySelector('.cookies-save'); if (!container || !save) return null; const localPref = JSON.parse(window.localStorage.getItem('cookies-pref')); if (localPref) activateFunctions(localPref); function getFormPref() { return [...document.querySelectorAll('[data-function]')] .filter((el) => el.checked) .map((el) => el.getAttribute('data-function')); } function activateFunctions(pref) { pref.forEach((f) => functions[f]()); container.style.display = 'none'; window.localStorage.setItem('cookies-pref', JSON.stringify(pref)); } function handleSave() { const pref = getFormPref(); activateFunctions(pref); } save.addEventListener('click', handleSave); } function analytics() { window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', ''); console.log('Função anali..'); } function simplecookie() { console.log('Política de Privacidade Autorizada'); } // ============================================================ // Função Frame do Youtube // 2. This code loads the IFrame Player API code asynchronously. var tag = document.createElement('script'); tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); // 3. This function creates an <iframe> (and YouTube player) // after the API code downloads. function onYouTubeIframeAPIReady() { var player; // console.log($(this)); player = new YT.Player('player', { videoId: 'M7lc1UVf-VE', events: { 'onReady': onPlayerReady, // 'onPlaybackQualityChange': onPlayerPlaybackQualityChange, 'onStateChange': onPlayerStateChange, // 'onError': onPlayerError } }); } async function onPlayerReady(event) { event.target.setVolume(100); event.target.playVideo(); } var done = false; async function onPlayerStateChange(event) { if (event.data == YT.PlayerState.PLAYING && !done) { setTimeout(stopVideo, 6000); done = true; } } async function stopVideo() { player.stopVideo(); } </script> <script src="https://www.google.com/recaptcha/api.js?render=6Ldj0XAUAAAAAMAjRAG-sObYFcqv8YWT0CDTYuVn"></script> <script text="text/Javascript"> $(function() { // Recaptcha no formulário da Newsletter $(".form_recaptcha .bnt_submit_recaptcha").click(function(e) { e.preventDefault(); grecaptcha.execute('6Ldj0XAUAAAAAMAjRAG-sObYFcqv8YWT0CDTYuVn').then(function(token) { var recaptchaResponse = document.getElementById('recaptcha_token'); recaptchaResponse.value = token; $('.form_recaptcha').submit(); }) }) }); // var form = $('#newsletter'); // $(form).submit(function(e) { // Função do Formulario newsletter da Home // e.preventDefault(); // grecaptcha.execute('6Ldj0XAUAAAAAMAjRAG-sObYFcqv8YWT0CDTYuVn').then(function(token) { // // add token value to form // document.getElementById('g-recaptcha-response').value = token; // $.ajax({ // type: form.attr('method'), // url: form.attr('action'), // dataType: 'json', // data: form.serialize(), // beforeSend() { // // console.log('Carregando...'); // $('#newsletter .loader').toggleClass('hidden'); // }, // }) // .success(function(msg) { // // console.log(msg); // if (msg == 200) { // alertify.success('Contato cadastrado com sucesso!'); // } else { // alertify.error(msg); // } // $('#newsletter .loader').toggleClass('hidden'); // }) // .fail(function(request, status, error) { // // console.log('Status: ', status); // $('#newsletter .loader').toggleClass('hidden'); // }); // }); // }); </script> <script> var preloader = document.getElementById('preloader'); if (typeof preloader !== "undefined" && preloader) { document.addEventListener('DOMContentLoaded', function() { setTimeout(() => { // if (document.readyState === "complete") { // Ainda carregando preloader.classList.toggle('loaded') setTimeout(() => { preloader.classList.add('hidden') }, 1000); // } }, 3000); }); } </script> <noscript> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="alert alert-warning" role="alert"> Você precisa habilitar o JavaScript para visualizar este Portal corretamente. </div> </div> </noscript> <!-- GOOGLE ANALYTICS --> <script> (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-78100420-1', 'auto'); ga('send', 'pageview'); </script> <!-- ./ GOOGLE ANALYTICS --> </body>]]>
101 <![CDATA[<img alt="" src="/uploads/files/banco-de-ideias.jpg?1621008985598" style="height:209px; width:235px" />]]>
103 <![CDATA[<span style="color:#2980b9"><u><em><strong>PARTICIPE VOC&Ecirc; TAMB&Eacute;M DANDO SUGEST&Otilde;ES/ID&Eacute;IAS</strong></em></u></span>]]>
105 <![CDATA[<span style="color:#2980b9"><u><em><strong> DE </strong></em></u></span>]]>
105 <![CDATA[<span style="color:#2980b9"><u><em><strong>PROJETOS QUE O LEGISLATIVO ;</strong></em></u></span>]]>
107 <![CDATA[<span style="color:#2980b9"><u><em><strong>POSSA PROPOR PARA O MELHOR DA COLETIVIDADE FUNDOENSE.</strong></em></u></span>]]>
115 <![CDATA[<span style="color:#ecf0f1"><strong><em><span style="background-color:#2980b9">O Legislativo Municipal trabalhando com voc&ecirc;!!</span></em></strong></span>]]>
115 <![CDATA[<span style="background-color:#2980b9">O Legislativo Municipal trabalhando com voc&ecirc;!!</span>]]>
84 <![CDATA[<style type="text/css"> .panel-body table[border='0']{ border: none; } .panel-body table[border='0'] td{ border: none; } .panel-body table[border='0'] tr{ border: none; } .auto-caption img{ height: auto !important; } </style>]]>
131 <![CDATA[<script type="text/javascript"> $(function() { $('.auto-caption img').captionjs({ 'force_dimensions':false, 'is_responsive':false, 'inherit_styles':true }); }); </script>]]>
176 <![CDATA[<script> $(".popup").fancybox({ 'width': '95%', 'height': '92%', 'autoScale': false, 'transitionIn': 'none', 'transitionOut': 'none', 'type': 'iframe' }); </script>]]>
188 <![CDATA[<script> const BASE_URL = "http://www.camarafundao.es.gov.br/"; function fonte(e) { var elements = $('p, h1, h2, h3, h4, h5, h6, a, button, input, i, svg'); elements.each((index, item) => { let element = $(item); let font = $(element).css('font-size'); let newFont = e == 'a' ? parseInt(font) + 1 : parseInt(font) - 1; element.css('font-size', newFont); }) } function openSearch(e) { // Função de Botão de Busca if ($('#bloco-logo .form-padrao input').val() != '') { $('#bloco-logo form').submit(); } else { let button = document.querySelector('#bloco-logo button.botao-busca'); let form = document.querySelector('#bloco-logo .form-padrao'); form.classList.toggle('hidden'); button.classList.toggle('hidden'); } } function dataAtualFormatada(e) { let data = new Date(e); let dia = data.getDate(); if (dia <= 9) dia = "0" + dia; var meses = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"]; data = dia + " de " + meses[data.getMonth()] + " de " + data.getFullYear(); return data; } $(".nav-stacked a").click(function(e) { if ($(this).children('svg').attr('data-icon') == 'plus') $(this).children('svg').attr('data-icon', 'minus') else $(this).children('svg').attr('data-icon', 'plus') }); $('.dropdown-submenu a.submenu-institucional').on("click", function(e) { // Faz os submenu do submenu funcionar no mobile e.preventDefault(); $(this).next('ul').toggle('open'); e.stopPropagation(); }); $(document).ready(function() { // Processa depois de carregar a página if (typeof funcion_a_comprobar === 'function') { if (typeof number == "undefined" || number == null) { let number = $('.inputmask_tel'); number.inputmask({ mask: ["+55 (99) 9999-9999", "+55 (99) 9 9999-9999", ], keepStatic: true }); } if (typeof cpf_cnpj == "undefined" || cpf_cnpj == null) { let cpf_cnpj = $('.inputmask_cpf_cnpj'); cpf_cnpj.inputmask({ mask: ["999.999.999-99", "99.999.999/9999-99", ], keepStatic: true }); } } $(window).scroll(function() { var scrollTop = $(window).scrollTop(); if (scrollTop > 80) { $('#acessibilidade').addClass("navbar-fixed-top"); } else { $('#acessibilidade').removeClass("navbar-fixed-top"); } }); var html = document.getElementsByTagName('html')[0]; html.style.cssText = '--Primary0: #1F3F63; --Primary1: #345070; --Primary2: #4C637D;'; function removeAcento(text) { // Função que remove assentos text = text.toLowerCase(); text = text.replace(new RegExp('[ÁÀÂÃ]', 'gi'), 'a'); text = text.replace(new RegExp('[ÉÈÊ]', 'gi'), 'e'); text = text.replace(new RegExp('[ÍÌÎ]', 'gi'), 'i'); text = text.replace(new RegExp('[ÓÒÔÕ]', 'gi'), 'o'); text = text.replace(new RegExp('[ÚÙÛ]', 'gi'), 'u'); text = text.replace(new RegExp('[Ç]', 'gi'), 'c'); return text; } // ===================== SERVIÇOS ===================== // Filtro por Pesquisa function filtra_servicos(value) { value = removeAcento(value.toLowerCase()); setTimeout(() => { var bloco_tabs = $('.bloco-tabs ul'); // bloco_tabs.hide(); $(".bloco-tabs ul li").filter(function() { let item = removeAcento($(this).text().toLowerCase()); $(this).toggle(item.indexOf(value) > -1); if ($(bloco_tabs).is(":hidden")) { return $('.openTabs').click(); } }); }, 500); } $("#search-faq #termos").on("keyup", function(e) { var value = e.target.value; filtra_servicos(value); }); $("#search-faq").on("submit", function(e) { e.preventDefault(); var value = $("#search-faq #termos").val(); filtra_servicos(value); }); $('#acesso a').click(function(e) { e.preventDefault(); var categoria = $(this).data('categoria'); var request = $.ajax({ // type: 'POST', // data: data, //dataType tells jQuery to expect JSON response dataType: "json", url: BASE_URL + `faq/faqs_post/?categoria_id=` + categoria, beforeSend() { $('.bloco-tabs ul.nav').html(''); $('.bloco-tabs ul.nav').addClass('loader'); }, }) .done(function(msg) { $('.bloco-tabs ul.nav').removeClass('loader'); $('.bloco-tabs ul.nav').load(); msg.map(item => { $('ul.nav.nav-pills.nav-stacked').append(` <li> <a class="item" data-toggle="collapse" href="#${item.id}" role="button" aria-expanded="false" aria-controls="${item.id}">${item.pergunta} <i class="fa fa-plus"></i></a> <div class="texto collapse" id="${item.id}"> ${item.resposta} </div> </li> `); }); }) .fail(function() { $('.message').html('Não consegui carregar, tente novamente.'); }); }); var isSomethingTrue = false; $('.openTabs').click(function(e) { e.preventDefault(); $('.bloco-tabs').toggle('in'); $(this).toggleClass('botao-primary0'); if (!isSomethingTrue) { isSomethingTrue = true; $(this).html('Ver menos serviços'); } else { isSomethingTrue = false; $(this).html('Ver todos os serviços'); } }); // ===================== SERVIÇOS ===================== // Função de Load More Notícias var offset_posts = 5 $('#load_more_posts').click(function(e) { e.preventDefault(); var request = $.ajax({ // type: 'GET', // data: data, //dataType tells jQuery to expect JSON response dataType: "json", url: BASE_URL + `noticia/get_post/${offset_posts}/5`, beforeSend() { $('#load_more_posts').html('Carregando...'); $('.loader').removeClass('hidden'); }, }) .done(function(msg) { offset_posts = offset_posts + 5; $('.loader').addClass('hidden'); $('#load_more_posts').html('Carregar mais notícias'); msg.map(item => { $('.noticias').append(` <a href="${BASE_URL}noticia/ler/${item.id}/${item.titulo.normalize('NFD').replace(/[\u0300-\u036f]/g, '').replace(/[^\w-]+/g, '-').toLowerCase()}" title="Notícia: ${item.titulo}"> <div class="col-xs-12 imagem no-padding"> <img class="img-responsive" src="${item.capa}" alt="${item.titulo}" /> </div> <div class="col-xs-12 texto"> <h2>${item.titulo}</h2> <p>` + item.chamada.substring(0, 550) + `</p> <h5>` + dataAtualFormatada(item.publicacao) + `</h5> </div> <hr /> </a> `); }) }) .fail(function() { $('.message').html('Não consegui carregar, tente novamente.'); }); }); // Função de Load More nos Faqs var offset_faqs = 8 $('#load_more_faq').click(function(e) { e.preventDefault(); var request = $.ajax({ dataType: "json", url: BASE_URL + `faq/faqs_post/${offset_faqs}/5`, beforeSend() { $('#load_more_faq').html('Carregando...'); $('.loader').removeClass('hidden'); }, }) .done(function(msg) { offset_faqs = offset_faqs + 5; $('.loader').addClass('hidden'); $('#load_more_faq').html('Carregar mais perguntas'); msg.map(item => { $('ul.nav.nav-pills.nav-stacked').append(` <li> <a class="item" data-toggle="collapse" href="#${item.id}" role="button" aria-expanded="false" aria-controls="${item.id}">${item.pergunta} <i class="fa fa-plus"></i></a> <div class="texto collapse" id="${item.id}"> ${item.resposta} </div> </li> `); }) }) .fail(function() { $('.message').html('Não consegui carregar, tente novamente.'); }); }); // Bloco de Vereadores/Atividade Legislativa no Portal Institucional var VereadoresAPI = $('.vereadores-lista').data('vereadoresapi'); if (typeof VereadoresAPI !== "undefined" && VereadoresAPI) { // alert(VereadoresAPI); $.getJSON(VereadoresAPI + 'api/vereador/?v=2&qtd=100', function(json) { // Lista os Vereadores var bloco_vereadores = $('.vereadores-lista'); var parlamentar = $.map(json.dados, function(item) { var situacoes = ['Licença', 'Suplente', 'Falecido', 'Licenciado para assumir cargo no Executivo']; if (situacoes.includes(item.situacao)) return; var email = `<h5 class="email"><i class="fas fa-envelope"></i>${item.email}</h5>`; return bloco_vereadores.append(` <a target="_blank" href="${VereadoresAPI}vereador.aspx?id=${item.ID}" target="_blank" title="Veja mais sobre o vereador(a) ${item.nome_parlamentar}" class="vereador-item"> <div class="imagem"> <img src="${item.foto}" alt="Foto do vereador(a) ${item.nome}" /> </div> <div class="texto"> <h3>${item.nome}</h3> ${email ? email : null} <h5 class="partido">${item.partido_sigla}</h5> </div> </a> `); // <p>Situação <span>${item.situacao}</span></p> }); }); $('.vereadores-lista .loader').hide(); } var ClienteUrlApi = $('#atividade-legislativa').data('clienteurlapi'); // console.log(ClienteUrlApi); if (typeof ClienteUrlApi !== "undefined" && ClienteUrlApi) { $.getJSON(ClienteUrlApi + 'api/norma_filtros?v=2', function(json) { var data = $.map(json.tipos, function(item) { return { id: item.tipo_id, text: item.tipo } }); data.unshift({ id: '', text: '' }); return $('.especie_normativa').select2({ // Monta o Select usando Ajax placeholder: 'Selecione o tipo', width: '100%', data: data }); }); $.getJSON(ClienteUrlApi + 'api/proposicao_filtros/?v=2&area=LEG', function(json) { var data = $.map(json.tipos, function(item) { return { id: item.tipo_id, text: item.tipo } }); data.unshift({ id: '', text: '' }); return $('.proposicoes').select2({ // Monta o Select usando Ajax placeholder: 'Selecione o tipo', width: '100%', data: data }); }); $.getJSON(ClienteUrlApi + 'api/proposicao_filtros/?v=2&area=ADM', function(json) { var data = $.map(json.tipos, function(item) { return { id: item.tipo_id, text: item.tipo } }); data.unshift({ id: '', text: '' }); return $('.processos_administrativos').select2({ // Monta o Select usando Ajax placeholder: 'Selecione o tipo', width: '100%', data: data }); }); } // Função de Load More nos Faqs // $('#fotos a:not(.botao)').click(function(e) { $('#fotos .link-popup').click(function(e) { e.preventDefault(); let idGaleria = $(this).data('id'); let dado = $(this); //Initial csrf values var data = {}; var api_images = []; var api_titles = []; var api_descriptions = []; $.ajax({ // type: 'POST', data: data, //dataType tells jQuery to expect JSON response dataType: "json", url: BASE_URL + `galeria/get_galeria_anexos/` + idGaleria, }) .done(function(msg) { if (msg.length === 0) { api_images.push(dado.context.href); api_titles.push(dado.context.alt); api_descriptions.push(['']); } else { msg.map(item => { api_images.push(item['arquivo']); api_titles.push(item['titulo']); api_descriptions.push(item['titulo']); }); } $.prettyPhoto.open(api_images, api_titles, api_descriptions); $.prettyPhoto.changePage('next'); $.prettyPhoto.changePage('previous'); $.prettyPhoto.close(); }) .fail(function(response, status, error) { // console.log(error); $.prettyPhoto.open(BASE_URL + 'assets/img/brasao.jpg', 'Não consegui carregar, tente novamente.', ''); }); }); $('#fotos .galeria').click(function(e) { e.preventDefault(); let idGaleria = $(this).data('id'); let dado = $(this); //Initial csrf values var data = {}; var api_images = []; var api_titles = []; var api_descriptions = []; $.ajax({ // type: 'POST', data: data, //dataType tells jQuery to expect JSON response dataType: "json", url: BASE_URL + `galeria/get_galeria_anexos/` + idGaleria, }) .done(function(msg) { if (msg.length === 0) { api_images.push(dado.context.href); api_titles.push(dado.context.alt); api_descriptions.push(['']); } else { msg.map(item => { api_images.push(item['arquivo']); api_titles.push(item['titulo']); api_descriptions.push(item['titulo']); }); } $.prettyPhoto.open(api_images, api_titles, api_descriptions); $.prettyPhoto.changePage('next'); $.prettyPhoto.changePage('previous'); $.prettyPhoto.close(); }) .fail(function(response, status, error) { // console.log(error); $.prettyPhoto.open(BASE_URL + 'assets/img/brasao.jpg', 'Não consegui carregar, tente novamente.', ''); }); }); // Auto Contraste Função $('#acessibilidade_contraste').on('click', function(event) { event.preventDefault(); $('body').toggleClass('contrast'); $('body').toggleClass('scrollbar-color'); $('#acesso-rapido .col-lg-11>.row').toggleClass('scrollbar-color'); if ($(this).attr('data-original-title') == 'Aplicar auto contraste') { $(this).attr('data-original-title', 'Remover auto contraste'); } else { $(this).attr('data-original-title', 'Aplicar auto contraste'); }; var logo_menu = document.getElementById('logo-menu'); if (!logo_menu) return null; if (logo_menu.src == 'http://www.camarafundao.es.gov.br/assets/img/logo_site_branco.png') logo_menu.src = 'http://www.camarafundao.es.gov.br/assets/img/logo_site.png'; else logo_menu.src = 'http://www.camarafundao.es.gov.br/assets/img/logo_site_branco.png'; }); var Contrast = { storage: 'contrastState', cssClass: 'contrast', currentState: null, check: checkContrast, getState: getContrastState, setState: setContrastState, toogle: toogleContrast, updateView: updateViewContrast }; toggleContrast = function() { Contrast.toogle(); }; Contrast.check(); function checkContrast() { this.updateView(); } function getContrastState() { return localStorage.getItem(this.storage) === 'true'; } function setContrastState(state) { localStorage.setItem(this.storage, '' + state); this.currentState = state; this.updateView(); } function updateViewContrast() { var body = document.body; if (!body) return; if (this.currentState === null) this.currentState = this.getState(); if (this.currentState) { body.classList.add(this.cssClass); } else { body.classList.remove(this.cssClass); } } function toogleContrast() { this.setState(!this.currentState); } // FIM AUTOCONTRASTE $('a[rel=group]').fancybox(); $("a[rel^='prettyPhoto']").prettyPhoto({ default_width: 700, //I have tried playing with these values default_height: 500, //I have tried playing with these values theme: 'light_rounded', social_tools: '<a target="_blank" download href="#" class="download_image left btn btn-xs btn-default"><span class="fa fa-download"></span> Baixar Imagem</a>', overlay_gallery: false, show_title: false, hideflash: true, iframe_markup: "<iframe src='{path}' width='{width}' height='{height}' frameborder='no' allowfullscreen='true'></iframe>", deeplinking: false }); $('body').on('click', '.download_image', function() { var foto_download = $('#fullResImage').attr('src'); $(this).attr('href', foto_download); }); $('div.thumbnail').on('click', 'a', function() { var id = $(this).attr('id'); if (id.length) { $.ajax({ url: BASE_URL + 'galeria/contador_acessos/' + id, type: "post", data: { 'id': id } }); } }); // VERIFICA SWIPER if (document.getElementsByClassName('destaques').length !== 0) { var destaques = new Swiper(".destaques", { loop: true, // autoHeight: true, autoplay: { delay: 5000, disableOnInteraction: false, }, pagination: { el: ".destaques .swiper-pagination", dynamicBullets: true, clickable: true, }, navigation: { nextEl: ".destaques .swiper-button-next", prevEl: ".destaques .swiper-button-prev", }, }); } var swiper = new Swiper(".mySwiper", { slidesPerView: 2, spaceBetween: 30, pagination: { el: ".swiper-pagination", clickable: true, }, }); $('.carousel').carousel(); var swiper = new Swiper('.agendaSwiper', { slidesPerView: 3, // spaceBetween: 30, cssMode: true, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, pagination: { el: ".swiper-pagination", }, mousewheel: true, keyboard: true, pagination: { el: ".swiper-pagination", clickable: true, }, }); function getDirection() { var windowWidth = window.innerWidth; var direction = window.innerWidth <= 760 ? 'vertical' : 'horizontal'; return direction; } if (document.getElementsByClassName('especialidades').length !== 0) { var especialidades = new Swiper(".especialidades", { // slidesPerView: 1, calculateHeight: true, spaceBetween: 20, breakpoints: { // 0: { // }, // when window width is >= 768px 769: { slidesPerGroup: 4, slidesPerView: 2, allowTouchMove: false, grid: { rows: 2, }, }, }, // loop: true, // <- causes issues combined with multi row setup!! navigation: { nextEl: ".especialidades .swiper-button-next", prevEl: ".especialidades .swiper-button-prev", }, }); } if (document.getElementsByClassName('galerias').length != 0) { var banners = new Swiper(".galerias", { slidesPerView: 1, autoHeight: true, loop: true, spaceBetween: 10, // effect: "fade", breakpoints: { // 0: { // }, // when window width is >= 768px 769: { slidesPerView: 4, }, }, navigation: { nextEl: "#galerias .next", prevEl: "#galerias .prev", }, pagination: { el: ".galerias .swiper-pagination", clickable: true, }, }); } if (document.getElementsByClassName('banners').length != 0) { var banners = new Swiper(".banners", { slidesPerView: 1, autoHeight: true, loop: true, spaceBetween: 10, // effect: "fade", autoplay: { delay: 5000, disableOnInteraction: false, }, navigation: { nextEl: ".banners .swiper-button-next", prevEl: ".banners .swiper-button-prev", }, pagination: { el: ".banners .swiper-pagination", clickable: true, }, }); var estatico = new Swiper(".estatico", { slidesPerView: 1, autoHeight: true, loop: false, spaceBetween: 10, // effect: "fade", autoplay: { // delay: 3000, disableOnInteraction: true, }, navigation: { nextEl: ".estatico .swiper-button-next", prevEl: ".estatico .swiper-button-prev", }, pagination: { el: ".estatico .swiper-pagination", clickable: true, }, }); } if (document.getElementsByClassName('portais').length != 0) { var portais = new Swiper(".portais", { loop: true, loopFillGroupWithBlank: true, breakpoints: { 0: { slidesPerView: 1, slidesPerGroup: 1, }, // when window width is >= 768px 769: { slidesPerView: 6, slidesPerGroup: 6, spaceBetween: 30, }, }, navigation: { nextEl: ".portais .swiper-button-next", prevEl: ".portais .swiper-button-prev", }, }); } $('#web-tv #video').carousel({ interval: false, }); // bootstrap-datepicker --------------------- // if (typeof $('.bootstrap_datepicker') !== 'undefined') { // $('.bootstrap_datepicker').datepicker({ // format: 'dd/mm/yyyy' // }); // } $('#imprimir').click(function() { window.print(); }); }); function cookies(functions) { const container = document.querySelector('.cookies-container'); const save = document.querySelector('.cookies-save'); if (!container || !save) return null; const localPref = JSON.parse(window.localStorage.getItem('cookies-pref')); if (localPref) activateFunctions(localPref); function getFormPref() { return [...document.querySelectorAll('[data-function]')] .filter((el) => el.checked) .map((el) => el.getAttribute('data-function')); } function activateFunctions(pref) { pref.forEach((f) => functions[f]()); container.style.display = 'none'; window.localStorage.setItem('cookies-pref', JSON.stringify(pref)); } function handleSave() { const pref = getFormPref(); activateFunctions(pref); } save.addEventListener('click', handleSave); } function analytics() { window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', ''); console.log('Função anali..'); } function simplecookie() { console.log('Política de Privacidade Autorizada'); } // ============================================================ // Função Frame do Youtube // 2. This code loads the IFrame Player API code asynchronously. var tag = document.createElement('script'); tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); // 3. This function creates an <iframe> (and YouTube player) // after the API code downloads. function onYouTubeIframeAPIReady() { var player; // console.log($(this)); player = new YT.Player('player', { videoId: 'M7lc1UVf-VE', events: { 'onReady': onPlayerReady, // 'onPlaybackQualityChange': onPlayerPlaybackQualityChange, 'onStateChange': onPlayerStateChange, // 'onError': onPlayerError } }); } async function onPlayerReady(event) { event.target.setVolume(100); event.target.playVideo(); } var done = false; async function onPlayerStateChange(event) { if (event.data == YT.PlayerState.PLAYING && !done) { setTimeout(stopVideo, 6000); done = true; } } async function stopVideo() { player.stopVideo(); } </script>]]>
1011 <![CDATA[<script text="text/Javascript"> $(function() { // Recaptcha no formulário da Newsletter $(".form_recaptcha .bnt_submit_recaptcha").click(function(e) { e.preventDefault(); grecaptcha.execute('6Ldj0XAUAAAAAMAjRAG-sObYFcqv8YWT0CDTYuVn').then(function(token) { var recaptchaResponse = document.getElementById('recaptcha_token'); recaptchaResponse.value = token; $('.form_recaptcha').submit(); }) }) }); // var form = $('#newsletter'); // $(form).submit(function(e) { // Função do Formulario newsletter da Home // e.preventDefault(); // grecaptcha.execute('6Ldj0XAUAAAAAMAjRAG-sObYFcqv8YWT0CDTYuVn').then(function(token) { // // add token value to form // document.getElementById('g-recaptcha-response').value = token; // $.ajax({ // type: form.attr('method'), // url: form.attr('action'), // dataType: 'json', // data: form.serialize(), // beforeSend() { // // console.log('Carregando...'); // $('#newsletter .loader').toggleClass('hidden'); // }, // }) // .success(function(msg) { // // console.log(msg); // if (msg == 200) { // alertify.success('Contato cadastrado com sucesso!'); // } else { // alertify.error(msg); // } // $('#newsletter .loader').toggleClass('hidden'); // }) // .fail(function(request, status, error) { // // console.log('Status: ', status); // $('#newsletter .loader').toggleClass('hidden'); // }); // }); // }); </script>]]>
1059 <![CDATA[<script> var preloader = document.getElementById('preloader'); if (typeof preloader !== "undefined" && preloader) { document.addEventListener('DOMContentLoaded', function() { setTimeout(() => { // if (document.readyState === "complete") { // Ainda carregando preloader.classList.toggle('loaded') setTimeout(() => { preloader.classList.add('hidden') }, 1000); // } }, 3000); }); } </script>]]>
1084 <![CDATA[<script> (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-78100420-1', 'auto'); ga('send', 'pageview'); </script>]]>