This commit is contained in:
@@ -565,8 +565,16 @@ table.data-table td.col-actions { white-space: nowrap; }
|
||||
}
|
||||
.tablet-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; }
|
||||
.tablet-dot.on { background: var(--green); }
|
||||
.tablet-dot.off { background: var(--text-dim); }
|
||||
.tablet-dot.off { background: var(--red); }
|
||||
.tablet-seen { display: block; color: var(--text-dim); }
|
||||
.tablet-table tr { scroll-margin-top: 16px; }
|
||||
.tablet-table tr.tablet-unassigned td:first-child { border-left: 5px solid var(--amber); }
|
||||
.tablet-table tr.tablet-saved td { background: rgba(47, 184, 114, 0.12); }
|
||||
.tablet-row-ok { color: var(--green); font-weight: 700; margin-top: 6px; }
|
||||
.tablet-row-error { color: #ff9a94; font-weight: 600; margin-top: 8px; }
|
||||
.tablet-legend { display: inline-block; width: 5px; height: 1em; background: var(--amber); vertical-align: middle; margin-right: 4px; }
|
||||
#lernmodus, #tablet-liste { scroll-margin-top: 16px; }
|
||||
.dash-body .tablet-id-badge { color: #ffffff; background: var(--d-panel); border-color: var(--d-border); opacity: 1; }
|
||||
.learn-form { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
|
||||
.learn-form .big-btn { width: auto; min-width: 240px; }
|
||||
.card.learn-on { border-color: var(--amber); }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Tablet-Zuordnung: fragt alle 20 s die aktuell zugeordnete Zielseite ab
|
||||
/* Tablet-Zuordnung: fragt regelmaessig (data-intervall, Sekunden) die aktuell zugeordnete Zielseite ab
|
||||
(zugleich Lebenszeichen fuer die Admin-Liste). Hat der Admin dem Tablet
|
||||
eine andere Seite zugeordnet, wechselt das Tablet dorthin. Absichtlich
|
||||
ES5/XMLHttpRequest, damit es auch auf aelteren Tablet-Browsern laeuft. */
|
||||
@@ -7,6 +7,8 @@
|
||||
if (!el) return;
|
||||
var aktuell = el.getAttribute('data-ziel');
|
||||
var url = el.getAttribute('data-abfrage');
|
||||
var sekunden = parseInt(el.getAttribute('data-intervall'), 10);
|
||||
if (!(sekunden >= 10)) sekunden = 60;
|
||||
var timer = null;
|
||||
|
||||
function pruefen() {
|
||||
@@ -21,5 +23,5 @@
|
||||
};
|
||||
x.send();
|
||||
}
|
||||
timer = setInterval(pruefen, 20000);
|
||||
timer = setInterval(pruefen, sekunden * 1000);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user