From cf7a123a582011d9a70e043a6097cffc88b5190d Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 17 Oct 2025 10:33:31 +0530 Subject: [PATCH] added ocr old logic --- resources/views/fields/camera-capture.blade.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/resources/views/fields/camera-capture.blade.php b/resources/views/fields/camera-capture.blade.php index 0bff038..b29127a 100644 --- a/resources/views/fields/camera-capture.blade.php +++ b/resources/views/fields/camera-capture.blade.php @@ -44,12 +44,11 @@ document.addEventListener('DOMContentLoaded', () => { -
- Capture - Retake - Switch Camera -
- +
+ Capture + Retake + Switch Camera +
@@ -99,6 +98,7 @@ function cameraCapture() { snapshot.src = dataUrl; snapshot.classList.remove('hidden'); + video.classList.add('hidden'); this.photoTaken = true; this.$refs.hiddenInput.value = dataUrl; @@ -107,7 +107,7 @@ function cameraCapture() { async retakePhoto() { this.photoTaken = false; this.$refs.snapshot.classList.add('hidden'); - //this.$refs.video.classList.remove('hidden'); + this.$refs.video.classList.remove('hidden'); await this.initCamera(); } }