Adjust margin when activating sections (#19)

pull/23/head
Sergio Delgado Quintero 2021-03-19 02:36:09 +07:00 committed by GitHub
parent 12321ef691
commit 38143eda32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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