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

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

parent 31681235
......@@ -1106,7 +1106,7 @@
<span class="ico-counsel-toggle">상담메뉴 접기/펴기 토글</span>
</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 class="sticky-shortcut-dimmed" style="display: none;"></div>
<!-- //sticky 빠른메뉴 -->
......@@ -1180,12 +1180,24 @@
}
})
// [D] 2022.05.19
function _mainStickyBar(){
// 2022.05.19 new (위로 버튼 노출)
$(window).on("scroll", function(){
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>
</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