(function( $ ){ $(function(){ if($('#facebook').size() >= 1){ document.getElementById('facebook').onclick = function() { FB.ui({ method: 'share', display: 'popup', href: shorten_url, }, function(response){}); } } //currentNav(); //nav ������ġ current class �߰� subnavadd(); //sub�� ���� var responSize = 1259, //pc - pad,mobile ��ȯ������ responPadMax = 1259, //pad ��ȯ������ responPadMin = 767, responHeight = 940; //pc-mobile ��ȯ�� var device = ''; var deviceCheck = function(){ var winWidth = $(window).width(); if(winWidth >= responSize && winWidth >= responPadMax){ if(device == 'pc'){ }else{ device = 'pc'; //PC�϶� �ѹ����� --------------------- pcnav(); snbreset(); if($('#gallery-slider').size() >=1){ //���ο����� ���� mainAjaxPc(5,slideurl); //(rows)���� ���� } if($('#b-map-data').size() >= 1){ //�����Ͻ� ���� ������ bmap(device); } // ----------------------------------------- } }else if(winWidth <= responPadMax && winWidth >= responPadMin){ if(device == 'pad'){ }else{ device = 'pad'; //pad�϶� �ѹ����� ------------------- mbnav(); snbreset(); if($('#gallery-slider').size() >=1){ //���ο����� ���� mainAjaxPc(5,slideurl); //(rows)���� ���� } if($('#b-map-data').size() >= 1){ //�����Ͻ� ���� ������ �ʱ�ȭ bmap(device); } // --------------------------------------- } }else{ if(device == 'mb'){ }else{ device = 'mb'; //pad,������϶� �ѹ����� ---------- mbnav(); subNav(); if($('#gallery-slider').size() >=1){ //���ο����� ���� mainAjaxMobile(slideurl); } if($('#b-map-data').size() >= 1){ //�����Ͻ� ���� ������ �ʱ�ȭ bmap(device); } // --------------------------------------- } } };deviceCheck(); //�ڵ� ���� var autoheight = $('.auto-height'); var winheight = $(window).height(); autoheight.css({"height":winheight}); //resize�� �ݺ����� $(window).resize(function(){ var winWidth = $(window).width(); //pc�϶� �ڵ� ���� if(winWidth >= responSize && $(window).height() >= responHeight){ var winheight = $(window).height(); autoheight.css({"height":winheight}); } deviceCheck(); }); }); })( jQuery ); //pc navigation function pcnav(){ $('#gnb').show(); //reset $('#fast-nav').show(); //reset if($('#mb-nav-btn').size() == 1){ $('#mb-nav-btn').remove(); $('.ov-bg').remove(); $('#mb-gnb').remove(); } //mouse over effect var gnbbar = $('#gnb .bar'); var gnba = $('#gnb nav > ul > li'); gnbbar.css("left",gnba.eq(0).offset().left); gnba.unbind('mouseenter').bind('mouseenter',function(){ gnbbar.show().stop().animate({"height":"1px","left":$(this).offset().left},300); $('.subnav',this).slideDown(300); }).unbind('mouseleave').bind('mouseleave',function(){ gnbbar.stop().animate({"height":0},200,function(){ gnbbar.hide(); }); $('.subnav',this).stop().slideUp(300); }); } //mobile navigation function mbnav(){ $('#gnb nav > ul > li').unbind('mouseenter').unbind('mouseleave'); if($('#mb-nav-btn').size() == 0){ $('#header').append('��ü�� ����'); /* 2021-09-17 ���� �� ��Ÿ�� x #fast-nav �������� ���� $('body').append('
\