|
|
@@ -313,13 +313,11 @@ $(document).ready(function () {
|
|
|
$("header").css('display', 'none');
|
|
|
$("header").css('position', 'fixed');
|
|
|
$(".tabbar").removeClass("fixed");
|
|
|
- $(".product_floormenu").removeClass("fixed");
|
|
|
//스크롤 내릴때
|
|
|
} else {
|
|
|
$("header").css('display', 'block');
|
|
|
$("header").css('position', 'fixed');
|
|
|
$(".tabbar").addClass("fixed");
|
|
|
- $(".product_floormenu").addClass("fixed");
|
|
|
}
|
|
|
lastScrollTop = commonSt;
|
|
|
//경우2 : htopMian + gnb
|
|
|
@@ -334,7 +332,6 @@ $(document).ready(function () {
|
|
|
$("#gnb").css('position', 'fixed');
|
|
|
$("#gnb").css('top', '0');
|
|
|
$(".tabbar").removeClass("fixed");
|
|
|
- $(".product_floormenu").removeClass("fixed");
|
|
|
$("section.content, section.main, .bnrtype_banner").addClass('scr');
|
|
|
//스크롤 내릴때
|
|
|
} else {
|
|
|
@@ -344,7 +341,6 @@ $(document).ready(function () {
|
|
|
$("#gnb").css('position', 'fixed');
|
|
|
$("#gnb").css('top', '55px');
|
|
|
$(".tabbar").addClass("fixed");
|
|
|
- $(".product_floormenu").addClass("fixed");
|
|
|
$("section.content, section.main, .bnrtype_banner").removeClass('scr');
|
|
|
}
|
|
|
if(commonSt < 170){
|
|
|
@@ -354,7 +350,6 @@ $(document).ready(function () {
|
|
|
$("#gnb").css('position', 'fixed');
|
|
|
$("#gnb").css('top', '55px');
|
|
|
$(".tabbar").addClass("fixed");
|
|
|
- $(".product_floormenu").addClass("fixed");
|
|
|
$("section.content, section.main, .bnrtype_banner").removeClass('scr');
|
|
|
}
|
|
|
lastScrollTop = commonSt;
|
|
|
@@ -366,11 +361,9 @@ $(document).ready(function () {
|
|
|
//스크롤 올릴때
|
|
|
if (commonSt > lastScrollTop) {
|
|
|
$(".tabbar").removeClass("fixed");
|
|
|
- $(".product_floormenu").removeClass("fixed");
|
|
|
//스크롤 내릴때
|
|
|
} else {
|
|
|
$(".tabbar").addClass("fixed");
|
|
|
- $(".product_floormenu").addClass("fixed");
|
|
|
}
|
|
|
if(commonSt < 10){
|
|
|
$(".tabbar").addClass("fixed");
|
|
|
@@ -671,6 +664,8 @@ $(document).ready(function () {
|
|
|
e.stopPropagation();
|
|
|
});
|
|
|
|
|
|
+ // =============구매하기팝업========================================================
|
|
|
+
|
|
|
// pop open
|
|
|
function popOpenScroll(){
|
|
|
$('html, body').css({'overflow': 'hidden', 'height': '100%'});
|
|
|
@@ -686,12 +681,6 @@ $(document).ready(function () {
|
|
|
$('#element').off('scroll touchmove mousewheel'); // 터치무브, 휠 스크롤 가능
|
|
|
return false;
|
|
|
}
|
|
|
- // pop close
|
|
|
- function popClsScroll2(){
|
|
|
- $('html, body').css({'overflow': 'auto', 'height': '100%'}); //n 해제
|
|
|
- $('#element').off('scroll touchmove mousewheel'); // 터치무브, 휠 스크롤 가능
|
|
|
- return false;
|
|
|
- }
|
|
|
|
|
|
// popup (media)
|
|
|
$(".btn_popOpen").on("click", function(e) {
|
|
|
@@ -761,21 +750,34 @@ $(document).ready(function () {
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
- // btPopAuto
|
|
|
- $('.btPopClose').click(function(){
|
|
|
- popClsScroll2();
|
|
|
+ // 쇼핑백팝업
|
|
|
+ $("#btn_shoppingBag_pop").click(function() {
|
|
|
+ popClsScroll();
|
|
|
$('.container').removeClass('btPop_open');
|
|
|
autome.style.top = 100 + "%";
|
|
|
+ $("html, body").animate({"scrollTop": 0}, 0);
|
|
|
+ $("#shoppingBagModal").fadeIn();
|
|
|
+ setTimeout(function(){
|
|
|
+ $("#shoppingBagModal").fadeOut(500);
|
|
|
+ },2000);
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
+ // btPopAuto
|
|
|
+ //$('.btPopClose').click(function(){
|
|
|
+ // popClsScroll2();
|
|
|
+ // $('.container').removeClass('btPop_open');
|
|
|
+ // autome.style.top = 100 + "%";
|
|
|
+ // return false;
|
|
|
+ //});
|
|
|
+
|
|
|
let autome = document.querySelector('.btPopAuto');
|
|
|
- let headsize = this.querySelector('.btPopAuto .btPopAuto_head');
|
|
|
- let bodysize = this.querySelector('.btPopAuto .btPopAuto_body');
|
|
|
+ //let headsize = this.querySelector('.btPopAuto .btPopAuto_head');
|
|
|
+ //let bodysize = this.querySelector('.btPopAuto .btPopAuto_body');
|
|
|
//console.log('★ btPop_auto헤더 높이 : ' + headsize.offsetHeight);
|
|
|
//console.log('★ btPop_auto바디 높이 : ' + bodysize.clientHeight);
|
|
|
|
|
|
- let autotop = appHeight - (headsize.offsetHeight + bodysize.offsetHeight);
|
|
|
+ //let autotop = appHeight - (headsize.offsetHeight + bodysize.offsetHeight);
|
|
|
//console.log('★ btPopAuto전체 높이 - 컨텐츠 높이 : ' + autotop);
|
|
|
//console.log('★ btPopAuto전체 높이 - 컨텐츠 높이 /10 : ' + autotop /10);
|
|
|
|
|
|
@@ -906,18 +908,7 @@ $( document ).ready( function() {
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
- // 쇼핑백팝업
|
|
|
- $("#btn_shoppingBag_pop").click(function() {
|
|
|
- popClsScroll2();
|
|
|
- $('.container').removeClass('btPop_open');
|
|
|
- autome.style.top = 100 + "%";
|
|
|
- $("html, body").animate({"scrollTop": 0}, 0);
|
|
|
- $("#shoppingBagModal").fadeIn();
|
|
|
- setTimeout(function(){
|
|
|
- $("#shoppingBagModal").fadeOut(500);
|
|
|
- },2000);
|
|
|
- return false;
|
|
|
- });
|
|
|
+
|
|
|
|
|
|
//210510_삭제
|
|
|
// $(document).on('click','.popup_box .button_list button',function(){
|
|
|
@@ -935,5 +926,10 @@ $( document ).ready( function() {
|
|
|
// $("header").css('position', 'fixed');
|
|
|
// }
|
|
|
//});
|
|
|
+
|
|
|
+ //210604_하단 고정버튼 있을 시 tabbar 제거
|
|
|
+ if($('div').hasClass('product_floormenu') || $('div').hasClass('cs_contactUs_my_footer') || $('div').hasClass('od_calc_wrap')){
|
|
|
+ $('.tabbar').css('display', 'none');
|
|
|
+ }
|
|
|
|
|
|
});
|