1$("#modulo-pie-1 button.botonEnviar, #modulo-pie-2 button.botonEnviar, #modulo-pie-3 button.botonEnviar").click(function () { 2 3 if (!$("#modulo-pie-1 #textolegal3, #modulo-pie-2 #textolegal3 ,#modulo-pie-3 #textolegal3").is(":checked")) { 4 alert(ACEPTAR_PRIVACIDAD); 5 return false; 6 } 7 8 var nombre = $("#pie-contacto #pie-nombre,#pie-contacto-2 #pie-nombre,#pie-contacto-3 #pie-nombre").val(); 9 var email = $("#pie-contacto #pie-email,#pie-contacto-2 #pie-email,#pie-contacto-3 #pie-email").val(); 10 var telefono = $("#pie-contacto #pie-telefono, #pie-contacto-2 #pie-telefono, #pie-contacto-3 #pie-telefono").val(); 11 var ciudad = $("#pie-contacto #pie-ciudad, #pie-contacto-2 #pie-ciudad, #pie-contacto-3 #pie-ciudad").val(); 12 var descripcion = $("#pie-contacto #pie-descripcion, #pie-contacto-2 #pie-descripcion, #pie-contacto-3 #pie-descripcion").val(); 13 14 // Comprobamos si los campos están informados 15 // ------------------------------------------ 16 var mensaje_err = ""; 17 var hayerror = false; 18 19 if (nombre == null || nombre == "") { 20 mensaje_err += ERROR_NOM + "\n"; 21 hayerror = true; 22 } 23 24 if (TLF_OBLIGATORIO == '1' && (telefono == null || telefono == "" || isNaN(telefono) || telefono.length < 9 || telefono.length > 12)) { 25 mensaje_err += ERROR_TLF + "\n"; 26 hayerror = true; 27 } 28 29 if (email == null || email == "" || !validarEmail(email)) { 30 mensaje_err += ERROR_EML + "\n"; 31 hayerror = true; 32 } 33 34 if (descripcion == null || descripcion == "") { 35 mensaje_err += ERROR_CONSULTA + "\n"; 36 hayerror = true; 37 } 38 39 if (hayerror) { 40 alert(mensaje_err); 41 return false; 42 } 43 44 function enviandoSolicitudInformacion() { 45 $("#modulo-pie-1 .resultadoInfo,#modulo-pie-2 .resultadoInfo,#modulo-pie-3 .resultadoInfo").text(''); 46 $("#modulo-pie-1 .resultadoInfo,#modulo-pie-2 .resultadoInfo,#modulo-pie-3 .resultadoInfo").removeClass('ok ko'); 47 $("#modulo-pie-1 .resultadoInfo,#modulo-pie-2 .resultadoInfo,#modulo-pie-3 .resultadoInfo").addClass("enviando"); 48 $("#modulo-pie-1 .resultadoInfo,#modulo-pie-2 .resultadoInfo,#modulo-pie-3 .resultadoInfo").fadeIn(50); 49 50 } 51 52 grecaptcha.ready(function () { 53 grecaptcha.execute('6LeFvHcUAAAAADkYzbLtZuO5lRdgl6gpLYovrRwl', {action: 'solicitudInformacion'}).then(function (token) { 54 $.post("modulos/__ajx/envios/enviosFormularios.php", { 55 beforeSend: enviandoSolicitudInformacion, 56 token: token, 57 nombre: nombre, 58 email: email, 59 telefono: telefono, 60 ciudad: ciudad, 61 descripcion: descripcion 62 }, function (data) { 63 64 var event = new CustomEvent('EnvioCorreo', { 65 'detail': { 66 'email_usuario': email, 67 'ref': null, 68 'contexto': 'pie_de_pagina', 69 'data_resultado': data.resultado, 70 'data_mensaje': data.mensaje 71 } 72 }, false); 73 74 $("#modulo-pie-1 .resultadoInfo,#modulo-pie-2 .resultadoInfo,#modulo-pie-3 .resultadoInfo").removeClass('ok ko envi
74ando'); 75 76 if (data.resultado == false) { 77 $("#modulo-pie-1 .resultadoInfo,#modulo-pie-2 .resultadoInfo,#modulo-pie-3 .resultadoInfo").addClass('ko'); 78 $("#modulo-pie-1 .resultadoInfo,#modulo-pie-2 .resultadoInfo,#modulo-pie-3 .resultadoInfo").text(data.mensaje); 79 80 } else { 81 $("#modulo-pie-1 .resultadoInfo,#modulo-pie-2 .resultadoInfo,#modulo-pie-3 .resultadoInfo").addClass('ok'); 82 $("#modulo-pie-1 .resultadoInfo,#modulo-pie-2 .resultadoInfo,#modulo-pie-3 .resultadoInfo").text(data.mensaje); 83 84 } 85 86 document.dispatchEvent(event); 87 88 $("#modulo-pie-1 .resultadoInfo,#modulo-pie-2 .resultadoInfo,#modulo-pie-3 .resultadoInfo").fadeIn(); 89 setTimeout(function () { 90 $("#modulo-pie-1 .resultadoInfo,#modulo-pie-2 .resultadoInfo,#modulo-pie-3 .resultadoInfo").fadeOut(); 91 }, 4000); 92 }, "json"); 93 }); 94 }); 95}); 96 97$("#eltextolegal3").click(function () { 98 modalNuestra('mytextoprivacidadFooter', POLITICA_PRIVACIDAD); 99}); 100 101function mostrar_ocultar_mapa(iddivmapa) { 102 if ($("#mapaOficina_" + iddivmapa).is(':visible')) { 103 $("#mapaOficina_" + iddivmapa).hide(); 104 } else { 105 $("#mapaOficina_" + iddivmapa).show(); 106 } 107} 108 109function modalPoliticaCookies(titulo, textocookies, botonaceptar, botonrechazar, botongestionar, textocookiescompleto, aceptar_selec, boton_cerrar) { 110 if (boton_cerrar == null) boton_cerrar = false; 111 112 let boton_cerrar_html = ''; 113 let boton_cerrar_html_2 = ''; 114 if (boton_cerrar) { 115 boton_cerrar_html = `<span class="botonCerrar" onclick="$(this).closest('.cajaNegraAlerta').remove()">X</span>`; 116 boton_cerrar_html_2 = `<span class="botonCerrar" onclick="$(this).closest('#caja_texto_cookies_textocompleto').hide();$(this).closest('.modalNuestraCookies').find('#caja_texto_cookies_entrada').show();">X</span>`; 117 } 118 119 var html = ''; 120 html += '<div class="cajaNegraAlerta">'; 121 html += '<div class="modalNuestraCookies">'; 122 123 // Modal de entrada 124 html += `<div id="caja_texto_cookies_entrada">`; 125 html += '<h3 id="titulo_politica_cookies"><span>' + titulo + '</span> <img src="img/header/logo.png">' + boton_cerrar_html + '</h3>'; 126 html += '<div class="contCookies">'; 127 html += '<p id="texto_breve_politica_cookies">' + textocookies + '</p>'; 128 html += '<div id="caja_botones_cookies">'; 129 html += '<input type="button" id="botongestionar_aviso_entrada" value="' + botongestionar + '" onclick="desplegarTextoCookiesAviso();"/>'; 130 html += '<input type="button" id="botonaceptar_aviso_entrada" value="' + botonaceptar + '" onclick="cerrarModalNuestra(this);cookieHideAceptarMensajeCentro();"/>'; 131 html += '<input type="button" id="botonrechazar_aviso_entrada" value="' + botonrechazar + '" onclick="cerrarModalNuestra(this);cookieHideRechazarMensajeCentro();"/>'; 132 html += '</div>'; 133 html += '</div>'; 134 html += '</div>'; 135 // Fin Modal de entrada 136 137 // Texto de las cookies 138 html += '<div id="caja_texto_cookies_textocompleto" style="display: none;">'; 139 html += '<h3 id="titulo_politica_cookies"><span>' + titulo + '</span> <img src="img/header/logo.png">' + boton_cerrar_html_2 + '</h3>'; 140 html += '<div id="textocookies" class="classtextocookies contCookies">'; 141 //html += '<div id="mas-detalles-cookies" style="display:block;">'; 142 html += '' + textocookiescompleto + ''; 143 //html += '</div>'; 144 html += '</div>'; 145 html += '<div class="contCookies" style="flex-wrap: wrap;">'; 146 html += '<input type="button" id="botonaceptar_aviso_entrada" value="' + botonaceptar + '" onclick="cookieHideAceptarMensajeCentro();cerrarModalNuestra(this);"/>'; 147 html += '<input type="button" id="botonaceptar_aviso_textocompleto" value="' + aceptar_selec + '" onclick="cookieHiveAptSelMsgCentro();cerrarModalNuestra(this);"/>'; 148 html += '<input type="button" id="botonrechazar_aviso_entrada" value="' + botonrechazar + '" onclick="cookieHideRechazarMensajeCentro();cerrarModalNuestra(this);"/>'; 149 html += '</div>'; 150 html += '</div>'; 151 // Fin texto de las cookies 152 153 html += '</div>'; // div Fin modalNuestraCookies 154 html += '</div>'; // div Fin cajaNegraAlerta 155 156 $('body').append(html); 157 158 if(TEXTO_COOKIE_FIJO){
159 comprobarCheckboxPoliticaCookies(); 160 } 161 162}
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.