mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 10:56:16 +01:00
update blog.js
remove HEADERFIX for headerDummyLink
This commit is contained in:
parent
440051ec80
commit
f87a8de858
1 changed files with 1 additions and 2 deletions
|
@ -158,7 +158,6 @@ jQuery(function($) {
|
|||
};
|
||||
changeTocState();
|
||||
|
||||
const HEADERFIX = 120;
|
||||
const $toclink = $('.toc-link');
|
||||
const $headerDummyLink = $('.post-dummy-target');
|
||||
const $tocLinkLis = $('.post-toc-content li');
|
||||
|
@ -174,7 +173,7 @@ jQuery(function($) {
|
|||
return array.length - 1;
|
||||
};
|
||||
|
||||
const activeTocIndex = searchActiveTocIndex(headerlinkTop, scrollTop + HEADERFIX);
|
||||
const activeTocIndex = searchActiveTocIndex(headerlinkTop, scrollTop);
|
||||
|
||||
$($toclink).removeClass('active');
|
||||
$($tocLinkLis).removeClass('has-active');
|
||||
|
|
Loading…
Reference in a new issue