[#9] Update table of contents function
This commit is contained in:
parent
ef08ba9d6d
commit
9e2a1518cf
1 changed files with 1 additions and 7 deletions
|
@ -130,13 +130,7 @@
|
||||||
|
|
||||||
// table of contents
|
// table of contents
|
||||||
$('h3, h4, h5', '.content').each(function () {
|
$('h3, h4, h5', '.content').each(function () {
|
||||||
$(this).append('<a class="title-link" href="#' + $(this).attr('id') + '"> #</a>');
|
$(this).append('<a class="title-link" href="#' + $(this).attr('id') + '">#</a>');
|
||||||
|
|
||||||
$(this).hover(function(){
|
|
||||||
$(this).find('a').addClass('active');
|
|
||||||
}, function(){
|
|
||||||
$(this).find('a').removeClass('active');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue