Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,9 +60,9 @@ function readfn(inn,url) {
|
|
| 60 |
console.log(inn);
|
| 61 |
console.log(url);
|
| 62 |
var readit = document.getElementById("aud" + String(inn));
|
| 63 |
-
let url_in = 'https://broadfield-fast-voice.hf.space/?pdfurl=UUU'
|
| 64 |
-
let api = url_in.replace('UUU',url)
|
| 65 |
-
console.log(api)
|
| 66 |
const iframe = document.createElement('iframe');
|
| 67 |
|
| 68 |
iframe.src = api;
|
|
@@ -86,7 +86,7 @@ def search(q,rn,st):
|
|
| 86 |
<div><a href='{pdflink}' target='_blank'>{pdflink}</a></div>
|
| 87 |
</div>
|
| 88 |
<div id=frame{i} class='frame_class'>
|
| 89 |
-
<div id=read{i} class='read_btn' onclick=
|
| 90 |
<div id=close{i} class='x_btn' onclick='closefn({i})'>X</div>
|
| 91 |
<div id=aud{i}></div>
|
| 92 |
<iframe src="https://docs.google.com/viewer?url={c['id'].replace('/abs/','/pdf/')}&embedded=true" frameborder="0" height="1200px" width="100%"></iframe></div>"""
|
|
|
|
| 60 |
console.log(inn);
|
| 61 |
console.log(url);
|
| 62 |
var readit = document.getElementById("aud" + String(inn));
|
| 63 |
+
let url_in = 'https://broadfield-fast-voice.hf.space/?pdfurl=UUU';
|
| 64 |
+
let api = url_in.replace('UUU',url);
|
| 65 |
+
console.log(api);
|
| 66 |
const iframe = document.createElement('iframe');
|
| 67 |
|
| 68 |
iframe.src = api;
|
|
|
|
| 86 |
<div><a href='{pdflink}' target='_blank'>{pdflink}</a></div>
|
| 87 |
</div>
|
| 88 |
<div id=frame{i} class='frame_class'>
|
| 89 |
+
<div id=read{i} class='read_btn' onclick="readfn({i},{c['id'].replace('/abs/','/pdf/')})">Read</div>
|
| 90 |
<div id=close{i} class='x_btn' onclick='closefn({i})'>X</div>
|
| 91 |
<div id=aud{i}></div>
|
| 92 |
<iframe src="https://docs.google.com/viewer?url={c['id'].replace('/abs/','/pdf/')}&embedded=true" frameborder="0" height="1200px" width="100%"></iframe></div>"""
|