Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

remove dup

roryclear084578a703b3
diff --git a/clearcam/player.html b/clearcam/player.html
index 6dea3fc..6741c93 100644
--- a/clearcam/player.html
+++ b/clearcam/player.html
@@ -367,20 +367,11 @@
document.addEventListener('DOMContentLoaded', function() {
const datePicker = document.getElementById('datePicker');
datePicker.value = currentDate;
-
- // Add an event listener to handle date changes
datePicker.addEventListener('change', function() {
const selectedDate = new Date(this.value);
const formattedDate = formatDate(selectedDate);
window.location.href = `${window.location.pathname}?date=${formattedDate}`;
});
-
- function formatDate(date) {
- const year = date.getFullYear();
- const month = String(date.getMonth() + 1).padStart(2, '0');
- const day = String(date.getDate()).padStart(2, '0');
- return `${year}-${month}-${day}`;
- }
});
let isFetchingSegments = false;