mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:29:47 +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 {
|
.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=button].red.pressed {
|
|
||||||
background: linear-gradient(#94132e, #94132e);
|
|
||||||
}
|
|
||||||
|
|
|
@ -190,7 +190,6 @@ function onScriptEventReceived(data) {
|
||||||
case START_RECORDING_ACTION:
|
case START_RECORDING_ACTION:
|
||||||
isRecording = true;
|
isRecording = true;
|
||||||
elRecordButton.value = "Stop";
|
elRecordButton.value = "Stop";
|
||||||
elRecordButton.classList.add("pressed");
|
|
||||||
updateSpinner();
|
updateSpinner();
|
||||||
break;
|
break;
|
||||||
case COUNTDOWN_NUMBER_ACTION:
|
case COUNTDOWN_NUMBER_ACTION:
|
||||||
|
@ -199,7 +198,6 @@ function onScriptEventReceived(data) {
|
||||||
case STOP_RECORDING_ACTION:
|
case STOP_RECORDING_ACTION:
|
||||||
isRecording = false;
|
isRecording = false;
|
||||||
elRecordButton.value = "Record";
|
elRecordButton.value = "Record";
|
||||||
elRecordButton.classList.remove("pressed");
|
|
||||||
updateSpinner();
|
updateSpinner();
|
||||||
break;
|
break;
|
||||||
case RECORDINGS_BEING_PLAYED_ACTION:
|
case RECORDINGS_BEING_PLAYED_ACTION:
|
||||||
|
@ -230,7 +228,6 @@ function onLoadButtonClicked() {
|
||||||
function onRecordButtonClicked() {
|
function onRecordButtonClicked() {
|
||||||
if (!isRecording) {
|
if (!isRecording) {
|
||||||
elRecordButton.value = "Stop";
|
elRecordButton.value = "Stop";
|
||||||
elRecordButton.classList.add("pressed");
|
|
||||||
EventBridge.emitWebEvent(JSON.stringify({
|
EventBridge.emitWebEvent(JSON.stringify({
|
||||||
type: EVENT_BRIDGE_TYPE,
|
type: EVENT_BRIDGE_TYPE,
|
||||||
action: START_RECORDING_ACTION
|
action: START_RECORDING_ACTION
|
||||||
|
@ -239,7 +236,6 @@ function onRecordButtonClicked() {
|
||||||
updateSpinner();
|
updateSpinner();
|
||||||
} else {
|
} else {
|
||||||
elRecordButton.value = "Record";
|
elRecordButton.value = "Record";
|
||||||
elRecordButton.classList.remove("pressed");
|
|
||||||
EventBridge.emitWebEvent(JSON.stringify({
|
EventBridge.emitWebEvent(JSON.stringify({
|
||||||
type: EVENT_BRIDGE_TYPE,
|
type: EVENT_BRIDGE_TYPE,
|
||||||
action: STOP_RECORDING_ACTION
|
action: STOP_RECORDING_ACTION
|
||||||
|
|
Loading…
Reference in a new issue