Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
chore: add another scoller
Browse files
app.py
CHANGED
@@ -528,10 +528,18 @@ CSS = """
|
|
528 |
/* #them {text-align: center} */
|
529 |
"""
|
530 |
|
531 |
-
|
|
|
|
|
532 |
<button id="toTopBtn" onclick="'parentIFrame' in window ? window.parentIFrame.scrollTo({top: 0, behavior:'smooth'}) : window.scrollTo({ top: 0 })">
|
533 |
<a style="color:white; text-decoration:none;">Back to Top!</a>
|
534 |
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
535 |
"""
|
536 |
|
537 |
if __name__ == "__main__":
|
|
|
528 |
/* #them {text-align: center} */
|
529 |
"""
|
530 |
|
531 |
+
|
532 |
+
"""
|
533 |
+
|
534 |
<button id="toTopBtn" onclick="'parentIFrame' in window ? window.parentIFrame.scrollTo({top: 0, behavior:'smooth'}) : window.scrollTo({ top: 0 })">
|
535 |
<a style="color:white; text-decoration:none;">Back to Top!</a>
|
536 |
</button>
|
537 |
+
|
538 |
+
"""
|
539 |
+
back_to_top_btn_html = """
|
540 |
+
<button id="toTopBtn" onclick="window.parent.postMessage('scrollToTop', '*')">
|
541 |
+
<a style="color:white; text-decoration:none;">Back to Top!</a>
|
542 |
+
</button>
|
543 |
"""
|
544 |
|
545 |
if __name__ == "__main__":
|