deploy: 12321ef691
This commit is contained in:
parent
1fd6c2f5fd
commit
dbf5798d6c
40
js/index.js
40
js/index.js
|
@ -81,24 +81,30 @@ var $sitehead = $("#site-head");
|
||||||
}
|
}
|
||||||
|
|
||||||
$post.each(function () {
|
$post.each(function () {
|
||||||
var f = $(this).offset().top;
|
if (($(window).height() + w) > ($(document).height() - $(".site-footer").height())) {
|
||||||
var b = $(this).offset().top + $(this).height();
|
var l = $postholder.length;
|
||||||
var t = $(this).parent(".post-holder").index();
|
$(".fn-item[item_index='" + (l - 1) + "']").removeClass("active")
|
||||||
var i = $(".fn-item[item_index='" + t + "']");
|
$(".fn-item[item_index='" + (l) + "']").addClass("active")
|
||||||
var a = $(this)
|
|
||||||
.parent(".post-holder")
|
|
||||||
.prev(".post-holder")
|
|
||||||
.find(".post-after");
|
|
||||||
|
|
||||||
$(this).attr("item_index", t);
|
|
||||||
|
|
||||||
if (w >= f && w <= b) {
|
|
||||||
i.addClass("active");
|
|
||||||
a.fadeOut("slow");
|
|
||||||
} else {
|
} else {
|
||||||
i.removeClass("active");
|
var f = $(this).offset().top;
|
||||||
a.fadeIn("slow");
|
var b = $(this).offset().top + $(this).height();
|
||||||
}
|
var t = $(this).parent(".post-holder").index();
|
||||||
|
var i = $(".fn-item[item_index='" + t + "']");
|
||||||
|
var a = $(this)
|
||||||
|
.parent(".post-holder")
|
||||||
|
.prev(".post-holder")
|
||||||
|
.find(".post-after");
|
||||||
|
|
||||||
|
$(this).attr("item_index", t);
|
||||||
|
|
||||||
|
if (w >= f && w <= b) {
|
||||||
|
i.addClass("active");
|
||||||
|
a.fadeOut("slow");
|
||||||
|
} else {
|
||||||
|
i.removeClass("active");
|
||||||
|
a.fadeIn("slow");
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
It carries a lot more detail than what I put on the homepage - I swear!
|
It carries a lot more detail than what I put on the homepage - I swear!
|
||||||
You want to know what I can do for you?
|
You want to know what I can do for you?
|
||||||
Well, let me tell ya!
|
Well, let me tell ya!
|
||||||
Nutrition Coaching This is not an easy task. You will likely have to pay money for this. You know what - let us look at a nice picture first."><meta property="og:type" content="article"><meta property="og:url" content="https://janraasch.github.io/hugo-scroll/services/"><meta property="og:image" content="https://janraasch.github.io/hugo-scroll/images/cover-image.jpg"><meta property="og:site_name" content="Jane Doe - Nutrition Coach & Chef Consultant"><meta name=twitter:card content="summary_large_image"><meta name=twitter:image content="https://janraasch.github.io/hugo-scroll/images/cover-image.jpg"><meta name=twitter:title content="Services"><meta name=twitter:description content="This is a page about the services, which I offer.
|
Nutrition Coaching This is not an easy task. You will likely have to pay money for this. You know what - let us look at a nice picture first."><meta property="og:type" content="article"><meta property="og:url" content="https://janraasch.github.io/hugo-scroll/services/"><meta property="og:image" content="https://janraasch.github.io/hugo-scroll/images/cover-image.jpg"><meta property="article:section" content><meta property="og:site_name" content="Jane Doe - Nutrition Coach & Chef Consultant"><meta name=twitter:card content="summary_large_image"><meta name=twitter:image content="https://janraasch.github.io/hugo-scroll/images/cover-image.jpg"><meta name=twitter:title content="Services"><meta name=twitter:description content="This is a page about the services, which I offer.
|
||||||
It carries a lot more detail than what I put on the homepage - I swear!
|
It carries a lot more detail than what I put on the homepage - I swear!
|
||||||
You want to know what I can do for you?
|
You want to know what I can do for you?
|
||||||
Well, let me tell ya!
|
Well, let me tell ya!
|
||||||
|
|
Loading…
Reference in a new issue