Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/capnfabs/paperesque.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Tamp <fabian.tamp@gmail.com>2020-08-19 00:19:11 +0300
committerFabian Tamp <fabian.tamp@gmail.com>2020-08-19 00:19:11 +0300
commit3c53727a4d375e8e7e68eb9de76a8904e6a90660 (patch)
tree2ce3c9d4c686b679d32685f99b337f5bedc76478
parent8511f007d8dcd6c28eac7d43342fe39aa3c95b65 (diff)
Fix JS
-rw-r--r--assets/js/anchorizeHeadings.js2
-rw-r--r--assets/js/floatingFootnotes.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/anchorizeHeadings.js b/assets/js/anchorizeHeadings.js
index cd3b8b6..a539f63 100644
--- a/assets/js/anchorizeHeadings.js
+++ b/assets/js/anchorizeHeadings.js
@@ -16,7 +16,7 @@ function anchorizeHeadings() {
// messed something up if this is the case, but I don't have enough
// confidence in the way I've set everything up to _not_ do this safety
// check.
- const articles = document.querySelectorAll('section#main article');
+ const articles = document.querySelectorAll('article#main');
if (articles.length != 1) {
return;
}
diff --git a/assets/js/floatingFootnotes.js b/assets/js/floatingFootnotes.js
index dcd8fe1..25ffb18 100644
--- a/assets/js/floatingFootnotes.js
+++ b/assets/js/floatingFootnotes.js
@@ -1,7 +1,7 @@
import { docReady, onWindowResize } from "./utils.js";
import { ResizeObserver } from '@juggle/resize-observer';
-const ARTICLE_CONTENT_SELECTOR = "section#main";
+const ARTICLE_CONTENT_SELECTOR = "article#main";
const FOOTNOTE_SECTION_SELECTOR = "section.footnotes[role=doc-endnotes]";
const FLOATING_FOOTNOTE_MIN_WIDTH = 1260;