summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSarah White <sarah@opendevise.com>2018-02-04 22:39:20 +0000
committerSarah White <sarah@opendevise.com>2018-02-04 22:39:20 +0000
commit3b2ecf1dddcb7e7201f544db625d6ecf6cddcebd (patch)
treef9b9f1f04e75935f67399fd5b8efb8542480b8c5 /src
parentdddda05c7286487d988bc51d76c714e42761c3cd (diff)
parentb4f0a63f43452e93d9dac120fd1559d0e91fd9d6 (diff)
downloadalpine-antora-theme-3b2ecf1dddcb7e7201f544db625d6ecf6cddcebd.tar.bz2
alpine-antora-theme-3b2ecf1dddcb7e7201f544db625d6ecf6cddcebd.tar.xz
merge !20
resolves #34 look for in-page links anywhere in page
Diffstat (limited to 'src')
-rw-r--r--src/js/02-fragment-jumper.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/02-fragment-jumper.js b/src/js/02-fragment-jumper.js
index f680f75..e324227 100644
--- a/src/js/02-fragment-jumper.js
+++ b/src/js/02-fragment-jumper.js
@@ -28,7 +28,7 @@
window.removeEventListener('load', jumpOnLoad)
})
- Array.prototype.slice.call(document.querySelectorAll('.doc a[href^="#"]')).forEach(function (el) {
+ Array.prototype.slice.call(document.querySelectorAll('a[href^="#"]')).forEach(function (el) {
var hash, target
if ((hash = el.hash.slice(1)) && (target = document.getElementById(hash))) {
el.addEventListener('click', jumpToAnchor.bind(target))