mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Don't display the "Record" button as pressed while recording
This commit is contained in:
parent
ce86ce4530
commit
7fe0ba19b5
2 changed files with 0 additions and 8 deletions
|
@ -216,7 +216,3 @@ body {
|
|||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
input[type=button].red.pressed {
|
||||
background: linear-gradient(#94132e, #94132e);
|
||||
}
|
||||
|
|
|
@ -190,7 +190,6 @@ function onScriptEventReceived(data) {
|
|||
case START_RECORDING_ACTION:
|
||||
isRecording = true;
|
||||
elRecordButton.value = "Stop";
|
||||
elRecordButton.classList.add("pressed");
|
||||
updateSpinner();
|
||||
break;
|
||||
case COUNTDOWN_NUMBER_ACTION:
|
||||
|
@ -199,7 +198,6 @@ function onScriptEventReceived(data) {
|
|||
case STOP_RECORDING_ACTION:
|
||||
isRecording = false;
|
||||
elRecordButton.value = "Record";
|
||||
elRecordButton.classList.remove("pressed");
|
||||
updateSpinner();
|
||||
break;
|
||||
case RECORDINGS_BEING_PLAYED_ACTION:
|
||||
|
@ -230,7 +228,6 @@ function onLoadButtonClicked() {
|
|||
function onRecordButtonClicked() {
|
||||
if (!isRecording) {
|
||||
elRecordButton.value = "Stop";
|
||||
elRecordButton.classList.add("pressed");
|
||||
EventBridge.emitWebEvent(JSON.stringify({
|
||||
type: EVENT_BRIDGE_TYPE,
|
||||
action: START_RECORDING_ACTION
|
||||
|
@ -239,7 +236,6 @@ function onRecordButtonClicked() {
|
|||
updateSpinner();
|
||||
} else {
|
||||
elRecordButton.value = "Record";
|
||||
elRecordButton.classList.remove("pressed");
|
||||
EventBridge.emitWebEvent(JSON.stringify({
|
||||
type: EVENT_BRIDGE_TYPE,
|
||||
action: STOP_RECORDING_ACTION
|
||||
|
|
Loading…
Reference in a new issue