1$(document).ready(function() { 2 3 $('[id^="emp"]').click(sendGAEmpresa); 4 5}); 6 7 8function sendGAEmpresa(){ 9 10 11 ga('send', 'event', 'Empresa', 'Portada', this.id.replace('emp','')); 12} 13function realizarAcciones(){ 14 15 $('#promo3x1_2').fadeOut('slow', 16 function(){ 17 mandarCorreoPromo(); 18 } 19 ); 20 21 return(1); 22} 23 24function mandarCorreoPromo(){ 25 26 IdEmpresa = $("#IDEMPRESA").html(); 27 28 var param = "IDEMPRESA=" + IdEmpresa + "&PROMO=promo3x1"; 29 30 $.ajax({url: '/mandarCorreoPromo.phtml', 31 type: 'POST', 32 data: param, 33 dataType: 'html', 34 success: function(){ 35 // REDIRECCIONAR 36 window.location = '/empresas/gestor-ofertas/crear/'; 37 } 38 }); 39 40} 41 42function abrirInformacion(click){ 43 $('paso'+click+'a').style["display"] = "none"; 44 $('paso'+click+'b').style["display"] = "block"; 45 46 for (i=1;i<=3;i++) 47 { 48 if (click!=i) cerrarInformacion(i); 49 } 50} 51 52function cerrarInformacion(click){ 53 $('paso'+click+'b').style["display"] = "none"; 54 $('paso'+click+'a').style["display"] = "block"; 55} 56 57$('.submenu').on('click', function(e) { 58 // Solo funciona en móvil 59 if (window.innerWidth <= 1024) { 60 // Si NO se ha clicado un enlace, togglear menú 61 if (!$(e.target).closest('a').length) { 62 $(this).toggleClass('open'); 63 if($(this).hasClass( "open" )){ 64 $(this).css({"align-items":"flex-start","flex-direction":"column"}); 65 }else{ 66 $(this).css({"align-items":"center","flex-direction":"row"}); 67 } 68 } 69 } 70});
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.