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

Sites Pertecentes a (o) BA

Endereço Nota Erros Avisos

portoseguro.ba.gov.br/Noticias/news-details.php?nid=1
32

74.0 57 390
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 122 207 1071 1126 1159 1187 1208
122 <![CDATA[<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-XJJFBDPVPG'); gtag('config', 'G-25CVEJZ9H2'); </script>]]>
207 <![CDATA[<script type='text/javascript' id='pojo-a11y-js-extra'> /* <![CDATA[ */ var PojoA11yOptions = {"focusable":"","remove_link_target":"","add_role_links":"","enable_save":"","save_expiration":""}; /* ]]> */ </script>]]>
1071 <![CDATA[<script> function changeClass(name1, name2){ body.classList.remove(name1) body.classList.add(name2) btn.src = "assets/img/comum/" + name2 + ".png" } function getCookie(cname){ let name = cname + "=" let decodedCookie = decodeURIComponent(document.cookie) let ca = decodedCookie.split(';') for(let i = 0; i < ca.length;i++){ let c = ca[i] while(c.charAt(0) == " "){ c = c.substring(1) } if(c.indexOf(name) == 0){ return c.substring(name.length, c.length) } } return "" } if(getCookie("theme").length == 0){ document.cookie = "theme=light" } const change = document.querySelector("#change-theme") const body = document.querySelector("body") const btn = change.querySelector("img") const cookieTheme = getCookie("theme") change.addEventListener("click", () => { if(body.getAttribute("class") == "light"){ changeClass("light", "dark") }else{ changeClass("dark", "light") } document.cookie = "theme=" + body.getAttribute("class") }) if(body.getAttribute("class") == cookieTheme){ body.classList.remove(body.getAttribute("class")) body.classList.add(cookieTheme) } btn.src = "assets/img/comum/" + body.getAttribute("class") + ".png" </script>]]>
1126 <![CDATA[<script> var $affectedElements = $("p, h1, h2, h3, h4, h5, h6, li, ul, span, div"); $affectedElements.each( function(){ var $this = $(this); $this.data("orig-size", $this.css("font-size") ); }); $("#btn-increase").click(function(){ changeFontSize(1); }) $("#btn-decrease").click(function(){ changeFontSize(-1); }) $("#btn-orig").click(function(){ $affectedElements.each( function(){ var $this = $(this); $this.css( "font-size" , $this.data("orig-size") ); }); }) function changeFontSize(direction){ $affectedElements.each( function(){ var $this = $(this); $this.css( "font-size" , parseInt($this.css("font-size"))+direction ); }); } </script>]]>
1159 <![CDATA[<script> const cookieBox = document.querySelector(".wrapper"), buttons = document.querySelectorAll(".button"); const executeCodes = () => { //if cookie contains codinglab it will be returned and below of this code will not run if (document.cookie.includes("codinglab")) return; cookieBox.classList.add("show"); buttons.forEach((button) => { button.addEventListener("click", () => { cookieBox.classList.remove("show"); //if button has acceptBtn id if (button.id == "acceptBtn") { //set cookies for 1 month. 60 = 1 min, 60 = 1 hours, 24 = 1 day, 30 = 30 days document.cookie = "cookieBy= codinglab; max-age=" + 24 * 60 * 60 * 1e3; } }); }); }; //executeCodes function will be called on webpage load window.addEventListener("load", executeCodes); </script>]]>
1187 <![CDATA[<script> /* POP UP */ $(document).ready(function(){ setTimeout(function(){ $('#popup_prefeitura').removeClass("d-none"); setTimeout(function(){ $('#popup_prefeitura').addClass("d-none"); }, 25000); }, 2000); }); function fechar(){ $('#popup_prefeitura').hide(); } /* FIM POP UP */ </script>]]>
1208 <![CDATA[<script> new window.VLibras.Widget('https://vlibras.gov.br/app'); </script>]]>