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.
@@ -44,6 +44,7 @@
44
44
  <div id="display"></div>
45
45
  </div>
46
46
  </div>
47
+ <p id="turnMeToReadBelow"></p>
47
48
  </div>
48
49
  <script type="module" src="../example/listener.js"></script>
49
50
  <script type="text/javascript"></script>
@@ -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;
@@ -55,3 +55,9 @@ hr {
55
55
  overflow-y: scroll;
56
56
  overflow-x: hidden;
57
57
  }
58
+
59
+ #turnMeToReadBelow {
60
+ position: absolute;
61
+ top: 20px;
62
+ font-size: larger;
63
+ }