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

Sites Pertecentes a (o) PB

Endereço Nota Erros Avisos

paraibabusiness.pb.gov.br/es/contato/

90.28 18 41
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 5 288 378 382 392 411
288 <![CDATA[<script type="text/javascript"> var DjangoRecaptchaOptions = { "lang": "es" }; if (typeof RecaptchaOptions !== 'object') { RecaptchaOptions = DjangoRecaptchaOptions; } else { for (key in DjangoRecaptchaOptions) { RecaptchaOptions[key] = DjangoRecaptchaOptions[key]; } } </script>]]>
378 <![CDATA[<script>window.jQuery || document.write('<script src="/static/assets/js/vendor/jquery.min.0652da382b6f.js"><\/script>')</script>]]>
382 <![CDATA[<script type="text/javascript"> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-33545041-45', 'auto'); ga('send', 'pageview'); </script>]]>
392 <![CDATA[<script type="text/javascript"> $(document).ready(function() { $('.choose-languages-link').click(function(event) { event.preventDefault(); var nextURL = $(this).attr('href'); var lang = $(this).data('lang'); var token = $(this).data('token'); var url = '/i18n/setlang/' $.post(url, {language: lang, csrfmiddlewaretoken: token}, function(data) { console.log(data); window.location.href = nextURL; }); }); }); </script>]]>
411 <![CDATA[<script> jQuery(document).ready(function($) { $('.phoneMask').inputmask('(99) 9999[9]-9999'); autosize($('.textarea')); function validate(form){ var isFormValid = true; form.find('.row').each(function(index, element) { var current = $(element); console.log(current); if(current.data('validation') == true){ var currentLocal = current.find('input, select, textarea'); if(currentLocal.val().trim().length == 0){ isFormValid = false; var formGroup = current; if(!formGroup.hasClass('error')){ formGroup.addClass('error'); current.append('<div class="msg-error">Este campo é obrigatório.</div>'); } } else { current.removeClass('error'); currentLocal.next('.msg-error').remove(); } } if(current.data('email') == true){ var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; var currentLocal = current.find('input, select, textarea'); if(!re.test(currentLocal.val().trim())){ isFormValid = false; var formGroup = current; if(!formGroup.hasClass('error')){ formGroup.addClass('error'); current.append('<div class="msg-error">E-mail inválido.</div>'); } } else { current.removeClass('error'); currentLocal.next('.msg-error').remove(); } } if (current.data('captcha') == true) { if(current.find('#g-recaptcha-response').val().length == 0) { isFormValid = false; var captchaError = '<div class="msg-error">Este campo é obrigatório.</div>'; $(captchaError).hide().appendTo("#captcha-message-error").fadeIn(1000); } } if(current.data('checkbox') == true){ var currentLocal = current.find('input, select, textarea'); var checado=false; current.find('input').each(function(){ if($(this).is(':checked')) { checado = true; } }); if(!checado){ isFormValid = false; var formGroup = current; if(!formGroup.hasClass('error')){ formGroup.addClass('error'); current.append('<div class="msg-error">Este campo é obrigatório.</div>'); } } else { current.removeClass('error'); currentLocal.next('.msg-error').remove(); } } }); return isFormValid; } $('.btn-submit-form').on('click', function(event) { event.preventDefault(); // $('#captcha-message-error').empty(); var form = $('.ui-form'); if(validate(form)){ form.submit(); } else { $('html, body').animate({ scrollTop: $('.pg-contact-content').offset().top }, 1000); } }); $('.msg-success .btn-back').on('click', function(){ $('.msg-success').addClass('is-hidden'); $('.pg-contact-form').removeClass('is-hidden'); }); }); </script>]]>