/* * Published by DesignBox & Hyung */ $(window).load(function () { $('.boxPcNavSub > ul').show(); $('.btnRightKakao').stop(true,true).delay(200).animate({right:30},600,'easeOutBack'); $('.btnRightQna').stop(true,true).delay(450).animate({right:30},600,'easeOutBack'); }); $(window).load(function () { menu_top_move(); }); $(window).resize(function () { menu_top_move(); }); var moveTop = "0"; function menu_top_move() { var width = $(window).width(); if (width >= 320) { $(window).bind("scroll", function () { if (moveTop == "0") { if (parseInt($(window).scrollTop()) > 0) { $('.wrapHeader').stop(true, true).animate({ 'top': -105 }, 200); $('#wrapMobileRoll').stop(true, true).animate({ 'margin-top': 0 }, 200); $('.wrapMainRoll').stop(true, true).animate({ 'padding-top': 0 }, 200); $('.btnBtmGoTopXs').animate({ bottom: '80px' }, 400) moveTop = "1"; } } if (moveTop == "1") { if (parseInt($(window).scrollTop()) <= 0) { $('.wrapHeader').stop(true, true).animate({ top: 0 }, 200); $('#wrapMobileRoll').stop(true, true).animate({ 'margin-top': 60 }, 200); $('.wrapMainRoll').stop(true, true).animate({ 'padding-top': 50 }, 200); $('.btnBtmGoTopXs').animate({ bottom: '-75px' }, 400) moveTop = "0"; } } }); } else { $('.wrapHeader').css('top', '0px'); $(window).unbind("scroll"); } } function show_tab(str) { var id = $('.boxPcNav li').eq(str).find('a').attr('title'); var bl = 0; if ($('.boxPcAllMenu').css('display') == "block") { $('.boxPcAllMenu').slideUp(); } $('.boxPcNavSub').each(function () { var state = $(this).css('display'); if (state == "block") { bl = 1; } }); if ($('#' + id).css('display') == "none") { $('.boxPcNavSub').hide(); if (bl == 1) { $('#' + id).show(); } else { $('#' + id).slideDown(); } } } $(function () { $('.btnKakao').tooltip(); $('.btnBlog').tooltip(); $('.btnRightKakao > .btnRightClose').click(function(){ $('.btnRightKakao').stop(true,true).animate({right:-300},600,'easeInBack'); }); $('.btnRightQna > .btnRightClose').click(function(){ $('.btnRightQna').stop(true,true).animate({right:-300},600,'easeInBack'); }); $('.wrapPcNav').mouseleave(function () { $('.boxPcNavSub').slideUp(); }); var BtnAllMenu = $('.boxPcAllMenu').css('display'); if (BtnAllMenu == "block") { $('#BtnPcAllMenuOpen').hide(); $('#BtnPcAllMenuClose').show(); } else { $('#BtnPcAllMenuClose').hide(); $('#BtnPcAllMenuOpen').show(); } $('.wrapBtnPcAllMenu').click(function () { $('.boxPcNavSub').slideUp(); $('.boxPcAllMenu').slideToggle(300, function () { var BtnAllMenu = $('.boxPcAllMenu').css('display'); if (BtnAllMenu == "block") { $('#BtnPcAllMenuOpen').hide(); $('#BtnPcAllMenuClose').show(); } else { $('#BtnPcAllMenuClose').hide(); $('#BtnPcAllMenuOpen').show(); } }); }); $('.btnBtmGoTopXs').click(function () { $('html, body').animate({ scrollTop: 0 }, 500); }); $('.btnBtmGoTop').click(function () { var bS = $('.wrapMainBtmBody').css('display'); $('html, body').animate({ scrollTop: 0 }, 500); if (bS == 'block') { $('.wrapMainBtmUp').css('position', 'fixed'); $('.wrapMainBtmBody').hide(); $('.btnMainOpen').show('slow'); $('.btnMainClose').hide('slow'); } }); $(window).bind('touchmove', function(){ $('.footNav').hide(); clearTimeout( $.data( this, "scrollCheck" ) ); $.data( this, "scrollCheck", setTimeout(function(){ $('.footNav').show(); }, 1000) ); }); //Login Label var loginId = $('.IdInput'); loginId.focus(function () { $('.boxIdInput label').hide(); }).blur(function () { if (loginId.val() == '') { $('.boxIdInput label').show(); } }); var loginPw = $('.PwInput'); loginPw.focus(function () { $('.boxPwInput label').hide(); }).blur(function () { if (loginPw.val() == '') { $('.boxPwInput label').show(); } }); var findName = $('.NameInput'); findName.focus(function () { $('.boxNameInput label').hide(); }).blur(function () { if (findName.val() == '') { $('.boxNameInput label').show(); } }); var findPhone = $('.PhoneInput'); findPhone.focus(function () { $('.boxPhoneInput label').hide(); }).blur(function () { if (findPhone.val() == '') { $('.boxPhoneInput label').show(); } }); var findPhone2 = $('.PhoneInput2'); findPhone2.focus(function () { $('.boxPhoneInput2 label').hide(); }).blur(function () { if (findPhone.val() == '') { $('.boxPhoneInput2 label').show(); } }); var joinName = $('#mb_name'); joinName.focus(function () { $('.JoinNameCell label').hide(); }).blur(function () { if (joinName.val() == '') { $('.JoinNameCell label').show(); } }); var joinEmail = $('#mb_email1'); joinEmail.focus(function () { $('.JoinEmailCell label').hide(); }).blur(function () { if (joinEmail.val() == '') { $('.JoinEmailCell label').show(); } }); var joinPw1 = $('#mb_pwd'); joinPw1.focus(function () { $('.JoinPw1Cell label').hide(); }).blur(function () { if (joinPw1.val() == '') { $('.JoinPw1Cell label').show(); } }); var joinPw2 = $('#mb_pwd_ok'); joinPw2.focus(function () { $('.JoinPw2Cell label').hide(); }).blur(function () { if (joinPw2.val() == '') { $('.JoinPw2Cell label').show(); } }); var joinBirth = $('#mb_birth'); joinBirth.focus(function () { $('.JoinBirthCell label').hide(); }).blur(function () { if (joinBirth.val() == '') { $('.JoinBirthCell label').show(); } }); var joinAddress1 = $('#mb_addr2 '); joinAddress1.focus(function () { $('.boxJoin1address label').hide(); }).blur(function () { if (joinAddress1.val() == '') { $('.boxJoin1address label').show(); } }); var joinAddress2 = $('#mb_load_addr2'); joinAddress2.focus(function () { $('.boxJoin2address label').hide(); }).blur(function () { if (joinAddress1.val() == '') { $('.boxJoin2address label').show(); } }); var ch_pwd1 = $('#ch_pwd1'); ch_pwd1.focus(function () { $('.ChangePw1Cell label').hide(); }).blur(function () { if (ch_pwd1.val() == '') { $('.ChangePw1Cell label').show(); } }); var ch_pwd2 = $('#ch_pwd2'); ch_pwd2.focus(function () { $('.ChangePw2Cell label').hide(); }).blur(function () { if (ch_pwd2.val() == '') { $('.ChangePw2Cell label').show(); } }); var ch_pwd3 = $('#ch_pwd3'); ch_pwd3.focus(function () { $('.ChangePw3Cell label').hide(); }).blur(function () { if (ch_pwd3.val() == '') { $('.ChangePw3Cell label').show(); } }); var out_reason = $('#proposal'); out_reason.focus(function () { $('.OutText label').hide(); }).blur(function () { if (out_reason.val() == '') { $('.OutText label').show(); } }); }); $(window).load(function () { $('.imgPcSubBanner').css('display','inline-block'); });