Files
MultiRoombaRover/server/public/spectate/index.html
T
2025-11-13 23:45:02 -05:00

34 lines
1.3 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Rover Spectator</title>
<style>
body { font-family: sans-serif; margin: 16px; }
#status { margin-bottom: 12px; }
#grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rover-card { border: 1px solid #ccc; padding: 12px; border-radius: 6px; background: #fdfdfd; }
.rover-card h3 { margin: 0 0 8px 0; }
.sensor { font-family: monospace; white-space: pre-wrap; word-break: break-word; }
.meta { font-size: 0.9rem; color: #555; margin-bottom: 8px; }
.video-wrap { background: #000; min-height: 160px; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; }
.video-wrap video { width: 100%; max-height: 200px; background: #000; }
.video-status { font-size: 0.85rem; color: #444; margin-bottom: 4px; }
</style>
</head>
<body>
<h1>Rover Spectator</h1>
<div id="status">Connecting…</div>
<div id="grid"></div>
<script src="/socket.io/socket.io.js"></script>
<script>
window.__desiredRole = 'spectator';
</script>
<script src="../loader.js"></script>
<script src="../src/globals/socket.js"></script>
<script src="../src/services/videoPlayer.js"></script>
<script src="spectator.js"></script>
</body>
</html>