kcelia commited on
Commit
5b74e8c
1 Parent(s): 2771500

chore: another attemp

Browse files
Files changed (1) hide show
  1. app.py +9 -18
app.py CHANGED
@@ -538,24 +538,15 @@ CSS = """
538
  """
539
  back_to_top_btn_html = '''
540
 
541
- <button onclick="scrollToTop()">Scroll to Top</button>
542
- <button onclick="scrollToBottom()">Scroll to Bottom</button>
543
-
544
- <div id="content">
545
- <!-- Content goes here -->
546
- </div>
547
-
548
- <script>
549
- function scrollToTop() {
550
- const element = document.getElementById("content");
551
- element.scrollIntoView(true);
552
- }
553
-
554
- function scrollToBottom() {
555
- const element = document.getElementById("content");
556
- element.scrollIntoView(false);
557
- }
558
- </script>
559
 
560
  '''
561
 
 
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