Actualizar index.html
This commit is contained in:
@@ -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}`;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user