speaker-calibration 2.2.3 → 2.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/example/i18n.js +223 -164
- package/dist/example/listener.html +1 -0
- package/dist/example/listener.js +5 -0
- package/dist/example/styles.css +6 -0
- package/dist/main.js +13 -2
- package/package.json +1 -1
- package/src/peer-connection/speaker.js +38 -0
- package/src/tasks/combination/combination.js +7 -2
package/dist/example/listener.js
CHANGED
|
@@ -15,12 +15,15 @@ const recordingInProgress = phrases.RC_soundRecording['en-US'];
|
|
|
15
15
|
const backToExperimentWindow = phrases.RC_backToExperimentWindow['en-US'];
|
|
16
16
|
const allowMicrophone = phrases.RC_allowMicrophoneUse['en-US'];
|
|
17
17
|
const placeSmartphoneMicrophone = phrases.RC_placeSmartphoneMicrophone['en-US'];
|
|
18
|
+
const turnMeToReadBelow = phrases.RC_turnMeToReadBelow['en-US'];
|
|
18
19
|
const recordingInProgressElement = document.getElementById('recordingInProgress');
|
|
19
20
|
const allowMicrophoneElement = document.getElementById('allowMicrophone');
|
|
21
|
+
const turnMessageElement = document.getElementById('turnMeToReadBelow');
|
|
20
22
|
|
|
21
23
|
switch (isSmartPhone) {
|
|
22
24
|
case 'true':
|
|
23
25
|
allowMicrophoneElement.innerHTML = placeSmartphoneMicrophone;
|
|
26
|
+
turnMessageElement.innerHTML = turnMeToReadBelow;
|
|
24
27
|
// show the html upsidedown
|
|
25
28
|
const phrasesContainer = document.getElementById('phrases');
|
|
26
29
|
// add class
|
|
@@ -34,6 +37,8 @@ switch (isSmartPhone) {
|
|
|
34
37
|
calibrationBeginButton.addEventListener('click', () => {
|
|
35
38
|
// remove the button
|
|
36
39
|
calibrationBeginButton.remove();
|
|
40
|
+
// remove turn message
|
|
41
|
+
turnMessageElement.remove();
|
|
37
42
|
// set the text of the html elements
|
|
38
43
|
recordingInProgressElement.innerHTML = recordingInProgress;
|
|
39
44
|
allowMicrophoneElement.innerHTML = allowMicrophone;
|