move "gowebcam" enabled styles over to css

This commit is contained in:
Joel Calado 2021-03-27 09:06:06 +00:00
parent a51d43777a
commit 59d3b0f0fb
2 changed files with 5 additions and 15 deletions

View File

@ -753,6 +753,11 @@ body {
margin: 20px;
padding: 10px 50px;
}
.gowebcam:enabled {
background-color: #3C3;
color: black;
font-weight: bold;
}
.mainmenuclass {
display: inherit;

15
main.js
View File

@ -7651,9 +7651,6 @@ async function grabVideo(quality = 0, eleName = 'previewWebcam', selector = "sel
if (gowebcam) {
gowebcam.disabled = false;
gowebcam.dataset.ready = "true";
gowebcam.style.backgroundColor = "#3C3";
gowebcam.style.color = "black";
gowebcam.style.fontWeight = "bold";
gowebcam.innerHTML = "START";
miniTranslate(gowebcam, "start");
}
@ -7845,9 +7842,6 @@ async function grabVideo(quality = 0, eleName = 'previewWebcam', selector = "sel
if (gowebcam) {
gowebcam.disabled = false;
gowebcam.dataset.ready = "true";
gowebcam.style.backgroundColor = "#3C3";
gowebcam.style.color = "black";
gowebcam.style.fontWeight = "bold";
gowebcam.innerHTML = "START";
miniTranslate(gowebcam, "start");
}
@ -8111,9 +8105,6 @@ async function grabAudio(eleName = "previewWebcam", selector = "#audioSource", t
if (gowebcam) {
gowebcam.disabled = false;
gowebcam.dataset.ready = "true";
gowebcam.style.backgroundColor = "#3C3";
gowebcam.style.color = "black";
gowebcam.style.fontWeight = "bold";
gowebcam.innerHTML = "START";
miniTranslate(gowebcam, "start");
}
@ -9867,9 +9858,6 @@ function setupWebcamSelection(stream = null) {
if (gowebcam) {
gowebcam.disabled = false;
gowebcam.dataset.ready = "true";
gowebcam.style.backgroundColor = "#3C3";
gowebcam.style.color = "black";
gowebcam.style.fontWeight = "bold";
gowebcam.innerHTML = "START";
miniTranslate(gowebcam, "start");
}
@ -10068,9 +10056,6 @@ function previewWebcam() {
gowebcam.style.display = "";
gowebcam.disabled = false;
gowebcam.dataset.ready = "true";
gowebcam.style.backgroundColor = "#3C3";
gowebcam.style.color = "black";
gowebcam.style.fontWeight = "bold";
gowebcam.innerHTML = "START";
miniTranslate(gowebcam, "start");
}