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

Sites Pertecentes a (o) RJ

Endereço Nota Erros Avisos

www.pmmp.rj.gov.br/ondecomer.php

73.56 17 271
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 4 58 107 556 586
58 <![CDATA[<script> function movimento(para, valor) { if (valor == "") valor = 0; $('html,body').animate({ scrollTop: $("#" + para).offset().top - valor }, 900); } var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function() { return navigator.userAgent.match(/Opera Mini/i); }, Windows: function() { return navigator.userAgent.match(/IEMobile/i); }, any: function() { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile .Windows()); } }; </script>]]>
107 <![CDATA[<script async defer crossorigin="anonymous" src="https://connect.facebook.net/pt_BR/sdk.js#version=v10.0"> </script>]]>
556 <![CDATA[<script> //const cssLibras = '<style>.vpw-settings .vpw-content > .vpw-bar .vpw-title { font-size: 0.75em !important}.vpw-settings .vpw-content > ul li .vpw-name { font-size: 0.875em !important}<style>'; //document.querySelector('head').innerHTML += cssLibras; new window.VLibras.Widget('https://vlibras.gov.br/app'); </script>]]>
586 <![CDATA[<script> function modal(L,W,H,T){ $("#myIframee").attr('src',''); $("#myModalIframee").modal({ //backdrop: 'static' }); $('#myModalIframee').on('shown.bs.modal', function () { $(this).find('.modal-dialog').css({ width:W, //probably not needed height:H, //probably not needed }); $(this).find('.modal-body').css({ padding : '0', margin : '0', height: H }); $(this).find('h4').css({ padding : '0', margin : '0' }); $(this).find('iframe').css({ height: H }); $(this).find('.modal-header h4').html(T); $("#myIframee").attr('src',L); $(this).find('iframe').focus(); }); }//fim funcao function modalServ(L,W,H,T){ $("#myIframeServ").attr('src',''); $("#myModalServ").modal({ //backdrop: 'static' }); $('#myModalServ').on('shown.bs.modal', function () { $(this).find('.modal-dialog').css({ width:W, //probably not needed height:H, //probably not needed }); $(this).find('.modal-body').css({ padding : '0', margin : '0', height: H }); $(this).find('h4').css({ padding : '0', margin : '0' }); $(this).find('iframe').css({ height: H }); $(this).find('.modal-header h4').html(T); $("#myIframeServ").attr('src',L); $(this).find('iframe').focus(); }); }//fim funcao function modalAviso(L,W,H,T){ $("#myIframeAviso").attr('src',''); $("#myModalAviso").modal({ //backdrop: 'static' }); $('#myModalAviso').on('shown.bs.modal', function () { $(this).find('.modal-dialog').css({ width:W, //probably not needed height:H, //probably not needed }); $(this).find('.modal-body').css({ padding : '0', margin : '0', height: H }); $(this).find('h4').css({ padding : '0', margin : '0' }); $(this).find('iframe').css({ height: H }); $(this).find('.modal-header h4').html(T); $("#myIframeAviso").attr('src',L); $(this).find('iframe').focus(); }); }//fim funcao function modalAvisoImg(L,W,H,T){ //$("#myIframeAviso").attr('src',''); $('#imagepreview').attr('src',''); $("#myModalAvisoImg").modal({ // backdrop: 'static' }); $('#myModalAvisoImg').on('shown.bs.modal', function () { $('#imagepreview').attr('src', L); // $(this).find('iframe').focus(); }); }//fim funcao $(document).ready(function(){ console.log('aqq') var achei = $("style[data-fbcssmodules~='css:fb.css.basecss:fb.css.dialog css:fb.css.iframewidget']"); console.log('achei'+achei.length); if (achei.length > 0) { var text = $("style[data-fbcssmodules='css:fb.css.basecss:fb.css.dialog css:fb.css.iframewidget']").text(); $(this).text(text.replace('fb_iframe_widget span{display:inline-block;position:relative;text-align:justify}', 'fb_iframe_widget span{display:inline-block;position:relative;text-align:left}')); }; var linkar = ''; var relw = ''; var relh = ''; var titulo = ''; }); $('.iptu').click(function(){ //We tell our browser not to follow that link console.log('iptu'); modalServ('http://https://trb.pmmp.rj.gov.br:8086/webrun/form.jsp?sys=TR2&action=openform&formID=7589','500','300','IPTU'); }); $(document).ready(function(){ $('.comunicado-link').click(function(){ modalAviso('aviso_feriado.php','','480','Comunicado') });//chama o comunicado $(".twitter_pop").click(function(e){ //We tell our browser not to follow that link e.preventDefault(); //We get the URL of the link var loc = $(this).attr('href'); //We get the title of the link var title = encodeURIComponent($(this).attr('title')); //We trigger a new window with the Twitter dialog, in the middle of the page window.open('https://twitter.com/share?url=' + loc + '&text=' + title + '&', 'twitterwindow', 'height=450, width=550, top='+($(window).height()/2 - 225) +', left='+$(window).width()/2 +', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0'); }); $(".face_pop").click(function(e) { //We tell our browser not to follow that link e.preventDefault(); //We get the URL of the link var loc = $(this).attr('href'); //We get the title of the link var title = encodeURIComponent($(this).attr('title')); //We trigger a new window with the Twitter dialog, in the middle of the page window.open('https://facebook.com/sharer.php?u=' + loc + '&text=' + title + '&', 'facebookwindow', 'height=450, width=550, top='+($(window).height()/2 - 225) +', left='+$(window).width()/2 +', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0'); }); $(".plus_pop").click(function(e) { //We tell our browser not to follow that link e.preventDefault(); //We get the URL of the link var loc = $(this).attr('href'); //We get the title of the link var title = encodeURIComponent($(this).attr('title')); //We trigger a new window with the Twitter dialog, in the middle of the page window.open('https://plus.google.com/share?url=' + loc , 'pluswindow', 'height=450, width=550, top='+($(window).height()/2 - 225) +', left='+$(window).width()/2 +', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0'); }); $(".linkedIn_pop").click(function(e) { //We tell our browser not to follow that link e.preventDefault(); //We get the URL of the link var loc = $(this).attr('href'); //We get the title of the link var title = encodeURIComponent($(this).attr('title')); //We trigger a new window with the Twitter dialog, in the middle of the page window.open('https://www.linkedin.com/shareArticle?mini=true&url=' + loc +'&title='+title, 'pluswindow', 'height=450, width=550, top='+($(window).height()/2 - 225) +', left='+$(window).width()/2 +', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0'); }); }); $("iframe").attr('title',Math.random()); $(".ModalIframe").click(function(){ var linkar = $(this).attr('rellink'); var relw = $(this).attr('rew'); var relh = $(this).attr('reh'); var titulo = $(this).text(); $("#myIframe").attr('src',''); //$("#myIframe").attr('src',''); $("#myModalIframe").modal({ backdrop: 'static' }); $('#myModalIframe').on('shown.bs.modal', function () { $(this).find('.modal-dialog').css({ width:relw, //probably not needed height:relh, //probably not needed }); $(this).find('.modal-body').css({ padding : '1px', margin : '5px', height: relh }); $(this).find('h4').css({ padding : '0', margin : '0' }); $(this).find('iframe').css({ height: relh }); $(this).find('.modal-header h4').html(titulo); $("#myIframe").attr('src',linkar); $(this).find('iframe').focus(); }); }); $(function(){ }); function AbreJanela(html, largura, altura){ w = screen.width; h = screen.height; meio_w = w/2; meio_h = h/2; altura2 = altura/2; largura2 = largura/2; meio1 = meio_h-altura2; meio2 = meio_w-largura2; window.open(html,"nova_janela","toolbar=no,location=no,location=0,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+largura+",height="+altura+", top="+meio1+", left="+meio2+"");void(0); } $('#Menu7').click(function(){ alert('Antes de imprimir, desabilitar o bloqueador de popup no canto superior do seu navegador'); }); $('#MenuFooter7').click(function(){ alert('Antes de imprimir, desabilitar o bloqueador de popup no canto superior do seu navegador'); }); </script>]]>