diff options
author | Adam Chlipala <adam@chlipala.net> | 2020-01-15 12:12:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-15 12:12:32 -0500 |
commit | 026883de8a8c80a1dc5fa3e51a95e951db4b2b6a (patch) | |
tree | cf4b600a783fb5bc87f83b98ffaed589aecae145 /lib/js | |
parent | 5cce43a484bdde0053820b8ae408bcba830b25ba (diff) | |
parent | eb86dffeeec897d17905f3adff84e6acfd018330 (diff) |
Merge pull request #136 from dredozubov/anchor-links
Same page link anchors
Diffstat (limited to 'lib/js')
-rw-r--r-- | lib/js/urweb.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js index 59e5ad2c..cb582788 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -3385,5 +3385,9 @@ function giveFocus(id) { er("Tried to give focus to ID not used in document: " + id); } +function anchorUrl(id) { + return "#" + id; +} + // App-specific code |