speaker-calibration 2.2.218 → 2.2.220
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 +1704 -1495
- package/dist/example/styles.css +75 -22
- package/dist/listener.js +954 -2423
- package/dist/main.js +4 -15
- package/package.json +1 -1
- package/src/listener-app/listener.js +282 -91
- package/src/main.js +1 -2
- package/src/peer-connection/audioPeer.js +4 -39
- package/src/peer-connection/listener.js +123 -25
- package/src/peer-connection/speaker.js +98 -55
- package/src/tasks/combination/combination.js +7 -0
package/dist/example/styles.css
CHANGED
|
@@ -41,37 +41,46 @@ hr {
|
|
|
41
41
|
|
|
42
42
|
.phrases {
|
|
43
43
|
transform: rotate(180deg);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
z-index: 1000;
|
|
44
|
+
width: 100%;
|
|
45
|
+
text-align: left;
|
|
46
|
+
position: fixed;
|
|
47
|
+
bottom: 20px; /* Will appear at top after rotation */
|
|
48
|
+
left: 20px;
|
|
49
|
+
padding: 20px;
|
|
51
50
|
}
|
|
52
51
|
|
|
53
|
-
.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
bottom:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
52
|
+
.phrases h1 {
|
|
53
|
+
margin: 0;
|
|
54
|
+
font-size: 24px;
|
|
55
|
+
margin-bottom: 15px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.phrases .lead {
|
|
59
|
+
margin-bottom: 10px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.phrases #calibrationBeginButton {
|
|
63
|
+
margin-top: 20px;
|
|
64
|
+
margin-left: 0;
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
.turnMeToReadBelow {
|
|
64
|
-
position:
|
|
68
|
+
position: fixed;
|
|
65
69
|
top: 20px;
|
|
66
|
-
|
|
67
|
-
/* max-height: 25vh; */
|
|
68
|
-
overflow-y: scroll;
|
|
70
|
+
left: 20px;
|
|
69
71
|
line-height: 1.2rem;
|
|
72
|
+
text-align: left;
|
|
70
73
|
}
|
|
71
74
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
.updateDisplay {
|
|
76
|
+
position: absolute;
|
|
77
|
+
top: 50%;
|
|
78
|
+
left: 50%;
|
|
79
|
+
transform: translate(-50%, -50%) rotate(180deg);
|
|
80
|
+
width: 100%;
|
|
81
|
+
text-align: center;
|
|
82
|
+
background: white;
|
|
83
|
+
-webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
|
|
75
84
|
}
|
|
76
85
|
|
|
77
86
|
.container {
|
|
@@ -97,3 +106,47 @@ hr {
|
|
|
97
106
|
margin-top: 10px;
|
|
98
107
|
margin-bottom: 10px;
|
|
99
108
|
}
|
|
109
|
+
|
|
110
|
+
#headerContainer {
|
|
111
|
+
border-top: 1px solid #eee;
|
|
112
|
+
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Ensure content doesn't get hidden under fixed elements */
|
|
116
|
+
#display {
|
|
117
|
+
width: 100%;
|
|
118
|
+
margin: 0 auto;
|
|
119
|
+
text-align: center;
|
|
120
|
+
padding-bottom: 20px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@media (max-width: 768px) {
|
|
124
|
+
#listenerContainer {
|
|
125
|
+
padding: 0;
|
|
126
|
+
position: relative;
|
|
127
|
+
height: 100vh;
|
|
128
|
+
overflow: hidden;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
#headerContainer h1 {
|
|
132
|
+
font-size: 20px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
#recordingInProgress {
|
|
136
|
+
font-size: 16px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.phrases {
|
|
140
|
+
margin-bottom: 1rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
#recordingInProgress {
|
|
144
|
+
margin: 0;
|
|
145
|
+
padding: 0.5rem;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
#allowMicrophone {
|
|
149
|
+
margin: 0;
|
|
150
|
+
padding: 0.5rem;
|
|
151
|
+
}
|
|
152
|
+
}
|