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

Sites Pertecentes a (o) SP

Endereço Nota Erros Avisos

agricultura.sp.gov.br/fale-conosco

92.95 18 369
Recomendações Avaliadas
1.1 Respeitar os Padrões Web.

Recomendações

Número Descrição Quantidade Linhas Código Fonte
1.1.3 Presença de CSS(s) in-line 4 41 103 353 358
1.1.4 Presença de CSS(s) interno 1 34
1.1.6 Presença de javascript(s) interno 5 6 392 399 481 509
1.1.8 Não foram respeitados os Padrões Web CSS 305 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
41 <![CDATA[<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MV9B9JV" height="0" width="0" style="display:none;visibility:hidden"></iframe>]]>
103 <![CDATA[<p class="h3 margT10" style="max-width:70%"><strong>Agricultura e Abastecimento</strong></p>]]>
353 <![CDATA[<textarea class="form-control" style="resize: vertical;" maxlength="1000" rows="10" name="mensagem" id="mensagem" required></textarea>]]>
358 <![CDATA[<div class="alert alert-info" style="display: none; margin-top: 10px;" role="alert">Seu número de Protocolo é: <strong name="protocolo" id="protocolo"></strong></div>]]>
34 <![CDATA[<style> .grecaptcha-badge { visibility: hidden; } </style>]]>
6 <![CDATA[<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-MV9B9JV');</script>]]>
392 <![CDATA[<script> grecaptcha.ready(function() { grecaptcha.execute('6LdlaK4UAAAAAGBg1D6cXmvolVT94GyYqNAPxQR8', {action: 'pageview'}); }); </script>]]>
399 <![CDATA[<script> ; (function () { "use strict"; // var ENDPOINT = "https://codeagro.agricultura.sp.gov.br/fale-conosco-api"; var ENDPOINT = "http://localhost:5000"; var RECAPTCHA_KEY = "6LdlaK4UAAAAAGBg1D6cXmvolVT94GyYqNAPxQR8"; var FormaContato = { Email: 1, Telefone: 2 }; var $formulario = $("#formulario-fale-conosco"); var $formaDeContato = $("[name=\"forma-de-contato\"]", $formulario); var $nome = $("[name=\"nome\"]", $formulario); var $email = $("[name=\"email\"]", $formulario); var $telefone = $("[name=\"telefone\"]", $formulario); var $assunto = $("[name=\"assunto\"]", $formulario); var $mensagem = $("[name=\"mensagem\"]", $formulario); var $protocolo = $("[name=\"protocolo\"]"); var definirValidacoes = function (formaContato) { $email.prop("required", FormaContato.Email === formaContato); $nome.prop("required", FormaContato.Telefone === formaContato); $telefone.prop("required", FormaContato.Telefone === formaContato); }; $formaDeContato.on("change click", function (e) { var selecionado = parseInt($(e.target).val(), 10); definirValidacoes(selecionado); }); grecaptcha.ready(function () { $formulario.on("submit", function (e) { e.preventDefault(); var $botao = $("[type=\"submit\"]", $formulario); $botao.prop("disabled", true); grecaptcha.execute(RECAPTCHA_KEY, { action: "formulario_fale_conosco" }).then(function (token) { fetch([ENDPOINT, "atendimento"].join("/"), { method: 'POST', mode: 'cors', body: JSON.stringify({ TipoContato: parseInt($("[name=\"forma-de-contato\"]:checked").val(), 10), Nome: $nome.val(), Email: $email.val(), Telefone: $telefone.val(), Assunto: $assunto.val(), Mensagem: $mensagem.val() }), headers:{ "Content-Type": "application/json", "g-recaptcha-response": token } }).then(function (response) { if (response.ok) { $("*", $formulario).prop("disabled", true); toastr.success("Mensagem enviada com sucesso."); response.text().then((body) => { $protocolo.append(body); $formulario.hide(); $(".alert").css("display","block"); }); } else { toastr.error("Erro ao enviar mensagem."); $botao.prop("disabled", false); } }); }); }); }); fetch([ENDPOINT, "assunto"].join("/")).then(function (response) { return response.json().then(function(assuntos) { return assuntos.map(function (assunto) { return $("<option>", { value: assunto.codigoAssunto, html: assunto.assunto }); }); }).then(function (assuntos) { $assunto.append(assuntos); }); }); $("[name=\"forma-de-contato\"]:checked").trigger("change"); }()); </script>]]>
481 <![CDATA[<script> $(document).on("input", "#mensagem", function () { var limite = 1000; var caracteresDigitados = $(this).val().length; var caracteresRestantes = limite - caracteresDigitados; if(caracteresRestantes != 0) {$(".caracteres").css("color", "#000000");}else{$(".caracteres").css("color", "#E30A02");} $(".caracteres").text(caracteresRestantes); }); $(document).ready(function () { $('.telefone').on('keyup', function (e) { if ($(this).val().length >= 6) { var sub = $(this).val().substr(5, 1); if (sub == 9) $(this).mask('(00) 00000-0000'); } else { $(this).mask('(00) 0000-0000'); } }); }); </script>]]>
509 <![CDATA[<script> (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-75718147-1', 'auto'); ga('send', 'pageview'); </script>]]>
0 Não há código fonte a ser exibido.