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

Sites Pertecentes a (o) SP

Endereço Nota Erros Avisos

emtu.sp.gov.br/passe/index.htm?regiao=254&g=1

95.56 7 227
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 8 34 48 467 487 1173 1180 1237 1329
34 <![CDATA[<script type="text/javascript"> console.log(window.location.protocol); // redireciona a pagina se acessar como http if(window.location.protocol == 'http:') { location.href = location.href.replace("http://", "https://"); } if(window.location.host == 'emtu.sp.gov.br'){ location.href = location.href.replace("emtu.sp.gov.br", "www.emtu.sp.gov.br"); } </script>]]>
48 <![CDATA[<script> // redireciona a pagina se acessar como http if(window.location.protocol == 'http:') { location.href = location.href.replace("http://", "https://"); } function Contraste(e) { if (e.keyCode === 13) { window.toggleContrast(); } } </script>]]>
467 <![CDATA[<script> function myFunction() { var x = document.getElementById("myTopnav"); if (x.className === "topnav") { x.className += " responsive"; } else { x.className = "topnav"; } } </script>]]>
487 <![CDATA[<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-17081920-1'); </script>]]>
1173 <![CDATA[<script> new window.VLibras.Widget('https://www.vlibras.gov.br/app'); </script>]]>
1180 <![CDATA[<script> //Cookie Disclaimer LGPD $(document).ready(function () { checkCookie(); }); function setCookie() { var d = new Date(); var exdays = 7; var cname = "username"; var cvalue = "emtusp"; d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); //d.setTime(d.getTime() + (exdays * 1 * 1 * 60 * 1000)); var expires = "expires=" + d.toUTCString(); //alert(expires); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; document.querySelector(".box-cookies").classList.add('hideCookie'); } function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } function checkCookie() { var user = getCookie("username"); if (user == "emtusp") { document.querySelector(".box-cookies").classList.add('hideCookie'); } else { user = "emtusp"; if (user != "" && user != null) { document.querySelector(".box-cookies").classList.remove('hideCookie'); } } } </script>]]>
1237 <![CDATA[<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-17081920-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>]]>
1329 <![CDATA[<script type="text/javascript"> function getParameterByName(name) { url = window.location.href; name = name.replace(/[\[\]]/g, "\\$&"); var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, " ")); } if(getParameterByName("regiao") == "256") { $("#linkModalCOVID1").attr("href", "/Passe/manual/DECLARAÇÃO_CombateCOVID_RMSP.pdf") $("#linkModalRETOMADA").attr("href", "/Passe/manual/DECLARAÇÃO_CombateCOVID_RETOMADA.pdf") $('#modalComunicadoRMSP').modal("hide"); } else if(getParameterByName("regiao") == "255") { $("#regiaoModal").html( $("#inputRegiaoModal").val() ); $("#emailCovid2").html( $("#emailRegional").val() ); $("#linkModalCOVID2").attr("href", "/Passe/manual/DECLARAÇÃO_CombateCOVID_RMSP.pdf") $("#linkModalRETOMADA2").attr("href", "/Passe/manual/DECLARAÇÃO_CombateCOVID_RETOMADA.pdf") $("#mailRegiao").html("passermbs"); $('#modalComunicadoREGIONAIS').modal("hide"); } else { $("#regiaoModal").html( $("#inputRegiaoModal").val() ); $("#emailCovid2").html( $("#emailRegional").val() ); $("#linkModalCOVID2").attr("href", "/Passe/manual/DECLARAÇÃO_CombateCOVID_REGIONAIS_LINHA.pdf") $("#linkModalRETOMADA2").attr("href", "/Passe/manual/DECLARAÇÃO_CombateCOVID_RETOMADA.pdf"); if(getParameterByName("regiao") == "254") { $("#mailRegiao").html("passermc"); } else if(getParameterByName("regiao") == "257") { $("#mailRegiao").html("passevale"); } else if(getParameterByName("regiao") == "258") { $("#mailRegiao").html("passerms"); } $('#modalComunicadoREGIONAIS').modal("hide"); } function CalendarioAtual() { if (event.keyCode === 13) { window.document.getElementById('CalendarioAtual').style.display='block'; window.document.getElementById('CalendarioAnterior').style.display='none'; } } function CalendarioAnterior() { if (event.keyCode === 13) { window.document.getElementById('CalendarioAtual').style.display='none'; window.document.getElementById('CalendarioAnterior').style.display='block'; } } function CalendarioAtualOver() { window.document.getElementById('CalendarioAtual').style.display='block'; window.document.getElementById('CalendarioAnterior').style.display='none'; } function CalendarioAnteriorOver() { window.document.getElementById('CalendarioAtual').style.display='none'; window.document.getElementById('CalendarioAnterior').style.display='block'; } $(document).keydown(function(event) { if (event.keyCode === 13) { //13 is enter key $(':focus').trigger('click'); // clicks focused element } }); </script>]]>