Adjust margin when activating sections

This commit is contained in:
Sergio Delgado Quintero 2020-12-23 21:15:49 +00:00
parent 4d6f8a51e5
commit 6978f90fe1

View file

@ -74,7 +74,7 @@ var $sitehead = $("#site-head");
var g = $sitehead.offset().top;
var h = $sitehead.offset().top + $sitehead.height() - 100;
if (w >= g && w <= h) {
if (w >= Math.floor(g) && w <= Math.ceil(h)) {
$(".fixed-nav").fadeOut("fast");
} else if ($(window).width() > 500) {
$(".fixed-nav").fadeIn("fast");