diff options
author | ache <ache@ache.one> | 2022-05-04 21:41:50 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2022-05-04 21:41:50 +0200 |
commit | eb6db0c02ef341e6a352cf0c6e4f08a413eba6f3 (patch) | |
tree | 4a8198c7e3eba7c543e0fdb7986bd38991bf858c /src/js/sidenotes.js | |
parent | Support for favicon (diff) |
w3c check
Diffstat (limited to 'src/js/sidenotes.js')
-rw-r--r-- | src/js/sidenotes.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/sidenotes.js b/src/js/sidenotes.js index db2781f..eb09d56 100644 --- a/src/js/sidenotes.js +++ b/src/js/sidenotes.js @@ -24,7 +24,7 @@ const resize = () => { } const articleRef = sidenote.attributes.for.value; - const article = document.querySelector(`#${CSS.escape(articleRef)}`); + const article = document.querySelector(`#${CSS.escape(articleRef)}_article`); const notes = Array.from(article.querySelectorAll('li')) .filter(element => element.id.startsWith('user-content-fn')); const newSidenotes = notes.map(sidenoteLi => { |