about summary refs log tree commit diff stats
path: root/js/pico-cam/video.js
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2024-06-30 17:31:33 -0400
committerelioat <elioat@tilde.institute>2024-06-30 17:31:33 -0400
commit7a07d2799dc777de2816a16777c2f9953a284241 (patch)
treee14a61447ae97f984d218f6dee05baa331290296 /js/pico-cam/video.js
parent39c186174ebc88233e641fee868a20d2d24b8e65 (diff)
downloadtour-7a07d2799dc777de2816a16777c2f9953a284241.tar.gz
*
Diffstat (limited to 'js/pico-cam/video.js')
-rw-r--r--js/pico-cam/video.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/pico-cam/video.js b/js/pico-cam/video.js
index b2f68a5..b28038f 100644
--- a/js/pico-cam/video.js
+++ b/js/pico-cam/video.js
@@ -22,6 +22,7 @@ toggleCameraButton.addEventListener('click', async () => {
             isCameraOn = true;
             toggleCameraButton.textContent = 'Turn Camera Off';
             captureFrameButton.disabled = false;
+            captureFrameButton.classList.add('active');
             video.addEventListener('loadeddata', () => {
                 canvas.width = lowResWidth;
                 canvas.height = lowResHeight;
@@ -36,6 +37,7 @@ toggleCameraButton.addEventListener('click', async () => {
         isCameraOn = false;
         toggleCameraButton.textContent = 'Turn Camera On';
         captureFrameButton.disabled = true;
+        captureFrameButton.classList.remove('active');
     }
 });