Test one link
Build und Push Docker Image / build-and-push (push) Successful in 11s

This commit is contained in:
2026-11-04 14:42:16 +01:00
parent df0ffa2e73
commit 779e1832ac
11 changed files with 623 additions and 11 deletions
+34
View File
@@ -488,6 +488,23 @@ table.data-table td.col-actions { white-space: nowrap; }
/* Kleine, dezente Maschinen-ID-Markierung unten rechts auf allen
Maschinenseiten - zur eindeutigen Zuordnung, welches Tablet/Display an
welcher Maschine hängt. */
/* Kennung des Tablets (nur auf Geräten mit Tablet-Cookie), links unten */
.tablet-id-badge {
position: fixed;
left: 12px;
bottom: 10px;
color: var(--text-dim);
background: var(--panel);
border: 1px solid var(--border);
border-radius: 8px;
padding: 3px 9px;
font-size: 0.85em;
letter-spacing: 0.08em;
opacity: 0.75;
z-index: 10;
pointer-events: none;
}
.machine-id-badge {
position: fixed;
right: 12px;
@@ -537,6 +554,23 @@ table.data-table td.col-actions { white-space: nowrap; }
.import-bulk .big-btn { flex: 1; width: auto; min-width: 260px; }
.warn-box ul { margin: 8px 0 0; padding-left: 20px; font-weight: 400; }
/* Tablets */
.tablet-wait { text-align: center; padding: 30px 20px; }
.tablet-wait-title { font-size: 1.6em; font-weight: 700; }
.tablet-code { font-size: 3.2em; font-weight: 800; letter-spacing: 0.12em; margin: 18px 0 6px; color: var(--amber); }
.tablet-form { display: flex; gap: 8px; flex-wrap: wrap; }
.tablet-form input, .tablet-form select {
flex: 1; min-width: 150px; padding: 8px 10px; font-size: 1em;
background: var(--bg); color: var(--text); border: 2px solid var(--border); border-radius: 8px;
}
.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-seen { display: block; color: var(--text-dim); }
.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); }
/* Import: auffälliger gelber Hinweis, wenn etwas nicht automatisch geht */
.attention-banner {
display: flex; gap: 16px; align-items: center;
+25
View File
@@ -0,0 +1,25 @@
/* Tablet-Zuordnung: fragt alle 20 s 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. */
(function () {
var el = document.querySelector('script[data-abfrage]');
if (!el) return;
var aktuell = el.getAttribute('data-ziel');
var url = el.getAttribute('data-abfrage');
var timer = null;
function pruefen() {
var x = new XMLHttpRequest();
x.open('GET', url + '?t=' + new Date().getTime(), true);
x.onload = function () {
if (x.status !== 200) return;
var d;
try { d = JSON.parse(x.responseText); } catch (e) { return; }
if (d.ziel === null) { clearInterval(timer); return; } /* Tablet wurde entfernt */
if (d.ziel && d.ziel !== aktuell) { window.location.href = d.ziel; }
};
x.send();
}
timer = setInterval(pruefen, 20000);
})();