1$(document).ready(function() { 2 console.log('Update 4.15'); 3}); 4 5 6if ($("#googleMapsDefault").length > 0) { 7 $.ajax({ 8 url:'https://maps.google.com/maps/api/geocode/json?address='+$('#localizationFormated').val()+'&sensor=false&key=AIzaSyAahw1G_ssG8I0VBkCKky5inir3jJrGnkQ', 9 dataType: 'json', 10 success:function(json){ 11 12 if ( json.status == "OK") { 13 14 var endereco = $('#googleMapsDefault').val(); 15 16 var lat = json.results[0].geometry.location.lat; 17 var lng = json.results[0].geometry.location.lng; 18 19 20 var map; 21 22 var latlng = new google.maps.LatLng(lat, lng); 23 24 var options = { 25 zoom: 17, 26 center: latlng, 27 mapTypeId: google.maps.MapTypeId.ROADMAP 28 }; 29 30 31 map = new google.maps.Map(document.getElementById("mapaGoogle"), options); 32 33 var marker = new google.maps.Marker({ 34 position: new google.maps.LatLng(lat, lng), 35 map: map 36 }); 37 } else { 38 $('#mapaGoogle').hide(); 39 console.log('GMAPS: Endereço informado não existe ou não foi encontrado.'); 40 console.log('https://maps.google.com/maps/api/geocode/json?address='+$('#localizationFormated').val()+'&sensor=false&key=AIzaSyAahw1G_ssG8I0VBkCKky5inir3jJrGnkQ'); 41 } 42 } 43 }); 44} 45 46 47$(function() { 48 49 $('.bx-pager-item a').attr('href','#'); 50 51 52 $('#gridPhotos .gallery').masonry({ 53 // options 54 itemSelector: '.gallery-item' 55 }); 56 57 $('.grid').masonry({ 58 // options 59 itemSelector: '.grid-item' 60 }); 61 //gambi para corrigir qdo carrega ajax 62 function myFunction() { 63 $('.grid').masonry({ 64 // options 65 itemSelector: '.grid-item' 66 }); 67 } 68 setTimeout(myFunction, 1000) 69 70 $('.openRegulamento').click(function(e) { 71 $('.regulamentoContent').slideToggle(300); 72 e.preventDefault(); 73 }) 74}); 75 76 77$(function() { 78 $('.btnPedidoMusica').click(function(e) { 79 e.preventDefault(); 80 }); 81 82 $('.bannerSlider').bxSlider({ 83 auto: true, 84 controls: false, 85 pager: false, 86 stopAutoOnClick: true 87 }); 88}); 89 90/* Pedido de musica Player */ 91$(function() { 92 $('.pedidoMusicaWidget').click(function(e) { 93 $('.formPedidosWidget').stop().slideDown(300); 94 $('.overWidget').stop().fadeIn(300); 95 e.preventDefault(); 96 }); 97 $('.overWidget').click(function() { 98 $('.formPedidos,.formPedidosWidget').stop().slideUp(300); 99 $('.overWidget').stop().fadeOut(300); 100 }); 101}); 102 103 104//Formularios 105function valformPedidos2(w) { 106 107 console.log(templateDir); 108 console.log('Executou form pedidos pelo widget'); 109 console.log($(".pedidosNome2").val()+','+$(".pedidosEmail2").val()+','+$(".pedidoArtista2").val()+','+$(".pedidoMusica2").val()+','+$(".pedidoMensagem2").val()); 110 111 if ($('.mailHoneyPot2').val() == "" ) { 112 var a = false; 113 if ($(".pedidosNome2").val() == "" || $(".pedidosEmail2").val() == "" || $(".pedidoArtista2").val() == "" || $(".pedidoMusica2").val() == "" || $(".pedidoMensagem2").val() == "") { 114 sweetAlert("Oops...", "Todos os campos são obrigatórios!", "error"); 115 a = true 116 } 117 if (a) { 118 return false 119 } else { 120 var b = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; 121 if (!b.test($(".pedidosEmail2").val())) { 122 sweetAlert("Oops...", "Informe um email válido!", "error"); 123 return false 124 } else { 125 $(".pedidoSucesso").slideToggle(300); 126 $(".contentPedidosControl").slideToggle(300); 127 $.post(templateDir+"/assets/envioPedidosWidget.php", $(".formPedidosWidget .formPedido").serialize(), function(c) { 128 if (c == "0") { 129 $(".pedidosEmail2").val("Ex.: [email protected]"); 130 } 131 }); 132 console.log($(".formPedidosWidget .formPedido").serialize()); 133 return false 134 } 135 } 136 } else { 137 sweetAlert("Oops...", "Robo detectado!", "error"); 138 return false 139 } 140}; 141 142 143$(function() { 144 $('.bottomSidebar .widgetContainer').addClass('col-md-3'); 145});
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.