kcelia commited on
Commit
a548688
·
unverified ·
1 Parent(s): 5b74e8c

chore: another attemp

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -538,15 +538,17 @@ CSS = """
538
  """
539
  back_to_top_btn_html = '''
540
 
541
- <a href="#top" style="color:white; text-decoration:none;">
542
- <button style="display: block; background-color: transparent; border: none; padding: 0; cursor: pointer;">
543
- Back to Top!
544
- </button>
545
- </a>
546
 
547
- <!-- Place this element at the top of your page -->
548
- <div id="top"></div>
 
549
 
 
 
 
 
550
 
551
  '''
552
 
 
538
  """
539
  back_to_top_btn_html = '''
540
 
541
+ <script>
542
+ const element = document.getElementById("content");
 
 
 
543
 
544
+ function scrollToTop() {
545
+ element.scrollIntoView(true);
546
+ }
547
 
548
+ function scrollToBottom() {
549
+ element.scrollIntoView(false);
550
+ }
551
+ </script>
552
 
553
  '''
554