From 92d5b11ad9781c08c65ac386a93582705def6d24 Mon Sep 17 00:00:00 2001 From: "K.Mitsuhiro" <47512020+MITSUHIRO-KURIKI@users.noreply.github.com> Date: Mon, 8 Jul 2024 06:11:50 +0900 Subject: [PATCH] Update navbar.js --- static/templates/common/func/navbar/navbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/templates/common/func/navbar/navbar.js b/static/templates/common/func/navbar/navbar.js index 1ecc08e..690b045 100644 --- a/static/templates/common/func/navbar/navbar.js +++ b/static/templates/common/func/navbar/navbar.js @@ -1,6 +1,6 @@ var navber_transition = 300, startPos = 0, - navber_height_rem = 3, + navber_height_rem = getComputedStyle(document.documentElement).getPropertyValue('--navber-height').replace('rem', ''), in_page_anker_transition_speed = 0; // rem → px 変換 @@ -101,4 +101,4 @@ $(function() { $(document).on('scroll', function() { NavberHide(), CloseToggleNav(); -}); \ No newline at end of file +});