Spaces:
Sleeping
Sleeping
Commit
·
278d123
1
Parent(s):
957ec1f
Update static/js/app.js
Browse files- static/js/app.js +3 -4
static/js/app.js
CHANGED
@@ -112,7 +112,6 @@ function stopRecording() {
|
|
112 |
|
113 |
//create the wav blob and pass it on to createDownloadLink
|
114 |
rec.exportWAV(createDownloadLink);
|
115 |
-
upload_function();
|
116 |
}
|
117 |
// Exportar los datos de audio como un Blob una vez que la grabaci n haya finalizado
|
118 |
//rec.exportWAV(function (blob) {
|
@@ -154,8 +153,7 @@ function stopRecording() {
|
|
154 |
upload.href = "#";
|
155 |
upload.innerHTML = "Upload";
|
156 |
//upload.addEventListener("click", function (event) {
|
157 |
-
|
158 |
-
function upload_function(){
|
159 |
//var xhr = new XMLHttpRequest();
|
160 |
xhr.onload = function (e) {
|
161 |
if (this.readyState === 4) {
|
@@ -189,7 +187,7 @@ function stopRecording() {
|
|
189 |
}
|
190 |
};
|
191 |
//xhr.send(formData);
|
192 |
-
|
193 |
//////////////////////////////////////////
|
194 |
|
195 |
|
@@ -219,6 +217,7 @@ function stopRecording() {
|
|
219 |
//add the li element to the ol
|
220 |
recordingsList.appendChild(li);
|
221 |
//});
|
|
|
222 |
|
223 |
|
224 |
|
|
|
112 |
|
113 |
//create the wav blob and pass it on to createDownloadLink
|
114 |
rec.exportWAV(createDownloadLink);
|
|
|
115 |
}
|
116 |
// Exportar los datos de audio como un Blob una vez que la grabaci n haya finalizado
|
117 |
//rec.exportWAV(function (blob) {
|
|
|
153 |
upload.href = "#";
|
154 |
upload.innerHTML = "Upload";
|
155 |
//upload.addEventListener("click", function (event) {
|
156 |
+
|
|
|
157 |
//var xhr = new XMLHttpRequest();
|
158 |
xhr.onload = function (e) {
|
159 |
if (this.readyState === 4) {
|
|
|
187 |
}
|
188 |
};
|
189 |
//xhr.send(formData);
|
190 |
+
|
191 |
//////////////////////////////////////////
|
192 |
|
193 |
|
|
|
217 |
//add the li element to the ol
|
218 |
recordingsList.appendChild(li);
|
219 |
//});
|
220 |
+
}
|
221 |
|
222 |
|
223 |
|