var $winH = $(window).height();
// 팝업 높이가 mobile 높이 * 0.5 인 경우
if ($(".bankSetWrap").hasClass("popH01")) {
setTimeout(function(){
var bankSetPop = $(".bankSetWrap");
var bankSetTit = bankSetPop.find(".popInner h1").length > 0 ? bankSetPop.find(".popInner h1").outerHeight() : bankSetPop.find(".popInner h2").outerHeight();
var bankSetBtnAra = bankSetPop.find(".popBtnWrap .popBtn").length > 0 ? bankSetPop.find(".popBtnWrap").outerHeight() : 0;
var bankSetH = bankSetPop.find(".popCont").outerHeight();
//console.log(bankSetTit, bankSetBtnAra , bankSetH);
$(".bankSetWrap .popInner").animate({height:$winH/2}, 100);
$(".bankSetWrap .popCont").css({height:$winH/2 - bankSetBtnAra - bankSetTit});
},100);
}
// 팝업 높이가 mobile 높이 * 0.65 인 경우
if ($(".bankSetWrap").hasClass("popH02")) {
setTimeout(function(){
var bankSetPop = $(".bankSetWrap");
var bankSetTit = bankSetPop.find(".popInner h1").length > 0 ? bankSetPop.find(".popInner h1").outerHeight() : bankSetPop.find(".popInner h2").outerHeight();
var bankSetBtnAra = bankSetPop.find(".popBtnWrap .popBtn").length > 0 ? bankSetPop.find(".popBtnWrap").outerHeight() : 0;
var bankSetH = bankSetPop.find(".popCont").outerHeight();
//console.log(bankSetTit, bankSetBtnAra , bankSetH);
$(".bankSetWrap .popInner").animate({height:$winH*.65}, 100);
$(".bankSetWrap .popCont").css({height:$winH*.65 - bankSetBtnAra - bankSetTit});
},100);
}
}
/ center 팝업 /
popCenter = function(){
var $winH = $(window).height();
var maxH = ($winH 0.7);
var maxTotalH = maxH - 135;
scrollLock();
// 최대 높이 지정
var cTarget = $(".centerLayer .popInner");
cTarget.css({"max-height": maxH});
cTarget.find(".popCont").css("max-height", maxTotalH);
// center 팝업 열기
$(".centerLayer").show();
cTarget.css("bottom", Math.max(0, (($(window).height() - cTarget.outerHeight()) / 2)) + "px");
cTarget.css("left", Math.max(0, (($(window).width() - cTarget.outerWidth()) / 2)) + "px");
// 2018-10-31 [윤지현] 통합메인 정기공지팝업 높이관련 추가
var cTargetNoti = $(".popInner.popInnerNotice");
cTargetNoti.css("max-height",''); // 기존센터팝업 max-height 삭제
cTargetNoti.find(".popCont").css("max-height",''); // 기존센터팝업 popCont max-height 삭제
if (cTargetNoti.height() > $(window).height()0.8){
cTargetNoti.find('.oneImg > a> img').css({'height':$(window).height()*0.75, 'width':''}) //통이미지 사이즈에 따른 팝업높이 조절
}
cTargetNoti.css("bottom", Math.max(0, (($(window).height() - cTargetNoti.outerHeight()) / 2)) + "px");
cTargetNoti.css("left", Math.max(0, (($(window).width() - cTargetNoti.outerWidth()) / 2)) + "px");
// 2018-10-31 [윤지현] end
};
/ 작은 툴팁(기본) /
toolTip = function(toolTip) {
var thisScrollY = $(window).scrollTop();
if ($(toolTip).parent().parent().prop("tagName").toLowerCase() == "li") {
var toolTipPop = $(toolTip).closest("li").find(".popWrap");
var toolTipCont = toolTipPop.find(".popInner");
// 운세 스와이프 스크립트
function LuckyMenuSwipeController(){
var swiper = new Swiper('.luckyMenu',{
slidesPerView : 'auto',
freeMode : true
})
}
// 운세 꿈종류 선택 스와이프
function DreamMenuSwipeController(idx){
var dreamMenu = $(".dreamMenu").eq(idx);
var swiper = new Swiper(dreamMenu,{
slidesPerView : 'auto',
freeMode : true
})
}
// 운세 전체메뉴
luckyAllMenu = function() {
var menuH = $(window).height() * 0.6;
var chatWrapH = $(".chatWrapInner").height();
var menuAllH = menuH - chatWrapH;
scrollLock();
$(".luckyMenuSel").hide();
$(".luckyMenuAll").toggle();
if ($(".luckyMenuAll").css("display") == "block") {
$(".chatWrap").height(menuH);
$(".luckyMenuAll").height(menuAllH);
} else {
$(".chatWrap").height("");
$(".luckyMenuAll").height("");
}
}
// 팝업 탭 Strong 태그 추가 함수
function TabTitleAdd(index){
$(".tabStrong").remove();
var TabTxt= $(".tabLv0").find("a > span").eq(index+1).html();
var $Strong = $(""+TabTxt+" 탭 화면"+"");
$(".tabLv0").after($Strong);
}
// 전체메뉴 안드로이드 전용 예외처리
var androidMenu = function(obj) {
if (obj.hasClass("androidOnlyMenu") || obj.hasClass("")) {
obj.find("a").removeClass("active");
return true;
}
else {
obj.find("a").addClass("active");
var menu = obj.attr("class");
$(".menuDepth02 > div").hide();
$("." + menu).show();
return false;
}
};
//계좌개설 팝업
function openAccPop() {
var scrollPosY = ($("body").css("top"));
var thisPosY = $(window).scrollTop();
if($(".noLogin").hasClass("open")){
$(".footer .accDim").hide();
$(".openAcc").hide();
scrollUnlock(scrollPosY);
$(".noLogin").removeClass("open");
}else{
scrollPosY = thisPosY;
$(".footer .accDim").show();
$(".openAcc").show();
scrollLock(thisPosY);
$(".noLogin").addClass("open");
}
$(function(){ txtChatBtnController(); // 상담톡 함수 호출 common_ui_swipe(); // 스와이프 함수 호출
$(document).ready(function(){ if(!$('.container').hasClass('dfs')){ // 2018-11-22 [오병직] 공통 : input 의 reset 버튼 관련하여 input type 세분화 //인풋에 벨류값이 있을때 리셋 버튼 block 처리 $("input").each(function(i){ if($(this).val().length > 0){ var inputAttr = $("input").attr('type'); if(inputAttr != "hidden"){ $("input").eq(i).nextAll(".btnReset").css("display","block"); } } }); // 2018-11-22 [오병직] end $('.useCer').find('a.link').attr({'role':'button','title':'자세히 보기'}); $(".mainAllMenu .more").attr({"role": "button","aria-expanded":"false"}); $(".mainAllMenu .dep1 > li > a").attr({"role":"button","aria-expanded":"false"});/2018-11-06 [양미선] 전체메뉴 > 메뉴모두보기 > title 두번 읽힘 삭제/ $('.myBtnOpen').attr({"role": "button","aria-expanded":"true"})/2018-11-09 [양미선] 마이페이지 최근 본 상품 열고 닫기 접근성 추가/ /2018-11-12 [양미선] 마이페이지 최근 본 상품 열고 닫기 접근성 추가/ if($('.myBtnOpen').hasClass('active')){ $('.myBtnOpen').attr({"aria-expanded":"false"}); } /2018-11-12 [양미선] end/
});
*/
$(window).scroll( function() { if ( $(this).scrollTop() > 50 ) { $scrollTop.css("display","inline-block"); $scrollTop.stop().animate({opacity:1}); } else { $scrollTop.stop().animate({opacity:0},{ duration: 300, specialEasing: { height: "linear", width: "easeOutBounce" }, complete: function() { $scrollTop.hide(); } },300); }
});
// 푸터영역 show hide $(window).scroll(function(event) { didScroll = true; });
// popup 기본 setting function PopSet() { var mobileH =$(window).height(); var slidePop = mobileH / 2; var bankSet = mobileH * 0.65; var btnArea = 110; var popTitH = 80; var slidePopBtn = slidePop + btnArea; var bankSetBtn = bankSet + btnArea; return { mobileH: mobileH, slidePop: slidePop, btnArea: btnArea, popTitH: popTitH, slidePopBtn: slidePopBtn, bankSet: bankSet, bankSetBtn: bankSetBtn }; }
/***/ / ### 슬라이드 형 / 1) select 형 = slidePopOption() / 2) confirm 형 = slidePopConfirm() / 3) 조회/이체 형 = bankSet() /* 4) center 형 = popCenter() /***/ / select 형 팝업 / slidePopOption = function() { var thisScrollY = $(window).scrollTop(); scrollLock(thisScrollY); $(".slidePopOption").show();
}
/ confirm 형 팝업 / slidePopConfirm = function() { scrollLock(); $(".slidePopConfirm").show(); setTimeout(function(){ var confirmPop = $(".slidePopConfirm"); var confirmTit = confirmPop.find(".popInner h1").length > 0 ? confirmPop.find(".popInner h1").outerHeight() : confirmPop.find(".popInner h2").outerHeight(); var confirmBtnAra = confirmPop.find(".popBtnWrap .popBtn").length > 0 ? confirmPop.find(".popBtnWrap").outerHeight() : 0; var confirmH = confirmPop.find(".popCont").outerHeight(); //console.log(confirmTit, confirmBtnAra , confirmH); $(".slidePopConfirm .popInner").animate({height:confirmH + confirmBtnAra + confirmTit}, 100); },100); }
/ 조회 및 이체용 팝업 / bankSet = function() { $(".bankSetWrap").show(); scrollLock();
}
/ center 팝업 / popCenter = function(){ var $winH = $(window).height(); var maxH = ($winH 0.7); var maxTotalH = maxH - 135; scrollLock(); // 최대 높이 지정 var cTarget = $(".centerLayer .popInner"); cTarget.css({"max-height": maxH}); cTarget.find(".popCont").css("max-height", maxTotalH); // center 팝업 열기 $(".centerLayer").show(); cTarget.css("bottom", Math.max(0, (($(window).height() - cTarget.outerHeight()) / 2)) + "px"); cTarget.css("left", Math.max(0, (($(window).width() - cTarget.outerWidth()) / 2)) + "px"); // 2018-10-31 [윤지현] 통합메인 정기공지팝업 높이관련 추가 var cTargetNoti = $(".popInner.popInnerNotice"); cTargetNoti.css("max-height",''); // 기존센터팝업 max-height 삭제 cTargetNoti.find(".popCont").css("max-height",''); // 기존센터팝업 popCont max-height 삭제 if (cTargetNoti.height() > $(window).height()0.8){ cTargetNoti.find('.oneImg > a> img').css({'height':$(window).height()*0.75, 'width':''}) //통이미지 사이즈에 따른 팝업높이 조절 } cTargetNoti.css("bottom", Math.max(0, (($(window).height() - cTargetNoti.outerHeight()) / 2)) + "px"); cTargetNoti.css("left", Math.max(0, (($(window).width() - cTargetNoti.outerWidth()) / 2)) + "px"); // 2018-10-31 [윤지현] end };
/ 작은 툴팁(기본) / toolTip = function(toolTip) { var thisScrollY = $(window).scrollTop(); if ($(toolTip).parent().parent().prop("tagName").toLowerCase() == "li") { var toolTipPop = $(toolTip).closest("li").find(".popWrap"); var toolTipCont = toolTipPop.find(".popInner");
};
/ Full layer(툴팁용 포함) / fullLayerPop = function(toolTip) { //scrollLock(); $(".fullLayerPop").show(); $(".toolTip").hide(); fullLayerHeight(); };
/ 부가메뉴 / appendMenu = function(moreBtn) { var appendM = $(moreBtn).parent().find(".appendMenu"); var appendMCont = appendM.find(".popInner"); var appendM_li = appendM.find("ul > li:first-child a"); $(".appendMenu").hide(); appendM.show(); appendM_li.attr("tabindex", 0).focus(); fullLayerHeight(); };
fullLayerHeight = function() { var $winH = $(window).height(); var fullTit = $(".fullLayerPop .popInner h1").length > 0 ? $(".fullLayerPop .popInner h1").outerHeight() : $(".fullLayerPop .popInner h2").outerHeight(); var fullBtnAra = $(".fullLayerPop .popBtnWrap .popBtn").length > 0 ? $(".fullLayerPop .popBtnWrap .popBtn").outerHeight() : 0; //console.log(fullTit, fullBtnAra , $winH); $(".fullLayerPop > .popInner > .popCont").css({height:$winH - fullTit - fullBtnAra}); };
/ close / popClose = function(e) { scrollPosY = ($("body").css("top")); var $popWrap = $(e).closest(".popWrap"); var $slidePopInner = $(".slidePopOption .popInner, .slidePopConfirm .popInner, .bankSetWrap .popInner"); var $slidePop = $(".slidePopOption, .slidePopConfirm, .bankSetWrap"); $(".dim").fadeOut(100); if ($popWrap.hasClass("slidePopOption") || $popWrap.hasClass("slidePopConfirm") || $popWrap.hasClass("bankSetWrap")) { $slidePopInner.animate({height:0}, 150, function(){ $slidePop.hide(); }); } else { $(e).closest(".popWrap").hide(); } scrollUnlock(scrollPosY); };
/ 화면 back scroll 고정/해제 / scrollLock = function(thisScrollY) { $(".dim").fadeIn(100); $("body").css({'overflow':'hidden', 'position':'fixed', 'width':'100%'}); $("body").css("top", -thisScrollY); };
// 툴팁용 scroll 고정 (화면이 최상단으로 스크롤됨을 방지하기 위함) scrollUnlock = function(scrollPosY) { $("body").css({'overflow':'', 'position':'', 'width':''}); scrollPosY = scrollPosY.replace('/[^0-9]/g',""); $(window).scrollTop(scrollPosY); };
// 큰글 거래내역조회 조회설정 상단 고정 function topViewFixed() { var wTop = $(window).scrollTop(); var vfbox = $('.bginnerColor').height(); var vfHeight = 300; var moveCheckbox = $('.checkViewDate'); if (vfbox <= wTop && wTop >= 300) { moveCheckbox.addClass('active'); } else { $('.checkViewDate').removeClass('active'); } }
//2018-10-18 [양미선] 수정 큰글이체 열림 ,닫힘 접근성 추가 $(document).off("click",".bigFontWrap .bigdealDate .btnwithdInfo").on("click",".bigFontWrap .bigdealDate .btnwithdInfo",function(){ var inputPanel = $(this).parent().next(); if (inputPanel.css('display') == 'none') { $(this).attr('aria-expanded','true').addClass('active'); inputPanel.slideDown('fast'); } else { inputPanel.slideUp('fast'); $(this).attr('aria-expanded','false').removeClass('active'); } });
/큰글이체 reset/ function inputFocus(t){ var btnInput = $(t).parent().find('a'); $(t).keyup(function(){ var thisV = $(t).val().length; if(thisV >= 1){ btnInput.addClass('active'); }else if(thisV == 0) { btnInput.removeClass('active'); } }); $('.btnReset').on('click',function(){ $(this).prev('input').val('').focus(); $(this).prev('input').trigger('change'); $(this).siblings().next().removeClass('active'); }); } // ============================================================== // // ========================== 상담톡 스크립트 ========================= // // ============================================================= // function HashSwipeController(){ var swiper = new Swiper('.chatMenu',{ slidesPerView : 'auto', freeMode : true, navigation : { nextEl : '.chatMenu .btn-transparent.swiper-button-next', prevEl : '.chatMenu .btn-transparent.swiper-button-prev' }, on : { init : function(){ $(".chatMenu > .swiper-slide").attr('aria-hidden',true).attr('tabindex', 0); $(".chatMenu > .swiper-slide.swiper-slide-active").attr('aria-hidden', false); }, slideChangeTransitionEnd:function(){ $(".chatMenu > li").attr('aria-hidden', true); $(".chatMenu > li.swiper-slide-active").attr('aria-hidden', false); } } }); }
function HashSwipeController2(){ var swiper = new Swiper('.tagMenu',{ slidesPerView : 'auto', freeMode : true, navigation : { nextEl : '.tagMenu .btn-transparent.swiper-button-next', prevEl : '.tagMenu .btn-transparent.swiper-button-prev' }, on : { init : function(){ $(".tagMenu > .swiper-slide").attr('aria-hidden',true).attr('tabindex', 0); $(".tagMenu > .swiper-slide.swiper-slide-active").attr('aria-hidden', false); }, slideChangeTransitionEnd:function(){ $(".tagMenu > li").attr('aria-hidden', true); $(".tagMenu > li.swiper-slide-active").attr('aria-hidden', false); } } }); }
function ChatSwiperController(oType, oSize){ if(oType == "1"){ // 상시 : PYM 조건 추가 HTML LOADING TIME 관련 처리 로직 추가 var cswiper = setInterval(function(){ if( $('.chatSwipeWrap.swiper-wrapper .swiper-slide').length == oSize ){ clearInterval(cswiper); var mySwiper = new Swiper('.chatSwipe' , { slidesPerView: 'auto', spaceBetween : 10, navigation : { nextEl : '.chatSwipe .btn-transparent.swiper-button-next', prevEl : '.chatSwipe .btn-transparent.swiper-button-prev' }, on : { init : function(){ $(".chatSwipe > .swiper-slide").attr('aria-hidden',true).attr('tabindex', 0); $(".chatSwipe > .swiper-slide.swiper-slide-active").attr('aria-hidden', false); }, slideChangeTransitionEnd:function(){ $(".chatSwipe > li").attr('aria-hidden', true); $(".chatSwipe > li.swiper-slide-active").attr('aria-hidden', false); } } }); } },100); }else{ var mySwiper = new Swiper('.chatSwipe' , { slidesPerView: 'auto', spaceBetween : 10, navigation : { nextEl : '.chatSwipe .btn-transparent.swiper-button-next', prevEl : '.chatSwipe .btn-transparent.swiper-button-prev' }, on : { init : function(){ $(".chatSwipe > .swiper-slide").attr('aria-hidden',true).attr('tabindex', 0); $(".chatSwipe > .swiper-slide.swiper-slide-active").attr('aria-hidden', false); }, slideChangeTransitionEnd:function(){ $(".chatSwipe > li").attr('aria-hidden', true); $(".chatSwipe > li.swiper-slide-active").attr('aria-hidden', false); } } }); }
}
// 인풋 텍스트 입력시 버튼 변경 function txtChatBtnController(){ var $txtChat = $(".txtChat"), $btnVoice = $(".btnVoice"), $btnSend = $(".btnSend"); $btnSend.hide(); $txtChat.find("input").focus(function(){ $btnVoice.hide(); $btnSend.show(); }); $txtChat.find("input").blur(function(){ if($txtChat.find("input").val().length <= 0){ $btnVoice.show(); $btnSend.hide(); }else{ $btnVoice.hide(); $btnSend.show(); } }); };
function btnChatVoice(chatContClass){ $(".voiceChat").show(); $(".voiceChat .voice01").slideDown(200); };
function chatVoiceClose(){ $(".voiceChat .voice01").slideUp(200, function() { $(".voiceChat").hide(); }); }
function chatHelp(target) { var $chatList = $(".chatHelpList li a"); $chatList.removeClass("active"); $(target).addClass("active").attr('aria-expanded','false');/2018-11-13 [양미선] 상담톡 아코디언 열기 닫기 접근성 추가 / if ($(target).next(".chatAnswer").css("display") == "block") { $(target).next(".chatAnswer").slideUp('fast'); $chatList.removeClass("active"); $(target).attr('title', '열림');/2019-08-06 [김신] 상담톡 아코디언 열기 닫기 접근성 추가 / } else { $(".chatHelpList .chatAnswer").slideUp('fast'); $(target).next(".chatAnswer").slideDown('fast'); $(target).attr('aria-expanded','true');/2018-11-13 [양미선] 상담톡 아코디언 열기 닫기 접근성 추가 / $(target).attr('title', '닫힘');/2019-08-06 [김신] 상담톡 아코디언 열기 닫기 접근성 추가 / } }
function scrollTopFunc(){ $( 'html, body' ).animate( { scrollTop : 0 }, 500 ); }
// 상단 탭 스와이프 함수 function common_ui_swipe(){ var $tabLv0 = $(".tabLv0"), tabLength = []; for(var j = 0; j < $tabLv0.length; j++){ tabLength[j] = $tabLv0.eq(j).find("ul li").length; if(tabLength[j] < 5){ $tabLv0.eq(j).find('.arrRgt').hide(); $tabLv0.eq(j).find('.arrLft').hide(); } if(tabLength[j] == 1) { $tabLv0.eq(j).find("ul li").css({'width':'100%'}); } else if(tabLength[j] == 2){ $tabLv0.eq(j).find("ul li").css({'width':'50%'}); } else if(tabLength[j] == 3){ $tabLv0.eq(j).find("ul li").css({'width':'33.33333333%'}); } else if(tabLength[j] == 4){ $tabLv0.eq(j).find("ul li").css({'width':'25%'}); } else if(tabLength[j] == 5){ $tabLv0.eq(j).find("ul li").css({'width':'20%'}); } else if(tabLength[j] > 4){ $tabLv0.eq(j).addClass("swiper-container"); $tabLv0.eq(j).find("ul li").css({'width':'33.33333333%'}); var sliders = []; $('.swiper-container').each(function(index, element){ $(this).addClass('s'+index); $(this).find('.arrRgt').addClass('r'+index); $(this).find('.arrLft').addClass('l'+index); var slider = new Swiper('.s'+index, { slidesPerView: 3, navigation: {nextEl: '.r'+index,prevEl: '.l'+index} }); sliders.push(slider); }); } } }
//토글(Show Hide) 클릭 이벤트 // 2018-10-19 [오병직] 계좌 직접입력(공통) 버튼(a 태그) 클래스 add,remove 기능 function ShowHideClick(name){ if($("."+name).css("display") == "none"){ $("."+name).slideDown('fast');/2018-11-08 [양미선] 공통: 계좌 직접입력 열림 닫힘 title 삭제/ $("."+name).prevAll(".selectArea").find("a:first-child + a").addClass("active").attr('aria-expanded','true');/2018-11-09 [양미선] 공통: 계좌 직접입력 입력 열림 닫힘 title 재수정/ }else{ $("."+name).slideUp('fast');/2018-11-08 [양미선] 공통: 계좌 직접입력 열림 닫힘 title 삭제/ $("."+name).prevAll(".selectArea").find("a:first-child + a").removeClass("active").attr('aria-expanded','false');/2018-11-09 [양미선] 공통: 계좌 직접입력 입력 열림 닫힘 title 재수정/ } } // 2018-10-19 [오병직] end
// 두개 클래스 교차 Show Hide 클릭 이벤트 function CrossShowHideClick(name1,name2){ $("."+name1).hide(); $("."+name2).show(); }
function PopCloseController(e){ $("."+e).hide(); }
function MyPopShowController(e){ $("."+e).show(); scrollLock(); }
function MyPopCloseController(e){ $("."+e).hide(); MyPopUnLock(); }
function MyPopUnLock(){ $("html, body").height("").css({"overflow":"", "position":""}); //2018-09-17[윤지현] 스크롤 position 추가 }
// 운세 결과 팝업 function PopShowController(e){ $("."+e).show(); var luckyPop = $(".luckyPop "), luckyPopWrap01 = $(".luckyPop01 .luckyPopWrap"), luckyPopWrap02 = $(".luckyPop02 .luckyPopWrap"), PopHeight01 = (luckyPopWrap01.find("ul").innerHeight()), PopHeight02 = (luckyPopWrap02.find("ul").innerHeight()), titleHeight = $(".luckyTitle").innerHeight(), luckyHeight; if(luckyPop.height()0.7 > luckyPopWrap01.height()+titleHeight){ luckyHeight = luckyPopWrap01.height()+titleHeight; }else{ luckyHeight = luckyPop.height()0.7; } luckyPopWrap01.css({ "max-height":luckyHeight, "margin-top":-luckyHeight/2, "margin-left":-(luckyPop.find("ul").width())/2 }); luckyPopWrap02.css({ "max-height":luckyPop.height()0.7, "margin-top":-(luckyPop.height()0.7)/2, "margin-left":-(luckyPop.find("ul").width())/2 }) luckyPopWrap01.find("ul").height(luckyPopWrap01.height()); }
// ============================================================== // // ========================== 운세 스크립트 ========================= // // ============================================================= //
// 운세 스와이프 스크립트 function LuckyMenuSwipeController(){ var swiper = new Swiper('.luckyMenu',{ slidesPerView : 'auto', freeMode : true }) }
// 운세 꿈종류 선택 스와이프 function DreamMenuSwipeController(idx){ var dreamMenu = $(".dreamMenu").eq(idx); var swiper = new Swiper(dreamMenu,{ slidesPerView : 'auto', freeMode : true }) }
// 운세 전체메뉴 luckyAllMenu = function() { var menuH = $(window).height() * 0.6; var chatWrapH = $(".chatWrapInner").height(); var menuAllH = menuH - chatWrapH; scrollLock(); $(".luckyMenuSel").hide(); $(".luckyMenuAll").toggle(); if ($(".luckyMenuAll").css("display") == "block") { $(".chatWrap").height(menuH); $(".luckyMenuAll").height(menuAllH); } else { $(".chatWrap").height(""); $(".luckyMenuAll").height(""); } }
// 처음으로/그만하기 baseMenu = function(target) { $(".baseMenu ul li a").removeClass("active"); target.addClass("active"); if (target.hasClass("start") || target.hasClass("end")) { $(".luckyStartEnd").show(); if (target.hasClass("start")) { $(".luckyStartEnd > div, .infoChangeWrap").hide(); $(".conText01").show(); } else { $(".luckyStartEnd > div, .infoChangeWrap").hide(); $(".conText02").show(); } } else { $(".luckyStartEnd").hide(); $(".infoChangeWrap").show(); } }
function nhKeyboardClick(){ $(".nhKeyboardLinkTitle ").focus(); $(".nhKeyboardLinkTitle").next(".toggleCont").slideDown(function(){ $(this).parents().closest(".toggleWrap").find(".toggleBtn").addClass("active"); $(this).parents().closest(".toggleWrap").find(".toggleBtn").addClass("less"); $(this).parents().closest(".toggleWrap").find(".toggleTxt").text("닫기"); $(this).parents().closest(".toggleWrap").find(".toggleBtn").attr('title','닫힘'); }); }
// 팝업 탭 Strong 태그 추가 함수 function TabTitleAdd(index){ $(".tabStrong").remove(); var TabTxt= $(".tabLv0").find("a > span").eq(index+1).html(); var $Strong = $(""+TabTxt+" 탭 화면"+""); $(".tabLv0").after($Strong); }
// 전체메뉴 안드로이드 전용 예외처리 var androidMenu = function(obj) { if (obj.hasClass("androidOnlyMenu") || obj.hasClass("")) { obj.find("a").removeClass("active"); return true; } else { obj.find("a").addClass("active"); var menu = obj.attr("class"); $(".menuDepth02 > div").hide(); $("." + menu).show(); return false; } };
//계좌개설 팝업 function openAccPop() { var scrollPosY = ($("body").css("top")); var thisPosY = $(window).scrollTop(); if($(".noLogin").hasClass("open")){ $(".footer .accDim").hide(); $(".openAcc").hide(); scrollUnlock(scrollPosY); $(".noLogin").removeClass("open"); }else{ scrollPosY = thisPosY; $(".footer .accDim").show(); $(".openAcc").show(); scrollLock(thisPosY); $(".noLogin").addClass("open"); }
}
// 이체정보 확인 시, 스크롤 가이드 아이콘 생성 var iconScroll = function() { height01 = $(".popCont").height(); height02 = $(".transfer").height(); $(".iconScroll").hide(); if (height01 < height02) { $(".iconScroll").show(); } }
$(".header").hide(1,function(){ $(".header").show(); });