summaryrefslogtreecommitdiff
path: root/src/scroll.js
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-09-04 09:05:24 +0200
committercashmere <cashmere@autistici.org>2026-09-04 09:05:24 +0200
commit4f49b16079b27d7ce633619e4cddfdf2bffbc952 (patch)
treec296c1e7f3c3e2f6859c6d3a1b1b208779b89679 /src/scroll.js
downloadrelic-4f49b16079b27d7ce633619e4cddfdf2bffbc952.tar.gz
initial commitHEADmaster
Diffstat (limited to 'src/scroll.js')
-rw-r--r--src/scroll.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scroll.js b/src/scroll.js
new file mode 100644
index 0000000..567b1f2
--- /dev/null
+++ b/src/scroll.js
@@ -0,0 +1,2 @@
+/* Cause the page to scroll so that the #scrollToMe is visible */
+(document.getElementById('scrollToMe')||document.body).scrollIntoView(true);