diff options
Diffstat (limited to 'src/scroll.js')
| -rw-r--r-- | src/scroll.js | 2 |
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); |
