diff --git a/evidence-aut.html b/evidence-aut.html index 53c0163..4dbb459 100644 --- a/evidence-aut.html +++ b/evidence-aut.html @@ -128,28 +128,34 @@
- + - - +
- + + + + + + + +
+ +
- - + +
@@ -157,20 +163,24 @@
- +
+
- +
- + +
@@ -178,21 +188,55 @@
- +
+
- +
- - + +
+ +
+
+
+ +
+ +
+ +
+
+
+
+ + +

Powered by Mapy.cz

+
+ +
+ +
+
+ +
+ +
+
+
@@ -200,9 +244,14 @@
- + +
+ km +
+
@@ -310,43 +359,8 @@ const timeEnd = document.getElementById('time_end'); const dateStart = document.getElementById('date_start'); const dateEnd = document.getElementById('date_end'); - const reservationId = document.getElementById('reservationId'); let debounceTimer; - - // Check for reservation data - function handleReservationData() { - const urlParams = new URLSearchParams(window.location.search); - const reservationId = urlParams.get('reservationId'); - - if (reservationId) { - // Get reservation data from localStorage - const reservationData = JSON.parse(localStorage.getItem(`reservation_${reservationId}`)); - if (reservationData) { - // Fill form with reservation data - document.getElementById('name').value = reservationData.driver; - document.getElementById('vehicle').value = reservationData.vehicle; - - // Parse dates - const startDate = new Date(reservationData.start); - const endDate = new Date(reservationData.end); - - document.getElementById('date_start').value = startDate.toISOString().split('T')[0]; - document.getElementById('time_start').value = startDate.toTimeString().split(' ')[0]; - document.getElementById('date_end').value = endDate.toISOString().split('T')[0]; - document.getElementById('time_end').value = endDate.toTimeString().split(' ')[0]; - - // Set reservation ID - document.getElementById('reservationId').value = reservationId; - - // Show message - showMessage('Data byla načtena z rezervace.', 'success'); - } - } - } - - // Initialize form - handleReservationData(); // Set default dates to today const today = new Date(); diff --git a/rezervace-aut.html b/rezervace-aut.html index 373a225..cfa1e92 100644 --- a/rezervace-aut.html +++ b/rezervace-aut.html @@ -1111,19 +1111,22 @@ -