107 lines
3.9 KiB
HTML
107 lines
3.9 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="de">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>AppRobotWebcam</title>
|
||
<style>
|
||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||
body { background: #0f0f0f; color: #e0e0e0; font-family: monospace; }
|
||
|
||
header {
|
||
display: flex; align-items: center; gap: 12px;
|
||
padding: 10px 16px; background: #1a1a1a; border-bottom: 1px solid #333;
|
||
}
|
||
h1 { font-size: 1rem; font-weight: normal; letter-spacing: 0.05em; }
|
||
#statusText { font-size: 0.8rem; color: #888; }
|
||
|
||
#snapAllBtn {
|
||
margin-left: auto;
|
||
background: #2a4a2a; color: #8f8; border: 1px solid #4a8;
|
||
padding: 5px 14px; font-family: monospace; font-size: 0.82rem;
|
||
cursor: pointer; border-radius: 3px; letter-spacing: 0.03em;
|
||
}
|
||
#snapAllBtn:hover:not(:disabled) { background: #3a6a3a; }
|
||
#snapAllBtn:disabled { opacity: 0.4; cursor: default; }
|
||
|
||
/* Config-Link – rechts neben dem Snapshot-Button */
|
||
#configLink {
|
||
color: #8cf; text-decoration: none; border: 1px solid #468;
|
||
padding: 5px 12px; border-radius: 3px; font-size: 0.82rem; letter-spacing: 0.03em;
|
||
}
|
||
#configLink:hover { background: #1d2d3d; }
|
||
|
||
/* Überlast-Banner */
|
||
#notice {
|
||
display: none; align-items: center; gap: 10px;
|
||
background: #4a2a2a; color: #fbb; border-bottom: 1px solid #a55;
|
||
padding: 8px 16px; font-size: 0.82rem;
|
||
}
|
||
#notice button {
|
||
background: #2a2a2a; color: #fcc; border: 1px solid #a55;
|
||
padding: 3px 10px; font-family: monospace; cursor: pointer; border-radius: 3px;
|
||
}
|
||
|
||
#cameras { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px; }
|
||
|
||
.cam-box { position: relative; background: #000; border: 1px solid #2a2a2a; min-width: 320px; }
|
||
|
||
/* Live-MJPEG (multipart/x-mixed-replace) – nativ im <img> */
|
||
.cam-img { display: block; width: 640px; height: 480px; background: #111; object-fit: contain; }
|
||
|
||
.cam-label {
|
||
position: absolute; top: 5px; left: 8px; z-index: 2;
|
||
background: rgba(0,0,0,.65); padding: 2px 7px; border-radius: 3px;
|
||
font-size: 0.72rem; color: #ccc;
|
||
}
|
||
/* Health-Anzeige unten links: fps · drop% */
|
||
.cam-info {
|
||
position: absolute; bottom: 5px; left: 8px; z-index: 2;
|
||
background: rgba(0,0,0,.7); padding: 2px 7px; border-radius: 3px;
|
||
font-size: 0.7rem; color: #999;
|
||
}
|
||
.cam-info.ok { color: #6d6; }
|
||
.cam-info.warn { color: #fb4; }
|
||
.cam-info.crit { color: #f66; }
|
||
|
||
/* Ein/Aus-Schalter oben rechts */
|
||
.cam-toggle {
|
||
position: absolute; top: 5px; right: 8px; z-index: 2;
|
||
background: rgba(0,0,0,.65); color: #ccc; border: 1px solid #444;
|
||
width: 26px; height: 22px; font-size: 0.7rem;
|
||
cursor: pointer; border-radius: 3px;
|
||
}
|
||
.cam-toggle:hover { background: rgba(60,60,60,.85); }
|
||
|
||
/* Snapshot-only-Kamera: Platzhalter statt Live-Bild */
|
||
.cam-placeholder {
|
||
display: flex; align-items: center; justify-content: center;
|
||
color: #444; font-size: 0.82rem; letter-spacing: 0.04em;
|
||
}
|
||
|
||
/* Hi-Res-Test-Button (Phase 1) – links neben dem Ein/Aus-Schalter */
|
||
.cam-hdtest {
|
||
position: absolute; top: 5px; right: 40px; z-index: 2;
|
||
background: rgba(0,0,0,.65); color: #8cf; border: 1px solid #468;
|
||
height: 22px; padding: 0 7px; font-family: monospace; font-size: 0.7rem;
|
||
cursor: pointer; border-radius: 3px;
|
||
}
|
||
.cam-hdtest:hover:not(:disabled) { background: rgba(40,60,90,.85); }
|
||
.cam-hdtest:disabled { opacity: 0.4; cursor: default; }
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<header>
|
||
<h1>AppRobotWebcam</h1>
|
||
<span id="statusText">Verbinde...</span>
|
||
<button id="snapAllBtn" disabled>⬇ Snapshot alle</button>
|
||
<a id="configLink" href="config.html" title="Kamera-Konfiguration">⚙ Config</a>
|
||
</header>
|
||
|
||
<div id="notice"></div>
|
||
<div id="cameras"></div>
|
||
|
||
<script src="viewer.js" defer></script>
|
||
</body>
|
||
</html>
|