update blog.js
remove HEADERFIX for headerDummyLink
This commit is contained in:
@@ -158,7 +158,6 @@ jQuery(function($) {
|
|||||||
};
|
};
|
||||||
changeTocState();
|
changeTocState();
|
||||||
|
|
||||||
const HEADERFIX = 120;
|
|
||||||
const $toclink = $('.toc-link');
|
const $toclink = $('.toc-link');
|
||||||
const $headerDummyLink = $('.post-dummy-target');
|
const $headerDummyLink = $('.post-dummy-target');
|
||||||
const $tocLinkLis = $('.post-toc-content li');
|
const $tocLinkLis = $('.post-toc-content li');
|
||||||
@@ -174,7 +173,7 @@ jQuery(function($) {
|
|||||||
return array.length - 1;
|
return array.length - 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
const activeTocIndex = searchActiveTocIndex(headerlinkTop, scrollTop + HEADERFIX);
|
const activeTocIndex = searchActiveTocIndex(headerlinkTop, scrollTop);
|
||||||
|
|
||||||
$($toclink).removeClass('active');
|
$($toclink).removeClass('active');
|
||||||
$($tocLinkLis).removeClass('has-active');
|
$($tocLinkLis).removeClass('has-active');
|
||||||
|
|||||||
Reference in New Issue
Block a user