(function ($) { /*gnb-all*/ $('.gnb-right-icon .icon-right-img img').click(function () { $('.gnb-all').fadeIn(500); }); $('.gnb-all .all-wrapper .all-close').click(function () { $('.gnb-all').fadeOut(500); }) /*(li¿¡ ¸¶¿ì½º µé¾î°¥¶§ ³ª°¥¶§ &ÆîÃÄÁü)*/ $(document).on('mouseenter', '.header-gnb > ul > li', function () { $('#header').css('height', '420px'); $(this).addClass('on'); $(this).siblings().removeClass('on'); $(this).children().eq(1).css('background', '#eee'); $('.header-gnb > ul > li ul').css('display', 'block'); }); $(document).on('mouseleave', '.header-gnb > ul > li', function () { $(this).children().eq(1).css('background', ''); $(this).siblings().removeClass('on'); }); /*(¸¶¿ì½º³ª°¥¶§ Á¢Èû )*/ $(document).on('mouseleave', '#header', function () { $('#header').css('height', '90px'); $('.header-gnb > ul > li').removeClass('on'); $('.header-gnb > ul > li ul').css('display', 'none'); }); /*li ³»ºÎÄ÷¯*/ $(document).on('mouseenter', '.header-gnb > ul > li ul > li', function () { $(this).addClass('hover-color'); $(this).children().addClass('hover-font-color') }); $(document).on('mouseleave', '.header-gnb > ul > li ul > li', function () { $(this).removeClass('hover-color'); $(this).children().removeClass('hover-font-color') }); /*mmenu*/ $('#depth1 > li').hover(function () { $('#depth1 > li > ul').hide(); $(this).find('ul').show(); }, function () { $('#depth1 > li > ul').hide(); }); $('#gnb').mouseleave(function () { $('#depth1 > li > ul').hide(); }); $(document).ready(function () { }); $(window).load(function () { var secion2Height = $("#main-section2 .row .col-xs-12").width(); if ($(window).width() < 1025) { $("#my-menu").mmenu({ "slidingSubmenus": false, "extensions": [ "effect-menu-slide", "pageshadow", "pagedim-black" ], "offCanvas": { "position": "right", "zposition": "front" } }); secion2Height -= 50; } else { $("#widget-sermon-img").height($("#r3").height()); } }); })(jQuery);