diff --git a/layouts/schedule/list.html b/layouts/schedule/list.html
index d661e74..b332940 100644
--- a/layouts/schedule/list.html
+++ b/layouts/schedule/list.html
@@ -86,6 +86,10 @@
+
+
{{ end }}
@@ -107,5 +111,23 @@
}
window.addEventListener("load", checkLinks, false);
window.addEventListener("hashchange", checkLinks, false);
+document.addEventListener("DOMContentLoaded", () => {
+ const scrollToTopButton = document.getElementById("scrollToTop");
+
+ window.addEventListener("scroll", () => {
+ if (window.scrollY > 300) {
+ scrollToTopButton.style.display = "block";
+ } else {
+ scrollToTopButton.style.display = "none";
+ }
+ });
+
+ scrollToTopButton.addEventListener("click", () => {
+ window.scrollTo({
+ top: 0,
+ behavior: "smooth"
+ });
+ });
+ });
{{ end }}
\ No newline at end of file