File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html >
3
3
< head >
4
- < title > </ title >
4
+ < title > abduhslab </ title >
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6
6
< link href ="css/style.css " rel ="stylesheet ">
7
7
< link href ='http://fonts.googleapis.com/css?family=Open+Sans ' rel ='stylesheet ' type ='text/css '>
28
28
< canvas style ="display:none; " id ="canvas " width ="640 " height ="480 "> </ canvas >
29
29
30
30
< br >
31
- < button id ="mute-button " onclick ="doMute() "> Unmute </ button >
31
+ < button id ="mute-button " onclick ="doMute() "> Mute/ Unmute </ button >
32
32
33
33
< div id ="texte ">
34
34
< h3 id ="vol ">
@@ -43,7 +43,7 @@ <h3 id="chord">
43
43
< div >
44
44
45
45
< h2 > or vice versa< h2 >
46
- < p > Use latest desktop google chrome, turn your webcam and speaker on </ br > and turn down your speaker's volume into adequate level.</ p >
46
+ < p > Need camera permission to run this. Turn your webcam and speaker on </ br > and turn down your speaker's volume into adequate level.</ p >
47
47
</ div >
48
48
49
49
Original file line number Diff line number Diff line change @@ -211,6 +211,11 @@ function loadSounds() {
211
211
//S(c); // oscillator type
212
212
//alert("Turn your volume down to the minimum value first because this theremin will produce sound at maximum level at the first time it is started");
213
213
oscillator . start ( 1 ) ;
214
+ if ( soundContext . state === 'running' ) {
215
+ muteButton . textContent = 'Mute' ;
216
+ } else if ( soundContext . state === 'suspended' ) {
217
+ muteButton . textContent = 'Unmute' ;
218
+ }
214
219
}
215
220
216
221
function playSound ( e ) {
You can’t perform that action at this time.
0 commit comments