Spaces:
Sleeping
Sleeping
Update app2.py
Browse files
app2.py
CHANGED
|
@@ -170,7 +170,7 @@ const scrollInterval = setInterval(function() {
|
|
| 170 |
}, 15);
|
| 171 |
"""
|
| 172 |
|
| 173 |
-
back_to_top_button.
|
| 174 |
|
| 175 |
# Add the "Back to Top" button to the sidebar of the template
|
| 176 |
template.sidebar.append(back_to_top_button)
|
|
|
|
| 170 |
}, 15);
|
| 171 |
"""
|
| 172 |
|
| 173 |
+
back_to_top_button.js_on_click(CustomJS(code=js_code))
|
| 174 |
|
| 175 |
# Add the "Back to Top" button to the sidebar of the template
|
| 176 |
template.sidebar.append(back_to_top_button)
|