We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm not sure what's going on but the last item in my TOC keeps being set as the active one when I scroll to the top of the page. Any thoughts?
The text was updated successfully, but these errors were encountered:
with following hackings, I managed to let it working, at least it seems to work on my github.io I'm not quite familiar with jQuery though.
for (var i = 0, c = headingOffsets.length; i < c; i++) { if (headingOffsets[i] >= top) { $('li', self).removeClass(activeClassName); <<<< highlighted = $('li:eq('+(i-1)+')', self).addClass(activeClassName); ==== highlighted = $('li:eq('+((i-1)<0?0:i-1)+')', self).addClass(activeClassName); >>>> opts.onHighlight(highlighted); break; } } <<<< ==== // added by scinart. if (i == headingOffsets.length) { $('li', self).removeClass(activeClassName); highlighted = $('li:eq('+(i-1)+')', self).addClass(activeClassName); opts.onHighlight(highlighted); } >>>>
Sorry, something went wrong.
No branches or pull requests
I'm not sure what's going on but the last item in my TOC keeps being set as the active one when I scroll to the top of the page. Any thoughts?
The text was updated successfully, but these errors were encountered: