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

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorvjeantet <valere.jeantet@gmail.com>2020-11-06 01:30:56 +0300
committervjeantet <valere.jeantet@gmail.com>2020-11-06 01:30:56 +0300
commitb43c043a7b9153e5cf6a1a30b057d143b1cedc52 (patch)
tree468fe0ce643f24e92c0ed06e6dc587eb52a62c13 /static
parent4b0cf57d5be417ddb3167d0bd0b4c09a35c1e62b (diff)
fix some cssHEADmaster
Diffstat (limited to 'static')
-rw-r--r--static/js/docport.js6
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);