Skip to content

Commit

Permalink
Check for <section> element
Browse files Browse the repository at this point in the history
... in addition to class="section".
  • Loading branch information
mgeier committed May 26, 2021
1 parent 62d3e81 commit b0faed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/insipid_sphinx_theme/insipid/static/insipid.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ $(document).ready(function () {
}

var div_body = document.querySelector('div.body');
var first_section = document.querySelector('div.body .section');
var first_section = document.querySelector('div.body .section, div.body section');
if (first_section) {
$(document).on('scroll', function () {
if (window.pageYOffset >= div_body.offsetTop + first_section.offsetTop) {
Expand Down

0 comments on commit b0faed8

Please sign in to comment.