turnero: mostrar punto verde y "Tableta en línea" cuando SigWeb está conectado
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
243003ab31
commit
90a940c379
@@ -2550,9 +2550,13 @@ const topaz = (() => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Detectar disponibilidad al cargar; ocultar botones si no hay pad
|
// Detectar disponibilidad al cargar; ocultar botones si no hay pad, o marcar en línea
|
||||||
_loadScript().then(ok => {
|
_loadScript().then(ok => {
|
||||||
if (!ok) document.querySelectorAll('.btn-topaz').forEach(b => b.style.display = 'none');
|
document.querySelectorAll('.btn-topaz').forEach(b => {
|
||||||
|
if (!ok) { b.style.display = 'none'; return; }
|
||||||
|
b.innerHTML = '<span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:#22c55e;margin-right:5px;vertical-align:middle;box-shadow:0 0 4px #22c55e"></span>'
|
||||||
|
+ '<i class="fas fa-tablet-alt me-1"></i>Tableta en línea';
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function _toast(msg) {
|
function _toast(msg) {
|
||||||
|
|||||||
Reference in New Issue
Block a user