Spaces:
Sleeping
Sleeping
Commit
·
7365b98
1
Parent(s):
663bcc7
Update static/js/app.js
Browse files- static/js/app.js +15 -15
static/js/app.js
CHANGED
@@ -123,21 +123,6 @@ var intervalId = setInterval(function () {
|
|
123 |
stopRecording();
|
124 |
}, intervaloTiempo)
|
125 |
|
126 |
-
function getCookie(cookieName) {
|
127 |
-
const name = cookieName + '=';
|
128 |
-
const decodedCookie = decodeURIComponent(document.cookie);
|
129 |
-
const cookieArray = decodedCookie.split(';');
|
130 |
-
|
131 |
-
for (let i = 0; i < cookieArray.length, i++) {
|
132 |
-
let cookie = cooieArray[i].trim();
|
133 |
-
if (cookie.indexOf(name) === 0) {
|
134 |
-
return cookie.substring(name.length, cookie.length);
|
135 |
-
}
|
136 |
-
}
|
137 |
-
|
138 |
-
return null;
|
139 |
-
}
|
140 |
-
|
141 |
function createDownloadLink(blob) {
|
142 |
|
143 |
var url = URL.createObjectURL(blob);
|
@@ -252,4 +237,19 @@ function createDownloadLink(blob) {
|
|
252 |
|
253 |
//add the li element to the ol
|
254 |
recordingsList.appendChild(li);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
}
|
|
|
123 |
stopRecording();
|
124 |
}, intervaloTiempo)
|
125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
function createDownloadLink(blob) {
|
127 |
|
128 |
var url = URL.createObjectURL(blob);
|
|
|
237 |
|
238 |
//add the li element to the ol
|
239 |
recordingsList.appendChild(li);
|
240 |
+
}
|
241 |
+
|
242 |
+
function getCookie(cookieName) {
|
243 |
+
const name = cookieName + '=';
|
244 |
+
const decodedCookie = decodeURIComponent(document.cookie);
|
245 |
+
const cookieArray = decodedCookie.split(';');
|
246 |
+
|
247 |
+
for (let i = 0; i < cookieArray.length, i++) {
|
248 |
+
let cookie = cooieArray[i].trim();
|
249 |
+
if (cookie.indexOf(name) === 0) {
|
250 |
+
return cookie.substring(name.length, cookie.length);
|
251 |
+
}
|
252 |
+
}
|
253 |
+
|
254 |
+
return null;
|
255 |
}
|