Add object detection, tracking, mobile notifications, and search to any security camera.
icons over text
Rory Clear3a8620e16ae8
diff --git a/mainview.html b/mainview.htmlindex 9f51bc0..620743f 100644--- a/mainview.html+++ b/mainview.html@@ -208,32 +208,21 @@justify-content: space-between;}.event-image-actions button {- padding: 4px 8px;+ padding: 6px;+ background: #007bff;color: white;border: none;border-radius: 4px;cursor: pointer;- font-size: 11px;+ font-size: 14px;flex: 1;+ display: flex;+ align-items: center;+ justify-content: center;}- .event-image-actions button.view-btn {- background: #28a745;- }- .event-image-actions button.view-btn:hover {- background: #218838;- }- .event-image-actions button.play-btn {- background: #007bff;- }- .event-image-actions button.play-btn:hover {+ .event-image-actions button:hover {background: #0056b3;}- .event-image-actions button.play-all-btn {- background: #6f42c1;- }- .event-image-actions button.play-all-btn:hover {- background: #5a359c;- }#imagePreviewModal {display: none;position: fixed;@@ -263,6 +252,18 @@.close-preview:hover {color: #ccc;}++ /* Icon styles */+ .icon {+ display: inline-block;+ width: 16px;+ height: 16px;+ }+ .icon svg {+ width: 100%;+ height: 100%;+ fill: currentColor;+ }</style></head><body>@@ -274,7 +275,6 @@</div></div>-<div class="form-section"><form id="addCameraForm"><input type="text" name="cam_name" placeholder="Camera Name" required>@@ -308,6 +308,23 @@<img id="previewImage" src="" alt="Preview"></div>+ <svg style="display: none;">+ <symbol id="icon-magnify" viewBox="0 0 24 24">+ <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>+ </symbol>++ <symbol id="icon-play" viewBox="0 0 24 24">+ <path d="M8 5v14l11-7z"/>+ </symbol>++ <symbol id="icon-play-all" viewBox="0 0 24 24">+ <rect x="2" y="2" width="8" height="8" fill="currentColor"/>+ <rect x="14" y="2" width="8" height="8" fill="currentColor"/>+ <rect x="2" y="14" width="8" height="8" fill="currentColor"/>+ <rect x="14" y="14" width="8" height="8" fill="currentColor"/>+ </symbol>+ </svg>+<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script><script>const activeVideoStreams = new Map();@@ -800,9 +817,21 @@<strong>${img.cam_name || 'Camera'}</strong></div><div class="event-image-actions">- <button class="view-btn" onclick="viewImage('${img.url}')">View</button>- <button class="play-btn" onclick="playVideoAtTime('${img.cam_name}', ${img.timestamp})">Play</button>- <button class="play-all-btn" onclick="playAllCamerasAtTime(${img.timestamp})">Play (All)</button>+ <button title="View" onclick="viewImage('${img.url}')">+ <span class="icon">+ <svg><use href="#icon-magnify"></use></svg>+ </span>+ </button>+ <button title="Play" onclick="playVideoAtTime('${img.cam_name}', ${img.timestamp})">+ <span class="icon">+ <svg><use href="#icon-play"></use></svg>+ </span>+ </button>+ <button title="Play All" onclick="playAllCamerasAtTime(${img.timestamp})">+ <span class="icon">+ <svg><use href="#icon-play-all"></use></svg>+ </span>+ </button></div></div>`;