From 2436ff6da4065fadb86329327720d9837b918161 Mon Sep 17 00:00:00 2001 From: Alan <60433566+alanesq@users.noreply.github.com> Date: Fri, 15 Aug 2025 08:42:37 +0100 Subject: [PATCH] Update multiCameraViewer.htm --- Misc/multiCameraViewer.htm | 325 ++++++++++++++++++++++++------------- 1 file changed, 213 insertions(+), 112 deletions(-) diff --git a/Misc/multiCameraViewer.htm b/Misc/multiCameraViewer.htm index 4b80b47..0e464ca 100644 --- a/Misc/multiCameraViewer.htm +++ b/Misc/multiCameraViewer.htm @@ -11,10 +11,11 @@ Add camera IPs under "ADD YOUR CAMERA IPs HERE" Modify load settings keys under 'load settings with keypress' - + default detection timer under "// Timer properties" + Specify config on url: http://x.x.x.x?config=xxx - 03Jun25 + 14Aug25 --> @@ -34,7 +35,6 @@ overflow: hidden; font-family: sans-serif; } - /* Styles for the toolbar at the top */ #toolbar { position: relative; @@ -43,7 +43,6 @@ height: 0; overflow: visible; } - /* Styles for buttons within the toolbar */ #toolbar button { margin-right: 5px; @@ -53,7 +52,6 @@ border: none; cursor: pointer; } - /* Styles for the containers holding each camera image */ .img-container { position: absolute; @@ -63,11 +61,9 @@ z-index: 1; background: #000; } - .img-container.active { z-index: 1000; } - /* Styles for the inner div used for zoom/pan */ .img-inner { width: 100%; @@ -76,7 +72,6 @@ cursor: grab; overflow: hidden; } - .img-inner img { position: absolute; top: 0; @@ -85,7 +80,6 @@ user-select: none; pointer-events: none; } - /* Styles for the close button */ .close-btn { position: absolute; @@ -98,7 +92,6 @@ cursor: pointer; z-index: 10; } - /* Styles for the camera title */ .cam-title { position: absolute; @@ -111,7 +104,6 @@ z-index: 5; pointer-events: none; } - /* Styles for motion detection controls */ .motion-controls { position: absolute; @@ -126,17 +118,14 @@ display: flex; align-items: center; } - .motion-controls label { margin-right: 0px; cursor: pointer; } - .motion-controls input[type="checkbox"] { margin-right: 0px; cursor: pointer; } - .motion-controls input[type="range"] { width: 120px; height: 8px; @@ -162,41 +151,71 @@ pointer-events: none; /* Allow clicks through */ animation: pulse 0.5s infinite alternate; } - @keyframes pulse { from { transform: translate(-50%, -50%) scale(1); opacity: 0.7; } to { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; } } - + /* Timer styles */ + .timer-controls { + position: absolute; + top: 44px; + left: 5px; + background: rgba(0,0,0,0.4); + padding: 5px; + border-radius: 3px; + z-index: 10; + color: #00A; + font-size: 12px; + display: none; /* Hidden by default */ + } + .timer-controls.visible { + display: block; + } + .timer-controls input { + width: 40px; + margin-left: 5px; + background: #333; + color: white; + border: 1px solid #555; + } + .timer-display { + margin-left: 10px; + font-weight: bold; + color: #ff9900; + } + .timer-controls button { + margin-left: 5px; + padding: 2px 6px; + background: #444; + color: white; + border: none; + cursor: pointer; + font-size: 10px; + }
-