update blog.js

remove HEADERFIX for headerDummyLink
This commit is contained in:
Dillon
2020-02-11 15:22:22 +08:00
committed by GitHub
parent 440051ec80
commit f87a8de858

View File

@@ -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');