From ba3c2998e26de64076e4963eef558a5b78d54089 Mon Sep 17 00:00:00 2001 From: TobiasRoeddiger Date: Wed, 11 Sep 2024 15:19:59 +0100 Subject: [PATCH] fixed button logic --- assets/js/ChartManager.js | 4 ++++ index.html | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/js/ChartManager.js b/assets/js/ChartManager.js index c74d20e..74e74af 100644 --- a/assets/js/ChartManager.js +++ b/assets/js/ChartManager.js @@ -161,8 +161,12 @@ $("#testMicButton").click(() => { createWavFileAndDownload(rawData); // When recording stops, create WAV file rawData = []; // Clear rawData after saving $("#testMicButton").text("Test Occl."); + $("#testMicButton").removeClass("btn-stop"); + $("#testMicButton").addClass("btn-control"); } else { $("#testMicButton").text("Stop"); + $("#testMicButton").addClass("btn-stop"); + $("#testMicButton").removeClass("btn-control"); } }); diff --git a/index.html b/index.html index 2bb110e..6dbb828 100644 --- a/index.html +++ b/index.html @@ -126,7 +126,7 @@ .btn-stop { background-color: #f27777 !important; color: black !important; - font-size: 1.2em; + } /* Sensor Control Card */ @@ -346,7 +346,7 @@
Sensor Control
+ class="btn btn-control is-connect-enabled ms-3 " style="min-width: 120px;">Test Occl.