diff options
Diffstat (limited to 'static/js/docport.js')
-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);
|