/*******************************/ /* Publisher olibu. default.js */ /*******************************/ $(function() { $("#lmenu").navgoco({ caret: '', accordion: true, openClass: 'open', save: true, cookie: { name: 'navgoco', expires: false, path: '/' }, slide: { duration: 400, easing: 'swing' } }); /* onepage 메뉴이동 추가 */ $(".lnav > li li a").on("click", function(){ $("html, body").removeClass("not_scroll"); $(".mMenu").css("display","none"); $(".mask").css("display","none"); posY = $(window).scrollTop(posY); }); //$(".all_check input:checkbox").cbFamily(function (){ // return $(this).parents(".all_check").next().find("input:checkbox"); // }); }); /* faq */ // 질문영역 클릭시 $('.list_faq .area_question').on('click', function () { if (!$(this).parent('.item_faq').hasClass('on')) { // 열기버튼이 닫기버튼으로 바뀜 $('.list_faq .item_faq').removeClass('on'); $(this).parent('.item_faq').addClass('on'); // 답변영역 보임 $('.list_faq .area_answer').stop().slideUp(300); $(this).next('.area_answer').stop().slideDown(300); } else { $('.list_faq .item_faq').removeClass('on'); $('.list_faq .area_answer').stop().slideUp(300); } }); /* faq end */ /* izi popup */ $(function(){ /* Instantiating iziModal */ $("#modal-custom").iziModal({ overlayClose: false, overlayColor: 'rgba(0, 0, 0, 0.6)' }); /*$(document).on('click', '.trigger-custom', function (event) { event.preventDefault(); $('#modal-custom').iziModal('open'); });*/ /* JS inside the modal */ $("#modal-custom").on('click', 'header a', function(event) { event.preventDefault(); var index = $(this).index(); $(this).addClass('active').siblings('a').removeClass('active'); $(this).parents("div").find("section").eq(index).removeClass('hide').siblings('section').addClass('hide'); if( $(this).index() === 0 ){ $("#modal-custom .iziModal-content .icon-close").css('background', '#ddd'); } else { $("#modal-custom .iziModal-content .icon-close").attr('style', ''); } }); $("#modal-custom").on('click', '.submit', function(event) { event.preventDefault(); var fx = "wobble", //wobble shake $modal = $(this).closest('.iziModal'); if( !$modal.hasClass(fx) ){ $modal.addClass(fx); setTimeout(function(){ $modal.removeClass(fx); }, 1500); } }); })