Update app.py
Browse files
app.py
CHANGED
|
@@ -61,18 +61,16 @@ pg.run()
|
|
| 61 |
# st.markdown('<div id="bottom"></div>', unsafe_allow_html=True)
|
| 62 |
|
| 63 |
# JavaScript to scroll the dummy element into view
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
"""
|
| 75 |
-
*/
|
| 76 |
|
| 77 |
# Inject the script
|
| 78 |
components.html(scroll_script, height=0, width=0)
|
|
|
|
| 61 |
# st.markdown('<div id="bottom"></div>', unsafe_allow_html=True)
|
| 62 |
|
| 63 |
# JavaScript to scroll the dummy element into view
|
| 64 |
+
//scroll_script = """
|
| 65 |
+
//<script>
|
| 66 |
+
// document.addEventListener('DOMContentLoaded', function() {
|
| 67 |
+
// const bottomElement = window.parent.document.getElementById('bottom');
|
| 68 |
+
// if (bottomElement) {
|
| 69 |
+
// bottomElement.scrollIntoView({ behavior: 'smooth', block: 'end' });
|
| 70 |
+
// }
|
| 71 |
+
// });
|
| 72 |
+
//</script>
|
| 73 |
+
//"""
|
|
|
|
|
|
|
| 74 |
|
| 75 |
# Inject the script
|
| 76 |
components.html(scroll_script, height=0, width=0)
|