diff options
author | vjeantet <valere.jeantet@gmail.com> | 2020-11-06 01:30:56 +0300 |
---|---|---|
committer | vjeantet <valere.jeantet@gmail.com> | 2020-11-06 01:30:56 +0300 |
commit | b43c043a7b9153e5cf6a1a30b057d143b1cedc52 (patch) | |
tree | 468fe0ce643f24e92c0ed06e6dc587eb52a62c13 /static | |
parent | 4b0cf57d5be417ddb3167d0bd0b4c09a35c1e62b (diff) |
Diffstat (limited to 'static')
-rw-r--r-- | static/js/docport.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/static/js/docport.js b/static/js/docport.js index 50afce0..d328e85 100644 --- a/static/js/docport.js +++ b/static/js/docport.js @@ -8,7 +8,7 @@ jQuery(document).ready(function() { });
// Execute actions on images generated from Markdown pages
-
+
var images = $("article section.page img");
// Change styles, depending on parameters set to the image
images.each(function (index) {
@@ -101,9 +101,9 @@ jQuery(document).ready(function() { if (currNavActive) {
activeNavFound = true;
- headings[i].classList.add('active');
+ headings[i].parentElement.classList.add('active');
} else {
- headings[i].classList.remove('active');
+ headings[i].parentElement.classList.remove('active');
}
}
}, 100);
|