Spaces:
Runtime error
Runtime error
Commit
·
00c8f90
1
Parent(s):
6ebc6d4
debug
Browse files- st_helpers.py +5 -6
st_helpers.py
CHANGED
@@ -14,15 +14,14 @@ with open("static/meta.html", 'r', encoding='utf-8') as f:
|
|
14 |
|
15 |
|
16 |
def make_header():
|
17 |
-
st.markdown('''<script>
|
18 |
-
var docs = document.getElementsByClassName("main");
|
19 |
-
for (var i = 0; i < docs.length; i++)
|
20 |
-
docs[i].style.overflow = "scroll";
|
21 |
-
alert("123");
|
22 |
-
</script>''', unsafe_allow_html=True)
|
23 |
components.html(f"<style>{header_style_css}</style>{header_html}<script>{header_animate_js}</script>", height=260)
|
24 |
st.markdown(meta_html, unsafe_allow_html=True)
|
25 |
st.markdown(f"<style>{content_style_css}</style>", unsafe_allow_html=True) # apply css to the rest of the document
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
|
28 |
def content_title(title: str, vspace_before: int = 0, vspace_after: int = 0):
|
|
|
14 |
|
15 |
|
16 |
def make_header():
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
components.html(f"<style>{header_style_css}</style>{header_html}<script>{header_animate_js}</script>", height=260)
|
18 |
st.markdown(meta_html, unsafe_allow_html=True)
|
19 |
st.markdown(f"<style>{content_style_css}</style>", unsafe_allow_html=True) # apply css to the rest of the document
|
20 |
+
st.markdown('''123123123 <script>
|
21 |
+
console.log("123");
|
22 |
+
var app = document.getElementsByClassName("stApp")[0];
|
23 |
+
app.style.height = "99999px";
|
24 |
+
</script>''', unsafe_allow_html=True)
|
25 |
|
26 |
|
27 |
def content_title(title: str, vspace_before: int = 0, vspace_after: int = 0):
|