Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def search_fn(query):
|
|
15 |
out = (re.split(":(?=http)",link["href"].replace("/url?q=","").split("&sa",1)[0]))
|
16 |
out = out[0]
|
17 |
|
18 |
-
frame_l=f'<div class="container"><iframe class="responsive-iframe" src="{out}" frameborder="0" width="100%" height="2000"></iframe></div>'
|
19 |
|
20 |
file.writelines(frame_l)
|
21 |
|
@@ -37,15 +37,15 @@ def test(inp):
|
|
37 |
with open("myfile.txt", "r") as file1:
|
38 |
html_out = file1.read()
|
39 |
style = '''
|
40 |
-
.container {
|
41 |
position: relative;
|
42 |
overflow: hidden;
|
43 |
-
width:
|
44 |
padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
|
45 |
}
|
46 |
|
47 |
/* Then style the iframe to fit in the container div with full height and width */
|
48 |
-
.responsive-iframe {
|
49 |
position: absolute;
|
50 |
top: 0;
|
51 |
left: 0;
|
|
|
15 |
out = (re.split(":(?=http)",link["href"].replace("/url?q=","").split("&sa",1)[0]))
|
16 |
out = out[0]
|
17 |
|
18 |
+
frame_l=f'<div class="container-mee"><iframe class="responsive-iframe-mee" src="{out}" frameborder="0" width="100%" height="2000"></iframe></div>'
|
19 |
|
20 |
file.writelines(frame_l)
|
21 |
|
|
|
37 |
with open("myfile.txt", "r") as file1:
|
38 |
html_out = file1.read()
|
39 |
style = '''
|
40 |
+
.container-mee {
|
41 |
position: relative;
|
42 |
overflow: hidden;
|
43 |
+
width: 30%;
|
44 |
padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
|
45 |
}
|
46 |
|
47 |
/* Then style the iframe to fit in the container div with full height and width */
|
48 |
+
.responsive-iframe-mee {
|
49 |
position: absolute;
|
50 |
top: 0;
|
51 |
left: 0;
|