Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,9 +55,9 @@ function run(inn,url_in) {
|
|
| 55 |
console.log(inn);
|
| 56 |
console.log(url);
|
| 57 |
|
| 58 |
-
var frame_on = document.getElementById(
|
| 59 |
frame_on.style.display = 'block';
|
| 60 |
-
var framediv = document.getElementById(
|
| 61 |
let child0 = framediv.lastElementChild;
|
| 62 |
while (child0) {
|
| 63 |
framediv.removeChild(child0);
|
|
@@ -68,11 +68,13 @@ function run(inn,url_in) {
|
|
| 68 |
iframediv.height = '1000px';
|
| 69 |
framediv.appendChild(iframediv);
|
| 70 |
}
|
|
|
|
|
|
|
| 71 |
function closefn(inn) {
|
| 72 |
console.log(inn);
|
| 73 |
-
var frame_off = document.getElementById(
|
| 74 |
-
var aud = document.getElementById(
|
| 75 |
-
var framedivdocument.getElementById(
|
| 76 |
frame_off.style.display = 'none';
|
| 77 |
let child1 = aud.lastElementChild;
|
| 78 |
while (child1) {
|
|
@@ -83,11 +85,13 @@ function closefn(inn) {
|
|
| 83 |
framediv.removeChild(child2);
|
| 84 |
}
|
| 85 |
}
|
|
|
|
|
|
|
| 86 |
function readfn(inn,url_in) {
|
| 87 |
let url = String(url_in);
|
| 88 |
console.log(inn);
|
| 89 |
console.log(url);
|
| 90 |
-
var readit = document.getElementById(
|
| 91 |
let api = 'https://broadfield-fast-voice.hf.space/?pdfurl=' + url;
|
| 92 |
console.log(api);
|
| 93 |
let child = readit.lastElementChild;
|
|
|
|
| 55 |
console.log(inn);
|
| 56 |
console.log(url);
|
| 57 |
|
| 58 |
+
var frame_on = document.getElementById('frame' + String(inn));
|
| 59 |
frame_on.style.display = 'block';
|
| 60 |
+
var framediv = document.getElementById('framediv' + String(inn));
|
| 61 |
let child0 = framediv.lastElementChild;
|
| 62 |
while (child0) {
|
| 63 |
framediv.removeChild(child0);
|
|
|
|
| 68 |
iframediv.height = '1000px';
|
| 69 |
framediv.appendChild(iframediv);
|
| 70 |
}
|
| 71 |
+
</script>
|
| 72 |
+
<script>
|
| 73 |
function closefn(inn) {
|
| 74 |
console.log(inn);
|
| 75 |
+
var frame_off = document.getElementById('frame' + String(inn));
|
| 76 |
+
var aud = document.getElementById('aud' + String(inn));
|
| 77 |
+
var framedivdocument.getElementById('framediv' + String(inn));
|
| 78 |
frame_off.style.display = 'none';
|
| 79 |
let child1 = aud.lastElementChild;
|
| 80 |
while (child1) {
|
|
|
|
| 85 |
framediv.removeChild(child2);
|
| 86 |
}
|
| 87 |
}
|
| 88 |
+
</script>
|
| 89 |
+
<script>
|
| 90 |
function readfn(inn,url_in) {
|
| 91 |
let url = String(url_in);
|
| 92 |
console.log(inn);
|
| 93 |
console.log(url);
|
| 94 |
+
var readit = document.getElementById('aud' + String(inn));
|
| 95 |
let api = 'https://broadfield-fast-voice.hf.space/?pdfurl=' + url;
|
| 96 |
console.log(api);
|
| 97 |
let child = readit.lastElementChild;
|