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

Sites Pertecentes a (o) BA

Endereço Nota Erros Avisos

iuiu.ba.gov.br/diario_oficial

73.99 205 164
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 7 889 1175 1347 1405 1414 1450 1458
889 <![CDATA[<script> $(document).ready(function () { $('#nav-icon4').click(function () { $(this).toggleClass('open'); let fclass = $(this).attr("class"); if (fclass === "open") { showMenu(false); } else { $(".d-actions-items").show(); $(".d-m-h").css("display", "none").addClass("d-hide"); $("#d-container").css("height", "100vh"); } $("#d-container.d-diversos").height($("#d-menu").height()); $("#d-container").css('min-height', (parseInt($(".d-menu-helper").height())+150)+'px' ); $("#d-container.d-diversos").css('min-height', (parseInt($(".d-menu-helper").height())+100)+'px' ); }); $("body .uwy.userway_p1 .uai").css("right", "0"); sessionStorage.setItem("img-back", 0); }); function slidShow(){ let img_atual = parseInt(sessionStorage.getItem("img-back")); img_atual++; if(img_atual >= $(".img-back").length){ img_atual = 0; } $(".img-back").addClass("d-hide"); $("#banner_fundo"+img_atual).removeClass("d-hide"); sessionStorage.setItem("img-back", img_atual); } function showContactModal() { if ($("#d-modal-comment").css("display") == "none") { $(".d-icon-comment").removeClass("btn-green").addClass("btn-grey"); $("#d-modal-comment").css("display", "flex"); }else{ $(".d-icon-comment").addClass("btn-green").removeClass("btn-grey"); $("#d-modal-comment").css("display", "none"); } } function showMenu(toogle = false) { if (toogle) { $('#nav-icon4').toggleClass('open'); } $(".d-actions-items").hide(); $(".d-m-h").css("display", "flex").removeClass("d-hide"); $("#d-container").css("height", "auto"); } function removeAcento(text) { 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; } function setFilter() { let filter = $("#filter").val(); //Oculta e mostra as linhas $(".d-swap ul li .d-swap-itens li a").each(function () { let source = ($(this).data("source")); let target = $(this).parent("li"); if (removeAcento(source).toLowerCase().search(removeAcento(filter).toLowerCase()) == -1) { target.css("display", "none"); } else { target.css("display", "block"); } }); //Oculta e mostra os h2 for (let index = 1; index <= $(".d-swap ul li .d-swap-itens").length; index++) { let hide = true; $(".d-swap ul li #dsi-" + index + " li").each(function () { if ($(this).css("display") != "none") { hide = false; } }); if (hide) { $(".d-swap ul li #dsi-" + index).parent().css("display", "none"); } else { $(".d-swap ul li #dsi-" + index).parent().css("display", "block"); } } //Oculta e mostra os h1 for (let index = 0; index < $(".d-swap").length; index++) { let hide = true; for (let sub = 1; sub <= $(".d-swap ul li .d-swap-itens").length; sub++) { $("#ds-"+index+" ul li #dsi-" + sub + " li").each(function () { if ($(this).css("display") != "none") { hide = false; } }); } if (hide) { $("#ds-"+index+" h1").css("display", "none"); } else { $("#ds-"+index+" h1").css("display", "block"); } } } function showAllFilters() { if ($("#d-all-filters").css("display") === "none") { $("#d-all-filters").css("display", "flex"); } else { $("#d-all-filters").css("display", "none"); } } $("#enviar").click(function(event){ const form = "#contact-form-top "; event.preventDefault(); let errors = ""; if($(form+" #nome").val() == ""){ errors += '* O <b>Nome</b> não pode ficar em branco <br>'; } if($(form+" #telefone1").val() == ""){ errors += '* O <b>Telefone 1</b> não pode ficar em branco <br>'; } if($(form+" #email").val() == ""){ errors += '* O <b>E-mail</b> não pode ficar em branco <br>'; } if($(form+" #assunto").val() == ""){ errors += '* O <b>Assunto</b> não pode ficar em branco <br>'; } if($(form+" #mensagem").val() == ""){ errors += '* O <b>Mensagem</b> não pode ficar em branco <br>'; } if(errors.length > 0){ Swal.fire({ icon: 'error', title: 'Encontramos os seguinte(s) erro(s)', html: errors, }); }else{ $("#contact-form-top").submit(); } }); </script>]]>
1175 <![CDATA[<script> $(document).ready(function(){ loadCalendar(); }); function loadCalendar() { $('#calendar_loading').show(); $('#calendar').empty(); let option = ($('#diarios_publicados option:selected').val()).substr(0, 7); let clear_option = option.split('-'); let dates = ($('#diarios_publicados option:selected').val()).split('|'); $.ajax({ type: 'POST', dataType: 'json', url: 'https://engine.procedebahia.com.br/publish/api/diaries', beforeSend: function() {}, data: { 'cod_entity': 24, 'start_date': dates[0], 'end_date': dates[1], }, success: function(retorno) { setComplements(retorno.lastEdition); showCalendar(clear_option[0], (clear_option[1] - 1), retorno.diaries); $('#calendar_loading').hide(); }, error: function(error) { console.log(error);} }); } function numberFormat(num) { if (num < 10) { return '0' + num; } return num; } function showCalendar(year, month, data) { let today = new Date(); let firstDay = (new Date(year, month)).getDay(); tbl = document.getElementById("calendar"); // body of the calendar // clearing all previous cells tbl.innerHTML = ""; // creating all cells let date = 1; for (let i = 0; i < 6; i++) { // creates a table row let row = document.createElement("tr"); //creating individual cells, filing them up with data. for (let j = 0; j < 7; j++) { if (i === 0 && j < firstDay) { cell = document.createElement("td"); cellText = document.createTextNode(""); cell.appendChild(cellText); row.appendChild(cell); } else if (date > daysInMonth(month, year)) { break; } else { cell = document.createElement("td"); cellText = document.createTextNode(date); let is_valid = false; let is_extra = false; let a = document.createElement('a'); let link = document.createTextNode(date); var ul = document.createElement("ul"); a.appendChild(link); a.target = '_blank'; data.forEach(function(el, i) { if (el.data === (year + '-' + numberFormat(month + 1) + '-' + numberFormat(date))) { cell.classList.add("bg-info"); a.href = "http://procedebahia.com.br/" + el.pasta + "/publicacoes/" + el.arquivo; a.title = 'Edição Nº' + el.edicao is_valid = true; if ((el.extra !== null) && (el.extra.length > 0)) { ul.classList.add("edition-extra"); var li_p1 = document.createElement('li'); var part1 = document.createElement('a'); var text1 = document.createTextNode('Parte 1'); part1.setAttribute("href", "http://procedebahia.com.br/" + el.pasta + "/publicacoes/" + el.arquivo); part1.setAttribute("target", "_blank"); part1.setAttribute("title", "Parte 1"); part1.appendChild(text1); var li_p2 = document.createElement('li'); var part2 = document.createElement('a'); var text2 = document.createTextNode('Parte 2'); part2.setAttribute("href", "http://procedebahia.com.br/" + el.pasta + "/publicacoes/" + el.extra); part2.setAttribute("target", "_blank"); part2.setAttribute("title", "Parte 2"); part2.appendChild(text2); li_p1.appendChild(part1); li_p2.appendChild(part2); ul.appendChild(li_p1); ul.appendChild(li_p2); is_extra = true; } } }); if (is_valid) { if (is_extra) { cell.appendChild(ul); } else { cell.appendChild(a); } cell.appendChild(a); } else { cell.appendChild(cellText); } row.appendChild(cell); date++; } } tbl.appendChild(row); // appending each row into calendar body. } } // check how many days in a month code from https://dzone.com/articles/determining-number-days-month function daysInMonth(iMonth, iYear) { return 32 - new Date(iYear, iMonth, 32).getDate(); } function setComplements(edition){ $('#lastEdition').empty().append('<b>Última Edição:</b>'); $('#advancedSearch').empty().append('<a href="http://www.procedebahia.com.br/ba/'+edition[0].pasta+'" target="_blank">Clique aqui para realizar uma pesquisa avançada</a>'); let url = 'http://www.procedebahia.com.br/'+edition[0].pasta+'/publicacoes/'+edition[0].arquivo if((edition[0].extra != null) && (edition[0].extra.length > 0)){ url = 'http://www.procedebahia.com.br/'+edition[0].pasta+'/publicacoes/'+edition[0].extra } const data_BR = moment(edition[0].data, 'YYYY-MM-DD').locale('pt-br').format('dddd, LL'); $('#lastEdition').append('<a href="'+url+'" target="_blank"><b>Nº .'+edition[0].edicao+'<b></a>'); $('#lastEdition').append('<a href="'+url+'" target="_blank">'+' '+data_BR.substring(0,1).toUpperCase().concat(data_BR.substring(1))+'</a>'); if((edition[0].link_mensagem != null)){ $("#thirdPartyDiaries").empty().append('<a href="'+edition[0].link_mensagem+'" target="_blank">'+edition[0].mensagem+'</a>') } } </script>]]>
1347 <![CDATA[<script> $(document).ready(function(){ $("#d-container.d-diversos").height($("#d-menu").height()); }); window.addEventListener('resize', function() { $("#d-container.d-diversos").height($("#d-menu").height()); }); </script>]]>
1405 <![CDATA[<script> $( document ).ready(function() { $('#vLibras').append("<div vw class='enabled'><div vw-access-button class='active'></div><div vw-plugin-wrapper><div class='vw-plugin-top-wrapper'></div></div></div>"); new window.VLibras.Widget('https://vlibras.gov.br/app'); }); </script>]]>
1414 <![CDATA[<script> function disabledMessFooter(){ $("#messager-footer").addClass("d-hide"); sessionStorage.setItem("messager-footer", "false"); } var id = new Object(); id = ["#navega h2/9/19", "#navega a/9/19", "#navega li/9/19", "#pagina_lei p/13/23", "#pagina_lei li/9/19", "#diario_oficial .estrutura_diario .d_header .d-h-text h1/30/40", "#diario_oficial .estrutura_diario .d_header .d-h-text h2/20/30", "#diario_oficial .estrutura_diario .d_content .d-painel ul li b/10/20", "#diario_oficial .estrutura_diario .d_content .d-painel ul li a/10/20", "#diario_oficial .estrutura_diario .d_footer p/9/19", "#diario_oficial .estrutura_diario .d_content .d-calendar #diarios_publicados /13/23", "#diario_oficial .estrutura_diario .d_content .d-calendar ul li/9/19", "#diario_oficial .estrutura_diario .d_content .d-calendar #calendar tr/9/19"]; var swiper = new Swiper('#topo', { // pagination: '.swiper-pagination', nextButton: '.swiper-button-next', prevButton: '.swiper-button-prev', paginationClickable: true, // Disable preloading of all images preloadImages: true, // Enable lazy loading lazyLoading: true, centeredSlides: true, effect: 'fade', autoplay: 3000, autoplayDisableOnInteraction: false }); (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.9"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script>]]>
1450 <![CDATA[<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-105160113-1'); </script>]]>
1458 <![CDATA[<script> var link = document.createElement('meta'); link.setAttribute('property', 'og:url'); link.content = document.location; document.getElementsByTagName('head')[0].appendChild(link); </script>]]>