1$(function(){ 2 3 //Formulários contatos 4 $(document).on('submit','.form-contato, .form-dinamico',function(e){ 5 var form = this; 6 e.preventDefault(); 7 var postData = new FormData(form); 8 9 $.ajax({ 10 url: $(this).prop('action'), 11 type: 'POST', 12 data: postData, 13 contentType: false, 14 cache: false, 15 processData:false, 16 dataType: 'json', 17 beforeSend: function(){ 18 // $.LoadingOverlay("show"); 19 }, 20 success: function(result) { 21 if (result.success) { 22 swal("Aviso", result.message, "success"); 23 $(form)[0].reset(); 24 return true; 25 } 26 swal("Erro", result.message, "error"); 27 }, 28 error: function(error) { 29 var msg = 'Não foi possÃvel enviar a requisição. Por favor, tente mais tarde.'; 30 swal("Erro", msg , "error"); 31 console.log(error.responseText); 32 }, 33 complete: function() { 34 //$.LoadingOverlay("hide"); 35 } 36 }); 37 }); 38}); 39 40function fecharImpressao(){ 41 $('#conteudoImpressao').empty(); 42 $('#divImpressao').hide(); 43 $('#divImpressao').modal('hide'); 44} 45 46function showCategories(value,controller,param) { 47 48 var id = (value) ? value : ''; 49 var param = (param) ? param : 'categoria'; 50 51 if (!id) { 52 document.location.href = DynamikaBaseUrl+"/"+controller+'/index'; 53 return true; 54 } 55 56 document.location.href = DynamikaBaseUrl+"/"+controller+"/"+param+"/"+id; 57} 58 59// SUBMENUS 60var acc = document.getElementsByClassName("accordion"); 61var i; 62 63for (i = 0; i < acc.length; i++) { 64 acc[i].onclick = function(){ 65 /* Toggle between adding and removing the "active" class, 66 to highlight the button that controls the panel */ 67 this.classList.toggle("active"); 68 69 /* Toggle between hiding and showing the active panel */ 70 var panel = this.nextElementSibling; 71 if (panel.style.display === "block") { 72 panel.style.display = "none"; 73 } else { 74 panel.style.display = "block"; 75 } 76 } 77} 78 79function openNav() { 80 document.getElementById("mySidenav").style.width = "250px"; 81} 82 83function closeNav() { 84 document.getElementById("mySidenav").style.width = "0"; 85} 86 87$(document).ready(function() { 88 var scrollTop = $(".scrollTop"); 89 $(window).scroll(function() { 90 var topPos = $(this).scrollTop(); 91 if (topPos > 100) { 92 $(scrollTop).css("opacity", "1"); 93 94 } else { 95 $(scrollTop).css("opacity", "0"); 96 } 97 98 }); 99 $(scrollTop).click(function() { 100 $('html, body').animate({ 101 scrollTop: 0 102 }, 800); 103 return false; 104 105 }); 106}); 107 108const tempo_intervalo = 10; //ms -> define a velocidade da animação 109 110$('.dynamika-counter-up').each(function() { 111 let count_to = parseInt($(this).data('to')); 112 let time = parseInt($(this).data('time')); 113 let intervalos = time / tempo_intervalo; //quantos passos de animação tem 114 let incremento = count_to / intervalos; //quanto cada contador deve aumentar 115 let valor = 0; 116 let el = $(this); 117 118 let timer = setInterval(function() { 119 if (valor >= count_to){ //se já contou tudo tem de parar o timer 120 valor = count_to; 121 clearInterval(timer); 122 } 123 124 let texto = valor.toFixed(0).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1."); 125 el.text(texto); 126 valor += incremento; 127 }, tempo_intervalo); 128});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.