diff options
author | janraasch <janraasch@users.noreply.github.com> | 2021-03-19 05:36:29 +0300 |
---|---|---|
committer | janraasch <janraasch@users.noreply.github.com> | 2021-03-19 05:36:29 +0300 |
commit | 841ee6ab36ac9f72b3fc57fb8776c166baaedabd (patch) | |
tree | e0217b74877a54f5af32898e17a5bfe985455afa | |
parent | dbf5798d6c7186eda19eedfe24694d2af08e1518 (diff) |
deploy: 38143eda3233eb6755ca0a7df8642c1b78c81973
-rw-r--r-- | js/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/index.js b/js/index.js index fe53c5d..24c34c5 100644 --- a/js/index.js +++ b/js/index.js @@ -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"); |