[#9] Update table of contents function
This commit is contained in:
parent
ef08ba9d6d
commit
9e2a1518cf
1 changed files with 1 additions and 7 deletions
|
@ -131,12 +131,6 @@
|
||||||
// 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