Skip to content

Commit

Permalink
#92 Add first header to scroll spy
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdi-robbani committed Feb 7, 2024
1 parent cb46646 commit 1b1430d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 129 deletions.
128 changes: 0 additions & 128 deletions _layouts/default_bkp.html

This file was deleted.

2 changes: 1 addition & 1 deletion assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function ChangeSelect(TxtBox) {
}
function GenerateScrollSpy() {
$('h1, h2').each(function (index, element) {
if (index > 1) {
if (index > 0) {
$('#TableOfContents').children().eq(0).append('<li><a href="#'+ $(element).attr('id') +'">' + $(element).text() + '</a></li>');
}
});
Expand Down

0 comments on commit 1b1430d

Please sign in to comment.