georad commited on
Commit
aaebd17
·
verified ·
1 Parent(s): 259f9c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -12
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
- scroll_script = """
66
- <script>
67
- document.addEventListener('DOMContentLoaded', function() {
68
- const bottomElement = window.parent.document.getElementById('bottom');
69
- if (bottomElement) {
70
- bottomElement.scrollIntoView({ behavior: 'smooth', block: 'end' });
71
- }
72
- });
73
- </script>
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)