From 1206b0855c50ff573cb3a6613fb31dbc2f928bdb Mon Sep 17 00:00:00 2001 From: marsalva Date: Sat, 21 Feb 2026 15:34:54 +0000 Subject: [PATCH] Actualizar index.html --- index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 7c2862c..3cc51a9 100644 --- a/index.html +++ b/index.html @@ -231,10 +231,12 @@ } catch(e) { return dateStr; } } - // Función que se dispara al pulsar "Agendar Visita Ahora" function startBooking() { - // Aquí abriremos la ventana modal o el siguiente paso para elegir el día. - 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 urlParams = new URLSearchParams(window.location.search); + 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}`; }