Commit 64f58656 authored by 임지연's avatar 임지연

[임지연/이모션]플로팅 버튼 기능수정 js 2022.05.19

parent 31681235
...@@ -1106,7 +1106,7 @@ ...@@ -1106,7 +1106,7 @@
<span class="ico-counsel-toggle">상담메뉴 접기/펴기 토글</span> <span class="ico-counsel-toggle">상담메뉴 접기/펴기 토글</span>
</button> </button>
<a href="#top" class="btn-top"><span class="ico-top">맨위로</span></a> <a href="#top" class="btn-top" style="display: none;"><span class="ico-top">맨위로</span></a>
</div> </div>
<div class="sticky-shortcut-dimmed" style="display: none;"></div> <div class="sticky-shortcut-dimmed" style="display: none;"></div>
<!-- //sticky 빠른메뉴 --> <!-- //sticky 빠른메뉴 -->
...@@ -1180,13 +1180,25 @@ ...@@ -1180,13 +1180,25 @@
} }
}) })
// 2022.05.19 플로팅베너 기존 소스 // [D] 2022.05.19
$('.btn-counsel-toggle').on('click', function () { function _mainStickyBar(){
$('.sticky-shortcut').toggleClass('active'); // 2022.05.19 new (위로 버튼 노출)
$('body').toggleClass('js-noscroll'); $(window).on("scroll", function(){
$('.sticky-shortcut-dimmed').toggle(); var scroll = this.scrollY;
}); if(scroll > 100) {
$('.btn-top').show();
} else {
$('.btn-top').hide();
}
});
// 2022.05.19 플로팅베너 기존 소스
$('.btn-counsel-toggle').on('click', function () {
$('.sticky-shortcut').toggleClass('active');
$('body').toggleClass('js-noscroll');
$('.sticky-shortcut-dimmed').toggle();
});
} _mainStickyBar()
</script> </script>
</body> </body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment