Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,8 @@ style="""
|
|
20 |
|
21 |
head = """
|
22 |
<script>
|
23 |
-
function run(
|
24 |
-
console.log(
|
25 |
}
|
26 |
</script>
|
27 |
"""
|
@@ -32,7 +32,7 @@ def search(q,rn):
|
|
32 |
html=""
|
33 |
for i,c in enumerate(cont):
|
34 |
pdflink=c['id'].replace('/abs/','/pdf/')
|
35 |
-
html+=f"<div class='card_div' id='id{i}' onclick=run(
|
36 |
html+=f"<div class='title_div'>{c['title']}</div>"
|
37 |
html+=f"<div style='color:white;'>{c['summary']}</div>"
|
38 |
html+=f"<div><a href='{pdflink}' target='_blank'>{pdflink}</a></div>"
|
|
|
20 |
|
21 |
head = """
|
22 |
<script>
|
23 |
+
function run(inn) {
|
24 |
+
console.log(inn);
|
25 |
}
|
26 |
</script>
|
27 |
"""
|
|
|
32 |
html=""
|
33 |
for i,c in enumerate(cont):
|
34 |
pdflink=c['id'].replace('/abs/','/pdf/')
|
35 |
+
html+=f"<div class='card_div' id='id{i}' onclick=run({cont[i]})>"
|
36 |
html+=f"<div class='title_div'>{c['title']}</div>"
|
37 |
html+=f"<div style='color:white;'>{c['summary']}</div>"
|
38 |
html+=f"<div><a href='{pdflink}' target='_blank'>{pdflink}</a></div>"
|