georad commited on
Commit
90109fd
·
verified ·
1 Parent(s): aaebd17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -61,16 +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
- //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)
 
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)