Spaces:
Sleeping
Sleeping
Update html_helper.py
Browse files- html_helper.py +13 -1
html_helper.py
CHANGED
@@ -112,4 +112,16 @@ def create_html_youtube_player(youtube_url):
|
|
112 |
</div>
|
113 |
"""
|
114 |
return html
|
115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
</div>
|
113 |
"""
|
114 |
return html
|
115 |
+
|
116 |
+
|
117 |
+
def create_html_oauth():
|
118 |
+
html = f"""
|
119 |
+
<div style="display: flex; justify-content: center; align-items: center; position: relative; width: 100%; height: 100%;">
|
120 |
+
<style>
|
121 |
+
.responsive-iframe {{ width: 560px; height: 315px; transform-origin: top left; transition: width 0.3s ease, height 0.3s ease; }}
|
122 |
+
@media (max-width: 560px) {{ .responsive-iframe {{ width: 100%; height: 100%; }} }}
|
123 |
+
</style>
|
124 |
+
<iframe class="responsive-iframe" src="{https://www.google.com/device}" title="YouTube oauth" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
125 |
+
</div>
|
126 |
+
"""
|
127 |
+
return html
|