/* Çì´õ ½ºÅ©·Ñ fixed*/ $(window).scroll(function(event){ var ScrTop = $(document).scrollTop(); headerScroll(ScrTop); }) function headerScroll(event){ if(event>=1){ $('#header').addClass('fixed'); $('.main_slider,.common_slider,.common_title').addClass('fixed'); }else{ $('#header').removeClass('fixed'); $('.main_slider,.common_slider,.common_title').removeClass('fixed'); } } /* // Çì´õ ½ºÅ©·Ñ fixed*/ $(function(){ $('.board_output > tbody > tr >td > table').css({"width":"100%"}) var responBar = $('.bars'); var responNavBg = $('.respon_nav'); var responNav = $('.respon_nav > li'); var reponSub = $('.respon_nav > li ul'); var cnt = 0; responBar.on('click',function(){ if(cnt == 0){ responNavBg.animate({"right":"0"},500) cnt = 1; } else{ responNavBg.animate({"right":"-100%"},500) cnt = 0; reponSub.slideUp(); reponSub.removeClass('click'); } }) reponSub.slideUp(); responNav.stop().on('click',function(){ if($(this).children('ul').hasClass('click')){ $(this).children('ul').removeClass('click'); reponSub.slideUp(); } else{ reponSub.removeClass('click'); $(this).children('ul').addClass('click'); reponSub.slideUp(); $(this).children('ul').slideDown(); } }) var galleryTxt = $('.board_output_gallery_img:hover:after'); galleryTxt.on('mouseenter',function(){ $(this).css({"background":"#4a4a4a"}) }) $(document).ready(function(){ $(window).resize(function(){ var windowWidth = $(window).width(); if(windowWidth > 1099){ var heightArray = $('#topmenu .header_nav ul').map(function(){ return $(this).height(); }).get(); var maxHeight = Math.max.apply(Math, heightArray); $('#topmenu .header_nav ul').height(maxHeight); var navHeight = $('#topmenu .header_nav ul').height(maxHeight); $('#topmenu').mouseenter(function(){ $('#topmenu').css({'height' : (maxHeight + 100) + 'px'}); }); $('#topmenu').mouseleave(function(){ $('#topmenu').css({'height' : '80px'}); }); }; }) $(window).trigger("resize"); }) $('#maskingTarget > div').addClass('swiper-slide'); $('.viewer_content_01').css({'width':'100%','margin':'0','height':'auto' }); $('#selectedImage').css({'width':'100%','height':'auto'}); $('.viewer_tle_01').prepend("°´½Ç ¸í : "); $('.calender_bgcolor').css({'width':'50%'}); $('.ye').text("¤±"); $('.gallery_subject').parent('tr').css({"display":"none"}) $('.gallery_etc').parent('tr').css({"display":"none"}) $('.viewer_content_01').next('table').css({"width":"100%"}) })