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

Sites Pertecentes a (o) RS

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 81 1684 1915 2537
81 <![CDATA[<script type="text/javascript"> jQuery(function($){ if (typeof($.datepicker) != "undefined"){ $.datepicker.setDefaults( jQuery.extend($.datepicker.regional['pt-BR'], {dateFormat: 'dd/mm/yy'})); } }); </script>]]>
1684 <![CDATA[<script type="text/javascript"> jQuery(document).ready(function() { if (jQuery().dateinput) { jQuery.tools.dateinput.localize("pt-br", {months: "janeiro,fevereiro,março,abril,maio,junho,julho,agosto,setembro,outubro,novembro,dezembro",shortMonths: "jan,fev,mar,abr,mai,jun,jul,ago,set,out,nov,dez",days: "domingo,segunda-feira,terça-feira,quarta-feira,quinta-feira,sexta-feira,sábado",shortDays: "dom,seg,ter,qua,qui,sex,sáb"}); jQuery("#form-widgets-party_affiliation-0-widgets-date_affiliation-calendar").dateinput({selectors: true, trigger: true, format: 'mm/dd/yyyy', yearRange: [-100, 10], firstDay: 7, lang: 'pt-br', change: function() { var value = this.getValue("yyyy-m-d").split("-"); jQuery("#form-widgets-party_affiliation-0-widgets-date_affiliation-year").val(value[0]); jQuery("#form-widgets-party_affiliation-0-widgets-date_affiliation-month").val(value[1]); jQuery("#form-widgets-party_affiliation-0-widgets-date_affiliation-day").val(value[2]); }}).unbind('change') .bind('onShow', function (event) { var trigger_offset = jQuery(this).next().offset(); jQuery(this).data('dateinput').getCalendar().offset( {top: trigger_offset.top+20, left: trigger_offset.left} ); }); updateCalendar('#form-widgets-party_affiliation-0-widgets-date_affiliation'); } }); function updateCalendar(widgetId) { var y = jQuery(widgetId + '-year').val(); var m = jQuery(widgetId + '-month').val(); var d = jQuery(widgetId + '-day').val(); if (!y || !m || !d) { return; } var newDate = new Date(m + '/' + d + '/' + y); if (newDate.getYear()) { // return NaN (which is false) if the date is invalid jQuery(widgetId + '-calendar').val(m + '/' + d + '/' + y); jQuery(widgetId + '-calendar').data()['dateinput'].setValue(newDate); } } </script>]]>
1915 <![CDATA[<script type="text/javascript"> jQuery(document).ready(function() { if (jQuery().dateinput) { jQuery.tools.dateinput.localize("pt-br", {months: "janeiro,fevereiro,março,abril,maio,junho,julho,agosto,setembro,outubro,novembro,dezembro",shortMonths: "jan,fev,mar,abr,mai,jun,jul,ago,set,out,nov,dez",days: "domingo,segunda-feira,terça-feira,quarta-feira,quinta-feira,sexta-feira,sábado",shortDays: "dom,seg,ter,qua,qui,sex,sáb"}); jQuery("#form-widgets-party_affiliation-0-widgets-date_disaffiliation-calendar").dateinput({selectors: true, trigger: true, format: 'mm/dd/yyyy', yearRange: [-100, 10], firstDay: 7, lang: 'pt-br', change: function() { var value = this.getValue("yyyy-m-d").split("-"); jQuery("#form-widgets-party_affiliation-0-widgets-date_disaffiliation-year").val(value[0]); jQuery("#form-widgets-party_affiliation-0-widgets-date_disaffiliation-month").val(value[1]); jQuery("#form-widgets-party_affiliation-0-widgets-date_disaffiliation-day").val(value[2]); }}).unbind('change') .bind('onShow', function (event) { var trigger_offset = jQuery(this).next().offset(); jQuery(this).data('dateinput').getCalendar().offset( {top: trigger_offset.top+20, left: trigger_offset.left} ); }); updateCalendar('#form-widgets-party_affiliation-0-widgets-date_disaffiliation'); } }); function updateCalendar(widgetId) { var y = jQuery(widgetId + '-year').val(); var m = jQuery(widgetId + '-month').val(); var d = jQuery(widgetId + '-day').val(); if (!y || !m || !d) { return; } var newDate = new Date(m + '/' + d + '/' + y); if (newDate.getYear()) { // return NaN (which is false) if the date is invalid jQuery(widgetId + '-calendar').val(m + '/' + d + '/' + y); jQuery(widgetId + '-calendar').data()['dateinput'].setValue(newDate); } } </script>]]>
2537 <![CDATA[<script> function submit_buscaleg(){ var form = document.getElementById("portlet_buscaleg_search"); var kw = document.getElementById("portlet_buscaleg_keyword"); form.setAttribute('action', form.action + '/' + kw.value); } </script>]]>