PageSourceSearch

https://www.maymar.com/js/modulos/valoramostupiso/valoramostupiso.js?x=20260923140220

js maymar.com collected 2026-10-04 04:14:41 UTC 3,681 bytes, 94 lines download raw bytes

1$("section#modulo-valoramostupiso-1 button.botonValorar, section#modulo-valoramostupiso-2 button.botonValorar, section#modulo-valoramostupiso-3 button.botonValorar").click(function() {
2    var sectionId = $(this).closest("section").attr("id");
3
4    var ciudad=$("section#"+sectionId+" #valorar-ciudad");
5    var calle=$("section#"+sectionId+" #valorar-calle");
6    var tipologia=$("section#"+sectionId+" #valorar-tipologia");
7    var planta=$("section#"+sectionId+" #valorar-planta");
8    var habitaciones=$("section#"+sectionId+" #valorar-habitaciones");
9    var ascensor=$("section#"+sectionId+" #valorar-ascensor");
10
11    if (ciudad.val().trim()=='') {
12        alerta(FALTA_CIUDAD);
13        $(ciudad).focus();
14        return false;
15    }
16
17    if (calle.val().trim()=='') {
18        alerta(FALTA_CALLE);
19        $(calle).focus();
20        return false;
21    }
22
23    if (planta.val().trim()=='' && tipologia.val()!="Local Comercial" && tipologia.val()!="Planta Baja" && tipologia.val()!="Chalet Independiente") {
24        alerta(FALTA_PLANTA);
25        $(planta).focus();
26        return false;
27    }
28
29    if (habitaciones.val().trim()=='' && tipologia.val()!="Local Comercial") {
30        alerta(FALTA_HABITACIONES);
31        $(habitaciones).focus();
32        return false;
33    }
34
35    $("#formu-valoramostupiso #valoracion-ciudad").val(ciudad.val());
36    $("#formu-valoramostupiso #valoracion-calle").val(calle.val());
37    $("#formu-valoramostupiso #valoracion-tipologia").val(tipologia.val());
38    $("#formu-valoramostupiso #valoracion-planta").val(planta.val());
39    $("#formu-valoramostupiso #valoracion-habitaciones").val(habitaciones.val());
40    $("#formu-valoramostupiso #valoracion-ascensor").val(ascensor.val());
41
42    modalNuestra('segundoPasoValorarmosTuPiso',VALORAMOS_TU_PROPIEDAD);
43});
44
45
46function enviandovaloramostupiso(){$("#modal-valoramostupiso #enviarValoracion").addClass("enviando");}
47
48
49function enviarValoracionPropiedad() {
50
51    if (!$("#modal-valoramostupiso #textolegal-valoracion").is(":checked")) {
52        alerta(ACEPTAR_PRIVACIDAD);
53        return false;
54    }
55
56
57    var ciudad=$("input#valoracion-ciudad").val();
58    var calle=$("input#valoracion-calle").val();
59    var tipologia=$("input#valoracion-tipologia").val();
60    var planta=$("input#valoracion-planta").val();
61    var habitaciones=$("input#valoracion-habitaciones").val();
62    var nombre=$("input#valoracion-nombre").val();
63    var email=$("input#valoracion-email").val();
64    var telefono=$("input#valoracion-telefono").val();
65    var ascensor=$("#valorar-ascensor option:selected").text();
66
67    if (nombre.trim()=='') {
68        alerta(FALTA_NOMBRE);
69        return false;
70    }
71
72    if (!validarEmail(email)) {
73        alerta(EMAIL_INCORRECTO);
74        return false;
75    }
76
77    if (telefono.trim()=='' && TLF_OBLIGATORIO == '1') {
78        alerta(ERROR_TELEFONO);
79        return false;
80    }
81
82    grecaptcha.ready(function() {
83        grecaptcha.execute('6LeFvHcUAAAAADkYzbLtZuO5lRdgl6gpLYovrRwl', {action: 'valoramostupiso'}).then(function(token) {
84            $.post( "modulos/__ajx/envios/enviosFormularios.php", {beforeSend: enviandovaloramostupiso, token: token, ciudad: ciudad, calle: calle, tipologia: tipologia, planta: planta, habitaciones: habitaciones, nombre: nombre, ascensor: ascensor, email: email, telefono: telefono}, function( data ) {
85                if (data.resultado==true) {
86                    alerta(data.mensaje);
87                    $("#modal-valoramostupiso #enviarValoracion").removeClass("enviando");
88                    cerrarModalNuestra($(".modalNuestra"));
89                } else
90                    alerta(data.mensaje);
91            },"json");
92        });
93    });
94}

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.