kcelia commited on
Commit
a241f12
1 Parent(s): 684e76f

chore: remove scrolling code in version 6

Browse files
Files changed (1) hide show
  1. app.py +0 -28
app.py CHANGED
@@ -506,34 +506,6 @@ CSS = """
506
  """
507
 
508
 
509
- """
510
-
511
- <button id="toTopBtn" onclick="'parentIFrame' in window ? window.parentIFrame.scrollTo({top: 0, behavior:'smooth'}) : window.scrollTo({ top: 0 })">
512
- <a style="color:white; text-decoration:none;">Back to Top!</a>
513
- </button>
514
-
515
- """
516
- back_to_top_btn_html = """
517
-
518
- <button onclick="scrollToTop()" style="color:white; text-decoration:none;">
519
- Back to Top!
520
- </button>
521
-
522
- <script>
523
- function scrollToTop() {
524
- // Check if the parentIFrame exists and use it for scrolling if available
525
- if ('parentIFrame' in window) {
526
- window.parentIFrame.scrollTo({top: 0, behavior: 'smooth'});
527
- } else {
528
- // Use the standard scrollIntoView method for scrolling
529
- document.documentElement.scrollIntoView({behavior: 'smooth'});
530
- }
531
- }
532
- </script>
533
-
534
-
535
- """
536
-
537
  if __name__ == "__main__":
538
 
539
  print("Starting demo ...")
 
506
  """
507
 
508
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
509
  if __name__ == "__main__":
510
 
511
  print("Starting demo ...")