1jQuery(document).ready(function($){ 2 3 $('input[type="tel"]').mask('(99) 9999-9999?9'); 4 5 $('#menu-mobile').on('click', function(){ 6 $('#busca').removeClass('ativo'); 7 if ($('#menu-menu').hasClass('ativo')){ 8 $('#menu-menu').removeClass('ativo'); 9 } else { 10 $('#menu-menu').addClass('ativo'); 11 } 12 }); 13 14 $('.btn-busca').on('click', function(){ 15 $('#menu-menu').removeClass('ativo'); 16 if ($('#busca').hasClass('ativo')){ 17 $('#busca').removeClass('ativo'); 18 } else { 19 $('#busca').addClass('ativo'); 20 } 21 }); 22 23 $('.filtro-materias a').on('click',function(){ 24 25 $(this).siblings().removeClass('ativo'); 26 $(this).addClass('ativo'); 27 28 $id = $(this).attr('id'); 29 30 $('.cards a').hide(); 31 $('.cards a.' + $id).show(); 32 33 }); 34 35 $('.form-newsletter').on('submit', function(event) { 36 37 event.preventDefault(); 38 var nome, email; 39 40 nome = $('.form-newsletter input[name="nome"]').val(); 41 email = $('.form-newsletter input[name="email"]').val(); 42 43 var data_array = [ 44 {name: 'identificador', value: 'Formulário Newsletter Visão'}, 45 {name: 'token_rdstation', value: 'f68ede1496cc3917c67cff9c43d9e854'}, 46 {name: 'nome', value: nome}, 47 {name: 'email', value: email} 48 ]; 49 50 RdIntegration.post(data_array); 51 52 alert('Sucesso! A partir de agora você irá receber todas as atualizações e novidades do blog.'); 53 54 $('.form-newsletter input[name="nome"]').val(""); 55 $('.form-newsletter input[name="email"]').val(""); 56 57 }); 58 59 $('.form-contato').on('submit', function(event) { 60 61 event.preventDefault(); 62 var nome, email, telefone, mensagem; 63 64 nome = $('.form-contato input[name="nome"]').val(); 65 email = $('.form-contato input[name="email"]').val(); 66 telefone = $('.form-contato input[name="telefone"]').val(); 67 mensagem = $('.form-contato textarea[name="mensagem"]').val(); 68 69 var data_array = [ 70 {name: 'identificador', value: 'Formulário Contato Visão'}, 71 {name: 'token_rdstation', value: 'f68ede1496cc3917c67cff9c43d9e854'}, 72 {name: 'nome', value: nome}, 73 {name: 'email', value: email}, 74 {name: 'telefone', value: telefone}, 75 {name: 'mensagem', value: mensagem} 76 ]; 77 78 RdIntegration.post(data_array); 79 80 alert('Sucesso! Em breve retornaremos o contato.'); 81 $('.form-contato input[name="nome"]').val(""); 82 $('.form-contato input[name="email"]').val(""); 83 $('.form-contato input[name="telefone"]').val(""); 84 $('.form-contato textarea[name="mensagem"]').val(""); 85 86 }); 87 88 // BANNER HOME 89 $('.banner-content').on('init', function(ev, el){ 90 $('video').each(function () { 91 this.play(); 92 }); 93 }); 94 95 $('.banner-content').slick({ 96 arrows: false, 97 autoplay: true, 98 autoplaySpeed: 10000, 99 slide: '.item', 100 slidesToShow: 1, 101 slidesToScroll: 1, 102 fade: true 103 }); 104 105 $('#banner .btnPrev').on('click', function(){ 106 $('.banner-content').slick('slickPrev'); 107 }); 108 109 $('#banner .btnNext').on('click', function(){ 110 $('.banner-content').slick('slickNext'); 111 }); 112 113});
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.