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 *.

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 6 844 845 846 847 848 1110
1.1.4 Presença de CSS(s) interno 2 893 1073
1.1.5 Presença de javascript(s) in-line 58 637 673 674 675 676 677 683 684 685 686 687 688 694 695 696 697 698 699 700 701 707 708 709 710 711 712 713 719 720 721 722 723 724 725 726 727 728 729 730 731 737 738 739 740 741 742 743 744 745 814 858 875 1114 1131 1137 1143 1149 1155
1.1.6 Presença de javascript(s) interno 7 43 56 102 1023 1391 1402 1413
844 <![CDATA[<a href="https://instagram.com/assembleiademinas/" class="rounded-circle hover-lift width-3x height-3x align-middle d-flex align-items-center justify-content-center mx-1" style="background:#E1306C;"><i class="text-white lh-base fs-4 bx bxl-instagram"></i></a>]]>
845 <![CDATA[<a href="https://t.me/assembleiamg" class="rounded-circle hover-lift width-3x height-3x align-middle d-flex align-items-center justify-content-center mx-1" style="background:#229ED9;"><i class="text-white lh-base fs-4 bx bxl-telegram"></i></a>]]>
846 <![CDATA[<a href="https://www.facebook.com/assembleiademinas" class="rounded-circle hover-lift width-3x height-3x align-middle d-flex align-items-center justify-content-center mx-1" style="background:#4267B2;"><i class="text-white lh-base fs-4 bx bxl-facebook"></i></a>]]>
847 <![CDATA[<a href="https://twitter.com/assembleiamg/" class="rounded-circle hover-lift width-3x height-3x align-middle d-flex align-items-center justify-content-center mx-1" style="background:#1DA1F2;"><i class="text-white lh-base fs-4 bx bxl-twitter"></i></a>]]>
848 <![CDATA[<a href="http://www.youtube.com/assembleiamg/" class="rounded-circle hover-lift width-3x height-3x align-middle d-flex align-items-center justify-content-center mx-1" style="background:#FF0000;"><i class="text-white lh-base fs-4 bx bxl-youtube"></i></a>]]>
1110 <![CDATA[<div class="position-absolute z-index-1 d-none d-lg-block d-print-none" style="margin-left: -75px;"> <button aria-label="Compartilhar" class="btn btn-gray-500 rounded-0 fs-4 px-2 py-0 d-block border-bottom" data-bs-toggle="modal" data-bs-target="#modal-share"> <i class="bi bi-share-fill text-white"></i><span class="d-none">Compartilhar</span> </button> <button href="javascript:;" onclick="postToEmail(); return false;" aria-label="Compartilhar por e-mail" class="btn btn-gray-500 rounded-0 fs-4 px-2 py-0 d-block border-bottom"> <i class="bi bi-envelope-fill text-white"></i><span class="d-none">Compartilhar por e-mail</span> </button> </div>]]>
893 <![CDATA[<style> .navbar .dropdown-menu { transform: translateY(16px) !important; transition: all .2s ease-in-out !important; } .navbar .dropdown-menu.show { transition: opacity .15s,transform .25s cubic-bezier(.25,.5,.75,1) !important; transform: none !important; } </style>]]>
1073 <![CDATA[<style> /* Busca local e Share */ .mobileActionBar { transition: all 0.5s; } .mobileActionBar.active { background-color:var(--bs-gray-100); } .mobileActionBar button[aria-expanded=true] i, /* accordion */ body.modal-open .mobileActionBar button[data-bs-toggle='modal'] i /* modal */ { font-weight: bold; } </style>]]>
637 <![CDATA[<a class="my-auto js_loginBtn" title="Menu do Usuário" data-bs-toggle="offcanvas" role="button" aria-controls="offcanvasEnd" href="#" onclick="usuarios_login();"> <i class="bi bi-person-fill display-3 d-block d-md-none"></i><!-- Phone --> <i class="bi bi-person-fill display-5 d-none d-md-block"></i><!-- Tablet --> </a>]]>
673 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/a-assembleia/deputados/deputado/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Deputados<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
674 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/a-assembleia/presidencia/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Presidência<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
675 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/a-assembleia/mesa-diretora/mesa-atual/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Mesa Diretora<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
676 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/a-assembleia/entenda-a-assembleia/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Entenda a Assembleia<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
677 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/a-assembleia/memoria/linha-do-tempo/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Memória<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
683 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/atividade-parlamentar/plenario/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Plenário<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
684 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/atividade-parlamentar/comissoes/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Comissões<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
685 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/atividade-parlamentar/leis/legislacao-mineira/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Leis<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
686 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/atividade-parlamentar/projetos-de-lei/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Projetos de lei<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
687 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/atividade-parlamentar/fiscalizacao/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Fiscalização<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
688 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/atividade-parlamentar/orcamento-do-estado/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Orçamento do Estado<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
694 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/participacao/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Inicial<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
695 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/participacao/eventos/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Eventos<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
696 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/participacao/reunioes-interativas/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Reuniões interativas<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
697 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/participacao/opine-sobre-projetos-de-lei/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Opine sobre projetos de lei<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
698 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/participacao/proponha-um-projeto-de-lei/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Proponha um projeto de lei<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
699 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/participacao/consulta-publica/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Consulta pública<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
700 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/participacao/enquetes/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Enquetes<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
701 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/participacao/parlamento-jovem/edicoes/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Parlamento Jovem<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
707 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/comunicacao/agenda/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Agenda<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
708 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/comunicacao/noticias/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Notícias<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
709 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/comunicacao/tv-assembleia/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> TV Assembleia<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
710 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/comunicacao/radio-assembleia/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Rádio Assembleia<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
711 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/comunicacao/fotos/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Fotos<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
712 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/comunicacao/conteudos-especiais/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Conteúdos especiais<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
713 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/comunicacao/sala-de-imprensa/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Sala de imprensa<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
719 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/servicos/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Inicial<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
720 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/servicos/procon/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Procon Assembleia<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
721 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/servicos/espaco-cidadania/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Espaço Cidadania<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
722 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/servicos/escola-do-legislativo/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Escola do Legislativo<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
723 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/servicos/ouvidoria-parlamentar/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Ouvidoria Parlamentar<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
724 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/servicos/procuradoria-da-mulher/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Procuradoria da Mulher<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
725 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/servicos/biblioteca/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Biblioteca<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
726 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/servicos/apoio-as-camaras/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Apoio às câmaras<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
727 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/servicos/apoio-as-prefeituras/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Apoio às prefeituras<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
728 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/servicos/visite-a-assembleia/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Visite a Assembleia<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
729 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/servicos/assembleia-cultural/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Assembleia Cultural<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
730 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/servicos/boletins-por-e-mail/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Boletins por e-mail<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
731 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/servicos/fale-com-a-assembleia/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Fale com a Assembleia<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
737 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/transparencia/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Inicial<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
738 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/transparencia/diario-do-legislativo/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Diário do Legislativo<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
739 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/transparencia/prestacao-de-contas/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Prestação de contas<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
740 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/transparencia/licitacoes/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Licitações<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
741 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/transparencia/concursos-publicos/vigentes/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Concursos públicos<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
742 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/transparencia/balanco-das-atividades/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Balanço das atividades<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
743 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/transparencia/direcionamento-estrategico/ciclo-2020-2030/inicial/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Direcionamento Estratégico<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
744 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/transparencia/protecao-de-dados-pessoais/lei-geral-de-protecao-de-dados/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Proteção de dados pessoais<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
745 <![CDATA[<a onclick="var s = $(this).find('.spinner-grow'); s.removeClass('d-none'); setTimeout(function(){ s.addClass('d-none'); }, 20000);" href="/transparencia/dados-abertos/" class="link-primary list-group-item bg-transparent border-0 fs-6 py-2 ps-3 pe-0 lh-sm"><i class="bi bi-dot text-primary"></i> Dados abertos<span class="spinner-grow spinner-grow-sm text-gray-400 ms-2 d-none" role="status" aria-hidden="true"></span></a>]]>
814 <![CDATA[<a href="#" class="text-white fs-5" onclick="usuarios_logout()">Sair <i class="bi bi-box-arrow-right"></i></a>]]>
858 <![CDATA[<a href="#" class="btn btn-primary btn-sm text-uppercase" onclick="usuarios_login();"> <i class='bx bxs-user fs-6 me-1 lh-1'></i>Entrar </a>]]>
875 <![CDATA[<a class="dropdown-item fw-semibold" href="#" onclick="usuarios_logout()">Sair <i class="bi bi-box-arrow-right"></i></a>]]>
1114 <![CDATA[<button href="javascript:;" onclick="postToEmail(); return false;" aria-label="Compartilhar por e-mail" class="btn btn-gray-500 rounded-0 fs-4 px-2 py-0 d-block border-bottom"> <i class="bi bi-envelope-fill text-white"></i><span class="d-none">Compartilhar por e-mail</span> </button>]]>
1131 <![CDATA[<a href="javascript:;" onclick="postToWhatsApp(); return false;" class="d-inline-flex btn w-100 mb-3 position-relative si-colored-whatsapp flex-center"> <div class="position-relative d-flex align-items-center"> <i class="bx bxl-whatsapp fs-5 me-2"></i> <span>Whatsapp</span> </div> </a>]]>
1137 <![CDATA[<a href="javascript:;" onclick="postToTelegram(); return false;" class="d-inline-flex btn w-100 mb-3 position-relative si-colored-twitter flex-center"> <div class="position-relative d-flex align-items-center"> <i class="bx bxl-telegram fs-5 me-2"></i> <span>Telegram</span> </div> </a>]]>
1143 <![CDATA[<a href="javascript:;" onclick="postToFacebook(); return false;" class="d-inline-flex btn w-100 mb-3 position-relative si-colored-facebook flex-center"> <div class="position-relative d-flex align-items-center"> <i class="bx bxl-facebook fs-5 me-2"></i> <span>Facebook</span> </div> </a>]]>
1149 <![CDATA[<a href="javascript:;" onclick="postToTwitter(); return false;" class="d-inline-flex btn w-100 mb-3 position-relative si-colored-twitter flex-center"> <div class="position-relative d-flex align-items-center"> <i class="bx bxl-twitter fs-5 me-2"></i> <span>Twitter</span> </div> </a>]]>
1155 <![CDATA[<a href="javascript:;" onclick="postToEmail(); return false;" class="d-inline-flex d-lg-none btn w-100 mb-3 position-relative bg-secondary text-white flex-center"> <div class="position-relative d-flex align-items-center"> <i class="bx bxs-envelope fs-5 me-2"></i> <span>Email</span> </div> </a>]]>
43 <![CDATA[<script> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-9332994-1']); _gaq.push(['_trackPageview']); window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-9332994-1'); </script>]]>
56 <![CDATA[<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-JW8447VCK7'); </script>]]>
102 <![CDATA[<script> /* ------------------------ */ /* --- FUNCOES DE APOIO --- */ /* ------------------------ */ //Substituir espaços simples (substituira todo e qualquer espaco) function removeWhitespace(text) { var retorno = text, substitute = ""; retorno = retorno.replace(/ ;/gi, substitute).replace(/ +?/g, substitute).replace(/\s/g, substitute).replace(/\s+/g, substitute).replace(/ /g, substitute); return retorno; } //Identificar tipo da URL function urlType(href){ if(href==undefined){ return false; }else{ var retorno = ""; if(href=="" || href=="#" || href=="javascript:;" || href.replace(";","")=="javascript:void(0)") retorno = "placebo"; if(href.indexOf("tel:")!=-1 || href.indexOf("mailto:")!=-1 || href.indexOf("whatsapp://")!=-1 || href.indexOf("twitter://")!=-1 || href.indexOf("facetime://")!=-1 || href.indexOf("skype:skype_user")!=-1) retorno = "app"; if(href.charAt(0)=="/" || href.charAt(0)==".") retorno = "relative"; if(href.indexOf("http")!=-1){ var url = window.location.host; if(href.indexOf(url.toString())!=-1) retorno = "absolute"; else retorno = "external"; } return retorno; } } //Variaveis globais var widthViewport = $(window).width(); //+ f_scrollWidth(); //Elementos gerais var generalPrefix = "almg-js"; var generalArticle = generalPrefix+"_notTexto"; //Elementos existentes no DOM var mediaPrefix = generalPrefix+"_move"; var mediaAll = "."+mediaPrefix+"Video, ."+mediaPrefix+"Audio, ."+mediaPrefix+"Foto, ."+mediaPrefix+"Album, ."+mediaPrefix+"Infografico, ."+mediaPrefix+"Ilustracao, ."+mediaPrefix+"Arquivo, ."+mediaPrefix+"SaibaMais, ."+mediaPrefix+"Bloco, ."+mediaPrefix+"Padrao"; //Elementos criados no DOM var containerPrefix = generalPrefix+"_new"; var containerSwipe = containerPrefix + "Swipe"; var containerSwipeItem = containerPrefix + "SwipeItem"; var containerList = containerPrefix + "Lista"; var containerFooter = containerPrefix + "Footer"; var containerAlbum = containerPrefix + "Album"; //Elementos temporários no DOM var mediaMoved = generalPrefix+"_moved"; var anchorToRemove = generalPrefix+"_removeme"; /* ------------------------------------- */ /* --- TRATAMENTO NOTICIAS COM MIDIA --- */ /* ------------------------------------- */ //Exemplos: //arquivos/2016/03/14_solenidade_entrega_ambulancias.html //Fotos e vídeos com swipe //arquivos/2016/03/11_forum_educacao_montes_claros.html //Várias midias inseridas ao longo da matéria //arquivos/2022/04/06_plenario_direito_moradia_violencia_domestica //Video e Audio //arquivos/2020/08/31_comissao_especial_pec55_substitutivo4.html //arquivos/2013/08/26_comissao_aguas_audiencia_publica_mineriodutos.html //arquivos/2018/09/06_hotsite_eleicoes_participacao_mulheres.html //Infografico Simples //arquivos/2016/03/03_ciclo_debates_mulher_tarde.html //Infografico Navegavel (vertical) //arquivos/2019/01/30_retrospecto_comissao_barragens.html //Infografico Navegavel (horizontal) //arquivos/2013/12/02_direitos_humanos_expansao_fechos_mineracao.html //Boneco //arquivos/2020/09/17_release_minas_arte_casa_semana_oito.html //Boneco e Saiba Mais //arquivos/2012/03/30_retomada_do_mlp_da_ceasa_pelo_estado_e_criticada.html //Lista (Audio e Foto) e Swipe function mediaMoveExec(loop,mediaObject,anchorName){ //Pegar o anchor mediaObject.addClass(mediaMoved+ " " +mediaMoved+loop); //Identifica-la //mediaObject[0].classList.add(mediaMoved,mediaMoved+loop); var anchorObject = 'a[name="'+anchorName+'"]:eq('+loop+')'; //Pegar anchor var anchorObjectCount = $(anchorObject).length; console.log("[Move Mídia] Iniciou recorte de " +anchorName+ ": " +anchorObjectCount+ " correspondências"); //Se tiver o anchor if(anchorObjectCount>0){ //Mover media para anchor (trecho responsavel pela movimentacao das midias) mediaObject.detach().prependTo(anchorObject).show().removeClass("d-none").addClass("d-block"); //Movimentacao if($(anchorObject).parents("p").length > 0){ //Se anchor estiver dentro de um paragrafo $(anchorObject).insertBefore( $(anchorObject).parents("p") ); //Retira-lo do paragrafo if(removeWhitespace($(anchorObject).next().text())=="") $(anchorObject).next().remove(); //Se o paragrafo ficou vazio, removemos } mediaObject.insertBefore( $(anchorObject) ); //Tirar o elemento do aname $(anchorObject).addClass(anchorToRemove).hide(); //Identificar o aname para remover posteriormente (nao remover agora, pois, apos a remocao, o eq passa a ser loop-1) //Ajustes especificos por tipo de midia apos a movimentacao if(anchorName=="foto"){ if($(anchorObject).attr("data-name")=="boneco"){ //Foto-boneco //Container /* mediaObject.addClass("w-100 w-sm-50 w-md-25 w-lg-25 w-xl-50 p-0 mt-0 mb-3 overflow-hidden"); //max-height: 442px; object-fit: cover; object-position: top; if(mediaObject.hasClass("right")) mediaObject.addClass("float-end ms-4"); else mediaObject.addClass("float-start me-4"); */ //Objeto mediaObject.find("img").addClass("w-100"); }else{ //Foto comum //Container //mediaObject.addClass("mt-3 mb-3"); //Objeto (alinhamentos) /* if(mediaObject.find("."+generalPrefix+"_alinhar_topo").length>0) mediaObject.find("."+generalPrefix+"_alinhar_topo img").css("margin-top", 0); if(mediaObject.find("."+generalPrefix+"_alinhar_centro").length>0) mediaObject.find("."+generalPrefix+"_alinhar_centro img").css("margin-top", -(mediaObject.find("."+generalPrefix+"_alinhar_centro img").outerHeight() - mediaObject.find("."+generalPrefix+"_alinhar_centro").outerHeight()) /2); if(mediaObject.find("."+generalPrefix+"_alinhar_base").length>0) mediaObject.find("."+generalPrefix+"_alinhar_base img").css("margin-top", -(mediaObject.find("."+generalPrefix+"_alinhar_base img").outerHeight() - mediaObject.find("."+generalPrefix+"_alinhar_base").outerHeight()) ); */ } }else if(anchorName=="infografico"){ /* var src = mediaObject.find("img").attr("src"); var srcSplit=src.split("?"), params=srcSplit[1]; //Ex: t=Vertical&w=auto&h=490 if(params!=undefined){ //Se tem parametros no caminho da imagem, entao esses parametros podem ser recuperados para tratar a imagem como um infografico navegavel src = srcSplit[0]; var paramT = params.split("t=")[1].split("&")[0]; var paramW = params.split("w=")[1].split("&")[0]; var paramH = params.split("h=")[1].split("&")[0]; var paramO = ""; if(params.indexOf("orientation=")!=-1){ paramO = params.split("orientation=")[1].split("&")[0]; } var my_orientation = ""; if(paramO!="") my_orientation=' data-orientation="'+paramO+'"'; if(paramT!=undefined && paramW!=undefined && paramH!=undefined){ mediaObject.html('<div class="js_embedInfografico" data-image="'+src+'" data-tipo="'+paramT+'" data-width="'+paramW+'" data-height="'+paramH+'"'+my_orientation+'></div>'); if(loop==$("."+mediaPrefix+"Infografico").length-1){ ready_embedInfografico($("."+mediaPrefix+"Infografico").length-1); } } }else{ //nao faz nada, apenas deixa a imagem ser movida pelo codigo padrao (e a imagem continuará sendo renderizada inteira na pagina) } */ }else if(anchorName=="audio"){ //Container //mediaObject.addClass("border rounded p-3 mt-3 mb-3"); }else if(anchorName=="video"){ //Container //mediaObject.addClass("bg-black mt-3 mb-3"); }else if(anchorName=="saibamais"){ //Container //mediaObject.addClass("mt-5 mb-5"); }else if(anchorName=="album"){ //Criar novo container if($("."+containerAlbum).length==0) mediaObject.after('<ul class="'+containerAlbum+'"></ul>'); //Adicionar cada objeto ao novo container mediaObject.detach().prependTo("."+containerAlbum).replaceWith('<li>'+mediaObject.html()+'</li>').show().removeClass("d-none").addClass("d-block"); } //Se nao tiver anchor || se anchor é padrao (mesma coisa: os bloco(s)-padrao(oes) não precisaria(m) existir) }else if(anchorObjectCount==0 || anchorName=="padrao"){ if(anchorName=="video" || anchorName=="foto" || anchorName=="padrao"){ //Criar novo container var classe_ativo; //var atributo_ativo; if($("#"+containerSwipe).length==0){ classe_ativo = "active"; //atributo_ativo = 'class="active" aria-current="true"'; $("."+generalArticle).before('<div id="'+containerSwipe+'Bg" class="position-absolute bg-light w-100 start-0 d-none" style="z-index:-1;"></div><div id="'+containerSwipe+'" class="carousel slide mb-4 mb-xl-5 mx-xl-n4" data-bs-ride="carousel"><div class="carousel-inner shadow"></div><button class="carousel-control-prev width-3x height-3x bg-dark text-white top-50 translate-middle-y" type="button" data-bs-target="#'+containerSwipe+'" data-bs-slide="prev"><span class="carousel-control-prev-icon" aria-hidden="true"></span><span class="visually-hidden">Anterior</span></button><button class="carousel-control-next width-3x height-3x bg-dark text-white top-50 translate-middle-y" type="button" data-bs-target="#'+containerSwipe+'" data-bs-slide="next"><span class="carousel-control-next-icon" aria-hidden="true"></span><span class="visually-hidden">Próximo</span></button></div>'); //pb-4 border-bottom border-dark }else{ classe_ativo = ""; //atributo_ativo = ''; } //Adicionar cada objeto ao novo container //containerSwipeItem+" d-block w-100" mediaObject.detach().prependTo("#"+containerSwipe+" .carousel-inner").replaceWith('<div class="carousel-item '+containerSwipeItem+' '+classe_ativo+'">'+mediaObject.html()+'</div>').show(); //Pos-tratamento: indicadores (bullets) /* <div class="carousel-indicators"></div> var loop_swipe = $("."+containerSwipeItem).length; $("#"+containerSwipe+" .carousel-indicators").append('<button type="button" data-bs-target="#'+containerSwipe+'" data-bs-slide-to="'+(loop_swipe-1)+'" '+atributo_ativo+' aria-label="Slide 1"></button>'); */ //Pos-tratamento: Tratamento $("."+containerSwipeItem+" img").addClass("w-100 d-block"); $("."+containerSwipeItem+" video").parents(".ratio").addClass(containerSwipeItem+"Video ratio-4x3").removeClass("ratio-16x9"); //ratioSwp //Pos-tratamento: Legenda $("."+containerSwipeItem+ " .almg-js_label").each(function(idx, item) { //Para cada elemento var classe_legenda = ""; if($(item).prev("img").length>0) classe_legenda = "w-100 start-0 bottom-0 px-2 bg-black bg-opacity-50"; //Para imagem $(item).before('<div class="carousel-caption d-none d-md-block '+classe_legenda+'"><p>'+$(item).text()+'</p></div>').remove(); }); }else if(anchorName=="audio" || anchorName=="album"){ //Criar novo container if($("."+containerList).length==0) $("."+generalArticle).before('<ul class="'+containerList+' list-group mb-4 shadow-sm"></ul>'); //Adicionar cada objeto ao novo container mediaObject.detach().prependTo("."+containerList).replaceWith('<li class="list-group-item py-3 d-block">'+mediaObject.html()+'</li>').show().removeClass("d-none").addClass("d-block"); }else if(anchorName=="saibamais"){ //Criar novo container if($("."+containerFooter).length==0) $("."+generalArticle).after('<div class="'+containerFooter+' mt-3"></div>'); //Adicionar cada objeto ao novo container mediaObject.addClass(containerFooter).detach().prependTo("."+containerFooter).show().removeClass("d-none").addClass("d-block"); } } //Identificar midias movidas mediaObject.addClass(mediaMoved); console.info("[Move Mídia] Finalizada movimentação de " +anchorName+ "\n____________________________________"); } /* ------------------------------------------------------------- */ /* --- FIM MOVIMENTACAO DE MIDIAS (AJUSTES POS-RENDERIZACAO) --- */ /* ------------------------------------------------------------- */ function mediaMoveCallback(tipo){ //Bloco Swipe - ex: arquivos/2012/03/30_retomada_do_mlp_da_ceasa_pelo_estado_e_criticada.html if($("#"+containerSwipe).length>0){ //alert($(".carousel-item").length); if($("."+containerSwipeItem).length==1){ //Se tiver uma mídia if(tipo!="resize"){ //Apenas na primeira vez $(".carousel-control-prev,.carousel-control-next").hide(); //Esconder controles $("#"+containerSwipe).removeClass("mx-xl-n4"); } }else if($("."+containerSwipeItem).length>=2){ //Se tiver duas ou mais midias //Se tem imagem: forçar proporcao 4x3 - ratioSwp if($("#"+containerSwipe+" img").length>0){ //Pegar dimensoes var img = $("."+containerSwipeItem+" img"); var cont = $("."+containerSwipeItem+" img").parents("."+containerSwipeItem); var largura = cont.outerWidth(); var altura = (3*largura)/4; //Criar novo container if($("."+containerSwipeItem+"Foto").length==0) img.wrap("<div class='"+containerSwipeItem+"Foto'></div>"); //Aplicar nova proporcao $("."+containerSwipeItem+"Foto img").css("width",largura).css("height",altura).css("object-fit","cover"); } //Se tem video: Desabilitamos o auto-cycling if($("#"+containerSwipe+" video").length>0){ $("#"+containerSwipe).carousel('pause'); } //Altura do Bg var altura_outrer = $("#"+containerSwipe).outerHeight(); $("#"+containerSwipe+"Bg").css("height",altura_outrer);//+40).css("margin-top","-20px"); } } //Ajustar todos os tipos de accordions para versao standalone - ex: arquivos/2016/08/26_agenda_semana_29_agosto_a_2_setembro.html if(tipo!="resize"){ //Apenas na primeira vez $("a[onclick*='accordion(']").each(function(idx, item) { //Para cada elemento que contem onclick="accordion( //var parametros = getParameterFunc($(item),'onclick','accordion'); //console.log(parametros); //var parametrosArr = parametros.split(",") //if(parametrosArr[0]=="$(this)" && replaceAllDoubleQuotes(replaceAllSingleQuotes(parametrosArr[1]))=="next"){ var objTrigger = $(item); objTrigger.addClass("pb-3 d-block"); objTrigger.attr("href","javascript:;").attr("onclick","$('."+generalPrefix+"_toggleMe"+idx+"').slideToggle();"); var objParent = objTrigger.parent("#dicas-pesquisa"); objParent.addClass("m-0 pb-0 pt-3 border-bottom").attr("style",""); var objToToggle = objTrigger.next("div"); objToToggle.hide().addClass(generalPrefix+"_toggleMe"+idx+" pt-0 mt-0"); //} }); $(".AccordionTitulo_bloco").each(function(idx, item) { //Para cada elemento var objTrigger = $(item); objTrigger.addClass("pb-3 d-block"); objTrigger.attr("onclick","onclick","$('."+generalPrefix+"_toggleMe"+idx+"').slideToggle();"); var objParent = $(item).parent("p"); objParent.addClass("m-0 pb-0 pt-3 border-bottom").attr("style",""); //objParent.next().next().addClass("mt-1"); var objToToggle = objParent.next("blockquote"); objToToggle.hide().addClass(generalPrefix+"_toggleMe"+idx+" pt-0 mt-0"); }); } //Tratamento para urls relativas - ex: arquivos/2016/09/23_release_memorial_assembleia.html if(tipo!="resize"){ //Apenas na primeira vez $("."+generalArticle+" a").each(function(idx, item) { //Para cada elemento if(urlType($(item).attr("href"))=="relative"/* && $(item).parents("."+mediaMoved).length==0*/){ //Link relativo e nao pode ser filho de mediaMoved, como um bloco 'saiba mais', por exemplo. console.log("[Move Mídia] Link relativo que será tratdo: " + $(item).text() +" ("+ $(item).attr("href")+")."); $(item).attr("href","https://www.almg.gov.br"+$(item).attr("href")); } }); } //Imagens colocadas inline no texto - ex: arquivos/2002/05/Not328751.html if(tipo!="resize"){ //Apenas na primeira vez $("."+generalArticle+" img").each(function(idx, item) { //Para cada elemento if(!$(item).hasClass(mediaMoved) && $(item).parents("."+mediaMoved).length==0){ $(item).removeAttr("width").css("width","").removeAttr("height").css("height","auto").css("margin","").css("margin-top","").css("margin-bottom","").css("margin-left","").css("margin-right","").removeAttr("align").addClass(generalPrefix+"_imageInline w-100"); var source = $(item).attr("src"); if(source==undefined || source==""){ $(item).hide(); }else if(urlType(source)=="relative"){ $(item).attr("src","https://www.almg.gov.br"+source); } } }); } // Tratamento para videos do youtube embedados - ex: arquivos/ $("iframe").each(function(idx, item) { //Para cada elemento if($(item).attr("src").indexOf("youtube.com")!=-1){ var _w_ = $(item).attr("width"); var _h_ = $(item).attr("height"); if(_h_==undefined || _h_=="" || _h_.indexOf("%")==-1 || _w_==undefined || _w_=="" || _w_.indexOf("%")==-1){ //Default _w_ = 16; _h_ = 9; } //Armazenar original if($(item).attr("data-original-w")==undefined){ $(item).attr("data-original-w",_w_); $(item).attr("data-original-h",_h_); }else{ _w_ = $(item).attr("data-original-w"); _h_ = $(item).attr("data-original-h"); } //Aplicar regra de 3 $(item).attr("width","100%"); var _newW_ = $(item).outerWidth(); var _newH_ = (_h_*_newW_)/_w_; $(item).attr("height",_newH_+"px"); $(item).css("margin-bottom","1rem"); } }); } /* ----------------- */ /* --- GATILHOS ---- */ /* ----------------- */ //Pre-carga function mediaMoveReady(loop,mediaObject,anchorName){ console.log("[Move Mídia] Movendo " +anchorName+ "..."); if($("a#"+anchorName).length!=0){ //Update 2015-18-08: O novo editor do open traz ancora com id, ao inves de name. De: <a name="*"></a> Para: <a id="*"></a> console.log("[Move Mídia] Encontrou " +$("a#"+anchorName).length+ " âncora(s) correspondente(s) para " +anchorName); $("a#"+anchorName).each(function(idx, item) { //Para cada elemento $("a#"+anchorName).attr("name",anchorName).removeAttr("id"); }); }else{ console.warn("[Move Mídia] Não Encontrou âncora correspondente para " +anchorName+ ". A mídia será movida para algum modelo padrão"); } //Se tiver imagem ou video, aguarda if(mediaObject.find("img").length!=0){ mediaObject.find("img").ready(function(){ //mediaObject.find("img").on("load", function (e) { //jquery<3: .load(function() { mediaObject.find("img").imagesLoaded(function(){ // Use o plugin imagesLoaded, pois o IE apresentou problemas no carregamento sem ele mediaMoveExec(loop,mediaObject,anchorName); }); }); }else{ mediaMoveExec(loop,mediaObject,anchorName); } } //Load jQuery(window).on("load", function (e) { //jquery<3: .load(function() { //Executar movimentacao para cada uma das midias $(mediaAll).each(function(idx, item) { //Para cada elemento //Excecao: Quando uma foto tem ancora "boneco" ao inves de "foto", passamos para foto, mas identificamos como um boneco para recuperar essa informacao depois if($(item).hasClass(mediaPrefix+"Foto")) $("a[name=boneco], a#boneco").attr("name","foto").attr("data-name","boneco").removeAttr("id"); //Update 2015-18-08: O novo editor do open traz ancora com id, ao inves de name. De: <a name="*"></a> Para: <a id="*"></a> //Achar o model var model = $(item).attr("class").split(mediaPrefix)[1]; if(model.indexOf(' ')!=0) model = model.split(" ")[0]; //Se tiver outra class //Achar o index, ou seja, o eq do elemento var indexer = $("."+mediaPrefix+model).index(this); //O problema esta aqui. O index parece certo no console, mas se executar a funcao mediaMoveReady, o elemento sofre 'detach' e na proxima iteracao o index voltará a ser zero (já que o elemento anterior foi movido para uma posicao abaixo no DOM). Por isso, é necessario executar um segundo loop apos completar esse da identificacao //Rotular $(item).attr("data-model",model).attr("data-indexer",indexer); //mediaMoveReady(indexer,$(item),model.toLowerCase()); }); $(mediaAll).each(function(idx, item) { //Para cada elemento //Recuperar model var model = $(item).attr("data-model"); //Recupear o index, ou seja, o eq do elemento var indexer = $(item).attr("data-indexer"); mediaMoveReady(indexer,$(item),model.toLowerCase()); }); //Callback setTimeout(mediaMoveCallback, 100); //Tratamento para aspas no titulo e bigode $("article h1").html( $("article h1").text().replace(/'/g, '&rsquo;') ); $("article .lead").html( $("article .lead").text().replace(/'/g, '&rsquo;') ); }); //Resize var waitForFinalResizeswipeNoticias = (function () { var timers = {}; return function (callback, ms, uniqueId) { if(!uniqueId) uniqueId = "Don't call this twice without a uniqueId"; if(timers[uniqueId]) clearTimeout (timers[uniqueId]); timers[uniqueId] = setTimeout(callback, ms); }; })(); $(window).resize(function() { waitForFinalResizeswipeNoticias(function(){ if(widthViewport != $(window).width()){ //+f_scrollWidth() widthViewport = $(window).width(); //+f_scrollWidth(); //Atualizar mediaMoveCallback("resize"); } }, 400, "some unique string"); }); /* -------------------------------------------------------- */ /* --- TRATAMENTO NOTICIAS DA PRIMEIRA VERSAO DO PORTAL --- */ /* -------------------------------------------------------- */ function veryOldArticles(){ //Remover <pre> //$("."+generalPrefix+"_newsOld").html( $("."+generalPrefix+"_newsOld").html().replace("<pre>","").replace("</pre>","") ); $("."+generalPrefix+"_newsOld pre").css("cssText", "white-space: normal !important"); // Noticias de 2005 e anos proximos tem ancoras que envolvem toda a noticia. Como preservamos os links, essas ancoras indesejaveis tb sao mantidas $("."+generalPrefix+"_newsOld p").css("cssText", "cursor:text !important"); $("."+generalPrefix+"_newsOld p").css("cssText", "color:#555 !important"); /* garantir que o texto fique preto, mesmo aqueles envoltos em ancoras. Ex: http://www.almg.gov.br/acompanhe/noticias/arquivos/2010/12/Not_817942.html */ $("."+generalPrefix+"_newsOld a").css("cssText", "cursor:pointer !important; color:#ab0000 !important; text-decoration: none"); $("."+generalPrefix+"_newsOld a").not("."+generalPrefix+"_newsOld a[name]").hover( function () { $(this).css("text-decoration","underline"); }, function () { $(this).css("text-decoration","none"); } ) $("."+generalPrefix+"_newsOld a[name]").css("cssText", "color:#555 !important; line-height: 18px; font-weight:normal; cursor:text !important"); $(".sag").css("color","#555"); //Retirar a imagem logotipo das noticias importadas /*$("."+generalPrefix+"_newsOld img").each(function(idx, item) { if( $(item).attr("src").indexOf("tit_not")>-1 ){ $(item).hide(); } });*/ $("."+generalPrefix+"_newsOld img[src*=tit_not]").hide(); //Esconder o titulo que fica replicado no corpo do artigo $(".sagtitulo").hide(); //Editar tabelas (ha materias todas dentro de tabela) //Ex: http://opencmsd.almg.gov.br/noticias/noticia.html?urlNoticia=/acompanhe/noticias/arquivos/2010/12/Not_822597.html $("."+generalPrefix+"_newsOld table").css("cssText", "padding:0 !important; width:100%; clear:both;"); $("."+generalPrefix+"_newsOld table").parents("table").css("width","100%").css("clear","both"); $("."+generalPrefix+"_newsOld table td").css("cssText", "padding:0 0 !important; background-color:#fff;"); //Remover linhas vazias (cada paragrafo é uma linha da tabela) //Ex: http://opencmsd.almg.gov.br/noticias/noticia.html?urlNoticia=/acompanhe/noticias/arquivos/2010/12/Not_822597.html $("."+generalPrefix+"_newsOld table tr td").each(function(idx, item) { //Para cada elemento if(removeWhitespace($(item).text())=="") $(item).parent("tr").remove(); }); //Algumas noticias ficam confinadas em tabelas estreitas (Ex: http://www.almg.gov.br/acompanhe/noticias/arquivos/2011/08/Not_857340.html) var oldTable = $("table[cellpadding=6][cellspacing=0][border=0]"); if(oldTable.length!=0){ oldTable.css("width","100%").css("clear","both"); oldTable.parents("table").css("width","100%").css("clear","both"); } //Remover links vazios, tais como ancoras. Em seguida, remover paragrafos vazios ou com espacos. Ex: <p> <a name="ancora"></a> </p>. (Ex: http://www.almg.gov.br/acompanhe/noticias/arquivos/2011/08/Not_857340.html) $("."+generalPrefix+"_newsOld p a:empty").remove(); $("."+generalPrefix+"_newsOld p").filter(function() { return $.trim($(this).text()) === '' && $(this).children().length == 0 }).remove(); //Outros estilos css //$("."+generalPrefix+"_newsOld *").css("font-size","medium"); $("."+generalPrefix+"_newsOld *").css("font-family","inherit"); $("."+generalPrefix+"_newsOld *:not(h1, h2, h3, h4, h5, h6)").css("line-height","200%"); $("."+generalPrefix+"_newsOld *").css("text-decoration","none"); $("."+generalPrefix+"_newsOld *").css("border","none"); $("."+generalPrefix+"_newsOld *").css("text-align","left"); //Titulos $("."+generalPrefix+"_newsOld h1, .almg-js_newsOld h2, .almg-js_newsOld h3, .almg-js_newsOld h4, .almg-js_newsOld h5").css("font-weight","bold"); } //Gatilho $("."+generalPrefix+"_newsOld").ready(function() { veryOldArticles(); }); </script>]]>
1023 <![CDATA[<script> let cookie = $.cookie("almgLogin"); if (cookie) { let infoUsuario = JSON.parse(cookie).usuario; $('.js_loginBtn').addClass('text-success').attr('href','#offcanvasEnd').removeAttr('onclick',''); $('.js_loginNome').html(infoUsuario.nome); //console.log(infoUsuario); $('.js_loginToggle').toggleClass('d-none'); } </script>]]>
1391 <![CDATA[<script> const players = Plyr.setup('.js-player'); const players2 = Plyr.setup('.js-player-audio', { hideControls: false, controls: ['play-large', 'play', 'progress', 'current-time', 'mute', 'volume', 'airplay'] }); </script>]]>
1402 <![CDATA[<script> var anchorUrl = window.location.href.toString().split("#")[1]; if(anchorUrl!=undefined && anchorUrl!=null && anchorUrl!=""){ //var obj = $("a[name='"+anchorUrl+"']"); var obj = document.querySelectorAll("a[name='"+anchorUrl+"']")[0]; if (obj !=null) { obj.classList.remove("collapsed"); var anchorId = obj.getAttribute("aria-controls"); document.getElementById(anchorId).classList.add("show"); } } </script>]]>
1413 <![CDATA[<script> var tabelas = document.querySelector(".almg-js_notTexto table"); if(tabelas) tabelas.classList.add("table","table-striped","table-hover","table-bordered","table-sm","table-responsive"); //"d-flex","justify-content-center" </script>]]>