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

Sites Pertecentes a (o) SE

Endereço Nota Erros Avisos

laranjeiras.se.gov.br/fale-conosco

71.99 24 83
Recomendações Avaliadas
1.1 Respeitar os Padrões Web.

Recomendações

Número Descrição Quantidade Linhas Código Fonte
1.1.6 Presença de javascript(s) interno 5 39 46 62 83 135
39 <![CDATA[<script> if (location.hostname != "localhost" || location.hostname != "127.0.0.1" || location.hostname != "") { if (location.protocol != 'https:') { location.href = 'https:' + window.location.href.substring(window.location.protocol.length); } } </script>]]>
46 <![CDATA[<script> $(document).on("scroll", function() { if ($(document).scrollTop() > ($(window).height() / 2)) { $(".backTop-button").show(0); } else { $(".backTop-button").hide(0); } }); </script>]]>
62 <![CDATA[<script> (function($) { $(".main-menu").menuMultilevel({ selector:".main-menu", openOnHover:true }); // Gatilho do menu mobile $(".main-menu .menu-mobile-btn").on('click', function(event) { event.preventDefault(); $("body").toggleClass("nav-active"); console.log($("body").attr("class")); }); // Retrai submenus quando o mouse sai da área do menu $(".main-menu").on('mouseleave', function(event) { $(".main-menu .mnu-ul-level-0 ul").hide(); }); }(jQuery)); </script>]]>
83 <![CDATA[<script> (function($) { $("#btnSearch").on("click", function(event) { event.preventDefault(); searchData = $("#formSearch #inputSearch").val(); location.href = encodeURI("/busca-noticias/" + searchData); }); })($); </script>]]>
135 <![CDATA[<script> (function($) { $("#btnContact").on("click", function() { var validated = true; $("[data-validate]").each( function() { var validateType = $(this).attr("data-validate"); var validateWarning = $(this).attr("data-validate-warning"); if (validateType == 'required') { if ($(this).val() == '') { if (typeof validateWarning == 'undefined') { validateWarning = "Este campo deve ser preenchido!"; } dialog({subtitle: validateWarning}); validated = false; $(this).focus(); return false; } } }); if (!validated) { return false; } var $thisButton = $(this); var buttonHtml = $thisButton.html(); $.ajax({ type:'POST', url:'plugins/form-contact-ajax.php', data:$("#formContact").serialize(), beforeSend: function(){ $thisButton.html("Enviando..."); } }) .done(function(response) { console.log(response); if (response.indexOf('{"success":') == 0) { responseJSON = JSON.parse(response); dialog({ title: 'Obrigado!', subtitle: responseJSON.message }); if (responseJSON.success) { document.getElementById("formContact").reset(); } } else { dialog({subtitle: 'Ops! Ocorreu um erro. Entre em contato com o desenvolvedor.'}); } $thisButton.html(buttonHtml); }) .fail(function(jqXHR, textStatus) { dialog({subtitle: 'Ocorreu um erro, informe ao atendimento [' + textStatus + ': ' + jqXHR.status + ']'}); $thisButton.html(buttonHtml); }); return false; }); })($); </script>]]>