From 295b2cd3265e2ea53ecffbad04ce3b98faf898ef Mon Sep 17 00:00:00 2001 From: marsalva Date: Mon, 24 Aug 2026 19:57:45 +0000 Subject: [PATCH] Subir archivos a "/" --- index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 64a778e..9af6237 100644 --- a/index.html +++ b/index.html @@ -1583,7 +1583,14 @@ let cName = client && client.name ? client.name : "Cliente"; const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)); const km = R * c; - const remainingMins = Math.max(1, Math.round((km / 35) * 60) + 5); + // Velocidad media urbana (no autopista) y sin sumar un margen fijo, + // para que el tiempo baje de verdad a medida que el técnico se acerca. + let remainingMins; + if (km < 0.3) { + remainingMins = 1; // está prácticamente en la puerta + } else { + remainingMins = Math.max(1, Math.round((km / 28) * 60)); + } if (totalMins === null) totalMins = remainingMins; let progressPercent = totalMins ? ((totalMins - remainingMins) / totalMins) * 100 : 5;