chore: another attemp
Browse files
app.py
CHANGED
@@ -538,15 +538,17 @@ CSS = """
|
|
538 |
"""
|
539 |
back_to_top_btn_html = '''
|
540 |
|
541 |
-
<
|
542 |
-
|
543 |
-
Back to Top!
|
544 |
-
</button>
|
545 |
-
</a>
|
546 |
|
547 |
-
|
548 |
-
|
|
|
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 |
|