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

Sites Pertecentes a (o) MG

Endereço Nota Erros Avisos

www.alfenas.mg.gov.br/?page_number_0=5

83.72 54 121
Recomendações Avaliadas
2.2 Garantir que os objetos programáveis sejam acessíveis.

Recomendações

Número Descrição Quantidade Linhas Código Fonte
2.2.6 Presença do elemento SCRIPT sem o elemento NOSCRIPT 6 296 642 659 687 694 731
296 <![CDATA[<script> var inputs = document.getElementById("search_field"); inputs.addEventListener("keyup", function(event) { event.preventDefault(); if (event.keyCode === 13) { document.getElementById('btn-search').click(); } }); function search_func() { $("#btn-search").attr('href', "http://www.alfenas.mg.gov.br/get_search" + "/?termo=" + encodeURI($("#search_field").val())); } $(document).ready(function() { $('body').on('hidden.bs.modal', '.modal', function() { $(this).removeData('bs.modal'); }); }); </script>]]>
642 <![CDATA[<script type="text/javascript"> var flex_options = { animation: "fade", slideshowSpeed: 7000, animationSpeed: 600, pauseOnAction: true, controlNav: true, directionNav: true } </script>]]>
659 <![CDATA[<script> $(".owl-carousel2").owlCarousel({ loop: true, margin: 10, nav: true, autoplay: true, items: 3, responsiveClass: true, responsive: { 0: { items: 1, nav: true }, 600: { items: 2, nav: true }, 1000: { items: 3, nav: true } } }); </script>]]>
687 <![CDATA[<script> $(document).on('click', '[data-toggle="lightbox"]', function(event) { event.preventDefault(); $(this).ekkoLightbox(); }); </script>]]>
694 <![CDATA[<script> function carregar_pagina_lei(value) { window.location.assign('http://www.alfenas.mg.gov.br/leis/' + value); } $('#accordion .panel-collapse').on('shown.bs.collapse', function() { $(this).parent(".panel").removeClass("panel-default").addClass("panel-info"); }); $('#accordion .panel-collapse').on('hidden.bs.collapse', function() { $(this).parent(".panel").removeClass("panel-info").addClass("panel-default"); }); $('#accordion .panel-collapse').on('shown.bs.collapse', function() { $(this).prev().find(".glyphicon").removeClass("glyphicon-plus").addClass("glyphicon-minus"); }); $('#accordion .panel-collapse').on('hidden.bs.collapse', function() { $(this).prev().find(".glyphicon").removeClass("glyphicon-minus").addClass("glyphicon-plus"); }); </script>]]>
731 <![CDATA[<script> /* * This is the plugin */ (function(a) { a.createModal = function(b) { defaults = { title: "VISUALIZAR PDF", message: "Your Message Goes Here!", closeButton: true, scrollable: false }; var b = a.extend({}, defaults, b); var c = (b.scrollable === true) ? 'style="max-height: 420px;overflow-y: auto;"' : ""; html = '<div class="modal fade" id="myModal">'; html += '<div class="modal-dialog modal-lg">'; html += '<div class="modal-content">'; html += '<div class="modal-header">'; html += '<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>'; if (b.title.length > 0) { html += '<h4 class="modal-title">' + b.title + "</h4>" } html += "</div>"; html += '<div class="modal-body" ' + c + ">"; html += b.message; html += "</div>"; html += '<div class="modal-footer">'; if (b.closeButton === true) { html += '<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>' } html += "</div>"; html += "</div>"; html += "</div>"; html += "</div>"; a("body").prepend(html); a("#myModal").modal().on("hidden.bs.modal", function() { a(this).remove() }) } })(jQuery); /* * Here is how you use it */ $(function() { $('.view-pdf').on('click', function() { var pdf_link = $(this).attr('href'); var iframe = '<div class="iframe-container"><iframe src="' + pdf_link + '"></iframe></div>' $.createModal({ title: $(this).attr('title'), message: iframe, closeButton: true, scrollable: false }); return false; }); }) $(window).bind('scroll', function() { if ($(window).scrollTop() > 50) { $('#topNav').addClass('fixed'); $('#topNav').addClass('m-t-40-topnav'); } else { $('#topNav').removeClass('fixed'); $('#topNav').removeClass('m-t-40-topnav'); } }); </script>]]>