/*******************************/ /* 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' } }); $(".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); } }); })