about summary refs log tree commit diff stats
path: root/js/pico-cam/video.js
diff options
context:
space:
mode:
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');
     }
 });