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

Sites Pertecentes a (o) SP

Endereço Nota Erros Avisos

www.igc.sp.gov.br/contato/index.html

68.68 22 49
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 239 256 278 282 291
239 <![CDATA[<script> // Initialize and add the map function initMap() { // The location of Uluru var uluru = {lat: -25.344, lng: 131.036}; // The map, centered at Uluru var map = new google.maps.Map( document.getElementById('map'), {zoom: 4, center: uluru}); // The marker, positioned at Uluru var marker = new google.maps.Marker({position: uluru, map: map}); } </script>]]>
256 <![CDATA[<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBns0zMH8XMiwN_YZdlgnlYN_Ojam7SxLw&callback=initMap"> </script>]]>
278 <![CDATA[<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script>]]>
282 <![CDATA[<script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-15300174-1"); pageTracker._trackPageview(); } catch(err) {}</script>]]>
291 <![CDATA[<script> function validateForm(formId) { //Messages var warnings = { text: 'This text field is required', textarea: 'This textarea is required', select: 'Select an option', file: 'Select a file', image: 'Image invalid (Accepting format .gif .png .jpg .jpeg)' }; //Init var validate = true; //Remove old warnings $("#" + formId + " .required-label").remove(); $("#" + formId + " .field-required").each(function () { var myself = $(this); if (myself.prop("type").toLowerCase() === 'file' && myself.val() === '') { myself.after('<div class="required-label">' + warnings.file + '</div>'); validate = false; } if (myself.prop("type").toLowerCase() === 'text' && myself.val() === '') { myself.after('<div class="required-label">' + warnings.text + '</div>'); validate = false; } if (myself.prop("type").toLowerCase() === 'textarea' && myself.val() === '') { myself.after('<div class="required-label">' + warnings.textarea + '</div>'); validate = false; } if (myself.prop("type").toLowerCase() === 'select-one' && myself.val() === '') { myself.after('<div class="required-label">' + warnings.select + '</div>'); validate = false; } }); $("#" + formId + " .image-file-validation").each(function () { var myself = $(this); if (myself.val() != '') { var ext = myself.val().split('.').pop().toLowerCase(); if ($.inArray(ext, ['gif', 'png', 'jpg', 'jpeg']) == -1) { myself.after('<div class="required-label">' + warnings.image + '</div>'); validate = false; } } }); return validate; } function submitContactContent() { $('#submit').addClass('disabled'); $('.message').hide(); $('#submit').attr('disabled', 'disabled'); if (validateForm('contact-form')) { $('.loading').show(); var formData = new FormData($('#contact-form')[0]); $.ajax({ url: '/index.php', data: formData, processData: false, contentType: false, type: 'POST', dataType: 'json', success: function (response) { $('.message').show(); if (response.flag == '1') { $('.message').text(response.massage); } else { $('.message').html('<span class="error">'+response.massage+'</span>'); } $('.loading').hide(); } }); } else { console.log("The form is invalid !"); } $('#submit').removeClass('disabled'); $('#submit').removeAttr('disabled'); return false; } </script>]]>