Update index.js

Verified solution and opening PR on behalf of @neclepsio

Co-Authored-By: neclepsio <178987+neclepsio@users.noreply.github.com>
This commit is contained in:
Zdenek K 2023-04-04 22:13:57 +02:00
parent 1978e67256
commit 4bbbd9b81d

View file

@ -73,7 +73,7 @@ var $sitehead = $("#site-head");
$post.each(function () { $post.each(function () {
if (($(window).height() + w) > ($(document).height() - $(".site-footer").height())) { if (($(window).height() + w) > ($(document).height() - $(".site-footer").height())) {
var l = $postholder.length; var l = $postholder.length;
$(".fn-item[item_index='" + (l - 1) + "']").removeClass("active") $(".fn-item").removeClass("active")
$(".fn-item[item_index='" + (l) + "']").addClass("active") $(".fn-item[item_index='" + (l) + "']").addClass("active")
} else { } else {
var f = $(this).offset().top; var f = $(this).offset().top;