From dd1e377df7cc7d34c4834b10686df972f81f8d13 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Tue, 21 Jul 2026 10:52:32 -0500 Subject: [PATCH] =?UTF-8?q?turnero:=20ocultar=20bot=C3=B3n=20Tableta=20si?= =?UTF-8?q?=20SigWeb=20no=20est=C3=A1=20disponible=20en=20el=20equipo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Detecta al cargar la página si localhost:47289 responde; si no, oculta todos los .btn-topaz para evitar el error al usuario. Co-Authored-By: Claude Sonnet 4.6 --- ver_formulario_enviado.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ver_formulario_enviado.php b/ver_formulario_enviado.php index 143e967..40a3a41 100644 --- a/ver_formulario_enviado.php +++ b/ver_formulario_enviado.php @@ -2550,6 +2550,11 @@ const topaz = (() => { }); } + // Detectar disponibilidad al cargar; ocultar botones si no hay pad + _loadScript().then(ok => { + if (!ok) document.querySelectorAll('.btn-topaz').forEach(b => b.style.display = 'none'); + }); + function _toast(msg) { const t = document.createElement('div'); t.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);'