summaryrefslogtreecommitdiff
path: root/includes/rail.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/rail.inc')
-rw-r--r--includes/rail.inc9
1 files changed, 0 insertions, 9 deletions
diff --git a/includes/rail.inc b/includes/rail.inc
index b2ed467..e78815e 100644
--- a/includes/rail.inc
+++ b/includes/rail.inc
@@ -164,13 +164,4 @@
document.getElementById("rail").onmouseleave = () => {
document.getElementById("rail-text").style.opacity = "0";
}
-
- window.onscroll = () => {
- let scroll = document.getElementsByTagName("html")[0].scrollTop;
- let pos = 60 - scroll;
-
- if (pos <= 0) pos = 0;
- document.getElementById("rail").style.top = pos + "px";
- document.getElementById("rail-text").style.top = pos + "px";
- }
</script> \ No newline at end of file