Skip to content

Commit

Permalink
fixed button logic
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasRoeddiger committed Sep 11, 2024
1 parent e6f18f4 commit ba3c299
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions assets/js/ChartManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
});

Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
.btn-stop {
background-color: #f27777 !important;
color: black !important;
font-size: 1.2em;

}

/* Sensor Control Card */
Expand Down Expand Up @@ -346,7 +346,7 @@ <h5 class="card-title">Sensor Control</h5>
<button disabled id="setSensorConfigurationButton"
class="btn btn-control is-connect-enabled flex-fill">Set Configuration</button>
<button disabled id="testMicButton"
class="btn btn-control is-connect-enabled ms-3">Test Occl.</button>
class="btn btn-control is-connect-enabled ms-3 " style="min-width: 120px;">Test Occl.</button>
<button disabled
class="btn btn-disable-sensors btn-stop is-connect-enabled ms-3">Off</button>
</div>
Expand Down

0 comments on commit ba3c299

Please sign in to comment.