summaryrefslogtreecommitdiff
path: root/src/scroll.js
diff options
context:
space:
mode:
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);