Actualizar index.html

This commit is contained in:
2026-02-21 15:34:54 +00:00
parent 0fb80c8cea
commit 1206b0855c

View File

@@ -231,10 +231,12 @@
} catch(e) { return dateStr; } } catch(e) { return dateStr; }
} }
// Función que se dispara al pulsar "Agendar Visita Ahora"
function startBooking() { function startBooking() {
// Aquí abriremos la ventana modal o el siguiente paso para elegir el día. const urlParams = new URLSearchParams(window.location.search);
alert("¡Perfecto! Aquí abriremos el calendario para que el cliente elija el día. Seguimos cuando me confirmes que el diseño te gusta."); const token = urlParams.get('token');
const serviceId = urlParams.get('service');
// Redirige a la nueva web pasándole los datos
window.location.href = `cita.html?token=${token}&service=${serviceId}`;
} }
</script> </script>