function settings(){ // beaf °Ô½ÃÆÇ Ãʱ⼼Æà $(".wrap li .slide_con_bottom_span").css({"opacity":"0.7"}); $(".bear_div01 .thumbtxt").css({"opacity":"0.7"}); // gnb Á¦ÀÌÄõ¸® $(".header_wrap").css({"height":"222px"}); $(".header .gnb .depth_02 .dep02").css({"display":"none"}); // °¢ µª½º1 º°·Î .ticker °¡ À§Ä¡ÇÒ ÀÚ¸®¸¦ ¾Ë¾Æ³»´Â data ¼±¾ð $(".header .gnb > ul li").each(function(index){ $(this).data({"tick_pos":0}); for(var i=1 ; i<=index ; i++){ //$(this).data({"tick_pos":$(this).data("tick_pos")+parseFloat($(".header .gnb > ul li").eq(index-1).css("width"))+parseFloat($(".header .gnb > ul li").eq(index).css("margin-left"))}); $(this).data({"tick_pos":$(this).data("tick_pos")+100}); }; }); $(".header .gnb > ul li a").on("mouseenter",function(e){ $(".header_wrap").css({"height":"422px","border-bottom":"solid 1px #ff0000"}); /* */ $(".header .gnb .depth_02 .dep02").css({"display":"none"}); $(".header .gnb .depth_02 .dep02").eq($(this).parent().index()).css({"display":"block"}); //TweenMax.to($(".gnb .ticker"),0.6,{"left":$(this).parent().data("tick_pos")+((100-parseFloat($(this).children("img").css("width")))/2),"width":parseFloat($(this).children("img").css("width")),"ease":"Expo.easeOut"}); TweenMax.to($(".gnb .ticker"),0.6,{"left":$(this).parent().data("tick_pos"),"width":50,"ease":"Expo.easeOut"}); //TweenMax.to($(".gnb .ticker"),0.6,{"left":$(this).data("tick_pos"),"width":50,"ease":"Expo.easeOut"}); }).hover(function(e){ var src_txt = $(this).children("img").attr("src"); $(this).children("img").attr({"src":src_txt.replace("_off","_on")}); },function(e){ var src_txt = $(this).children("img").attr("src"); $(this).children("img").attr({"src":src_txt.replace("_on","_off")}); }); $(".header_wrap").on("mouseleave",function(e){ $(".header_wrap").css({"height":"222px","border-bottom":"solid 0px #2ff2fd"}); $(".header .gnb .depth_02 .dep02").css({"display":"none"}); TweenMax.to($(".gnb .ticker"),0.6,{"left":"9999px","width":0,"ease":"Expo.easeInOut"}); }); $(".header .depth_02 .dep02 ul li a").hover(function(e){ var src_txt = $(this).children("img").attr("src"); $(this).children("img").attr({"src":src_txt.replace("_off","_on")}); },function(e){ var src_txt = $(this).children("img").attr("src"); $(this).children("img").attr({"src":src_txt.replace("_on","_off")}); }); // ¸ÞÀκñÁê¾ó01 ¹Ù³×ÀÌ $(".main_visual .blinder").css({"opacity":"0","display":"none"}); var mv01_cur = 0; var mv01_prev = null; var mv01_ea = $(".main_visual_01 .imgs > li").size() - 1; var src_txt = null; var current_li_01; var prev_li_01; function blinder_set_01(){ $(".main_visual_01 .blinder").css({"display":"none"}); barney_dalay_01 = setInterval(barney_auto_01,5000); }; $(".main_visual_01 .indis > ul > li > a").on("click",function(e){ if($(this).parent().index() != mv01_cur){ $(".main_visual_01 .blinder").css({"display":"block"}); clearInterval(barney_dalay_01); mv01_prev = mv01_cur; mv01_cur = $(this).parent().index(); $(".main_visual_01 .indis > ul > li > a > img").attr({"src":"/img/jj_main_visual_indi_off.gif"}); $(".main_visual_01 .indis > ul > li").eq(mv01_cur).find(" > a > img").attr({"src":"/img/jj_main_visual_indi_on.gif"}); prev_li_01 = $(".main_visual_01 .imgs > li").eq(mv01_prev); current_li_01 = $(".main_visual_01 .imgs > li").eq(mv01_cur); TweenMax.fromTo(prev_li_01,0.8,{"left":"0"},{"left":"-100%","ease":"Expo.easeInOut"}); TweenMax.fromTo(current_li_01,0.8,{"left":"100%"},{"left":"0","ease":"Expo.easeInOut","onComplete":blinder_set_01}); }; }); // ¸ÞÀκñÁê¾ó01 ÁÂ¿ì ¹öÆ° $(".main_visual_01 .right_bn > a").on("click",function(e){ $(".main_visual_01 .blinder").css({"display":"block"}); clearInterval(barney_dalay_01); mv01_prev = mv01_cur; mv01_cur++; if(mv01_cur > mv01_ea){ mv01_cur = 0; mv01_prev = mv01_ea; }; $(".main_visual_01 .indis > ul > li > a > img").attr({"src":"/img/jj_main_visual_indi_off.gif"}); $(".main_visual_01 .indis > ul > li").eq(mv01_cur).find(" > a > img").attr({"src":"/img/jj_main_visual_indi_on.gif"}); prev_li_01 = $(".main_visual_01 .imgs > li").eq(mv01_prev); current_li_01 = $(".main_visual_01 .imgs > li").eq(mv01_cur); TweenMax.fromTo(prev_li_01,0.8,{"left":"0"},{"left":"-100%","ease":"Expo.easeInOut"}); TweenMax.fromTo(current_li_01,0.8,{"left":"100%"},{"left":"0","ease":"Expo.easeInOut","onComplete":blinder_set_01}); }); $(".main_visual_01 .left_bn > a").on("click",function(e){ $(".main_visual_01 .blinder").css({"display":"block"}); clearInterval(barney_dalay_01); mv01_prev = mv01_cur; mv01_cur--; if(mv01_cur < 0){ mv01_cur = mv01_ea; mv01_prev = 0; }; $(".main_visual_01 .indis > ul > li > a > img").attr({"src":"/img/jj_main_visual_indi_off.gif"}); $(".main_visual_01 .indis > ul > li").eq(mv01_cur).find(" > a > img").attr({"src":"/img/jj_main_visual_indi_on.gif"}); prev_li_01 = $(".main_visual_01 .imgs > li").eq(mv01_prev); current_li_01 = $(".main_visual_01 .imgs > li").eq(mv01_cur); TweenMax.fromTo(prev_li_01,0.8,{"left":"0"},{"left":"100%","ease":"Expo.easeInOut"}); TweenMax.fromTo(current_li_01,0.8,{"left":"-100%"},{"left":"0","ease":"Expo.easeInOut","onComplete":blinder_set_01}); }); function barney_auto_01(){ $(".main_visual_01 .blinder").css({"display":"block"}); clearInterval(barney_dalay_01); mv01_prev = mv01_cur; mv01_cur++; if(mv01_cur > mv01_ea){ mv01_cur = 0; mv01_prev = mv01_ea; }; $(".main_visual_01 .indis > ul > li > a > img").attr({"src":"/img/jj_main_visual_indi_off.gif"}); $(".main_visual_01 .indis > ul > li").eq(mv01_cur).find(" > a > img").attr({"src":"/img/jj_main_visual_indi_on.gif"}); prev_li_01 = $(".main_visual_01 .imgs > li").eq(mv01_prev); current_li_01 = $(".main_visual_01 .imgs > li").eq(mv01_cur); TweenMax.fromTo(prev_li_01,0.8,{"left":"0"},{"left":"-100%","ease":"Expo.easeInOut"}); TweenMax.fromTo(current_li_01,0.8,{"left":"100%"},{"left":"0","ease":"Expo.easeInOut","onComplete":blinder_set_01}); }; var barney_dalay_01 = setInterval(barney_auto_01,3000); // ¸ÞÀκñÁê¾ó02 ¹Ù³×ÀÌ var mv02_cur = 0; var mv02_prev = null; var mv02_ea = $(".main_visual_02 .imgs > li").size() - 1; var current_li_02; var prev_li_02; function blinder_set_02(){ $(".main_visual_02 .blinder").css({"display":"none"}); barney_dalay_02 = setInterval(barney_auto_02,3000); }; // ¸ÞÀκñÁê¾ó02 ÁÂ¿ì ¹öÆ° $(".main_visual_02 .down_bn > a").on("click",function(e){ $(".main_visual_02 .blinder").css({"display":"block"}); clearInterval(barney_dalay_02); mv02_prev = mv02_cur; mv02_cur++; if(mv02_cur > mv02_ea){ mv02_cur = 0; mv02_prev = mv02_ea; }; prev_li_02 = $(".main_visual_02 .imgs > li").eq(mv02_prev); current_li_02 = $(".main_visual_02 .imgs > li").eq(mv02_cur); TweenMax.fromTo(prev_li_02,0.8,{"top":"0"},{"top":"-100%","ease":"Expo.easeInOut"}); TweenMax.fromTo(current_li_02,0.8,{"top":"100%"},{"top":"0","ease":"Expo.easeInOut","onComplete":blinder_set_02}); }); $(".main_visual_02 .up_bn > a").on("click",function(e){ $(".main_visual_02 .blinder").css({"display":"block"}); clearInterval(barney_dalay_02); mv02_prev = mv02_cur; mv02_cur--; if(mv02_cur < 0){ mv02_cur = mv02_ea; mv02_prev = 0; }; prev_li_02 = $(".main_visual_02 .imgs > li").eq(mv02_prev); current_li_02 = $(".main_visual_02 .imgs > li").eq(mv02_cur); TweenMax.fromTo(prev_li_02,0.8,{"top":"0"},{"top":"100%","ease":"Expo.easeInOut"}); TweenMax.fromTo(current_li_02,0.8,{"top":"-100%"},{"top":"0","ease":"Expo.easeInOut","onComplete":blinder_set_02}); }); function barney_auto_02(){ $(".main_visual_02 .blinder").css({"display":"block"}); clearInterval(barney_dalay_02); mv02_prev = mv02_cur; mv02_cur++; if(mv02_cur > mv02_ea){ mv02_cur = 0; mv02_prev = mv02_ea; }; prev_li_02 = $(".main_visual_02 .imgs > li").eq(mv02_prev); current_li_02 = $(".main_visual_02 .imgs > li").eq(mv02_cur); TweenMax.fromTo(prev_li_02,0.8,{"top":"0"},{"top":"-100%","ease":"Expo.easeInOut"}); TweenMax.fromTo(current_li_02,0.8,{"top":"100%"},{"top":"0","ease":"Expo.easeInOut","onComplete":blinder_set_02}); }; var barney_dalay_02 = setInterval(barney_auto_02,3000); // ÀÇ·áÁø¼Ò°³ ÆäÀÌÁö Æ˾÷ Á¦ÀÌÄõ¸® $(".pop_blind").css({"opacity":"0.8"}); var team_pop = false; $(".cons.pops .call_pop").on("click",function(e){ if(team_pop == false){ team_pop = true; $(this).parent().find(".pop_area").css({"display":"block"}); $(".pop_blind").css({"display":"block"}); $("body").addClass("of_hiddener"); }; }); $(".cons.pops .pop_area a").on("click",function(e){ if(team_pop == true){ team_pop = false; $(this).parent().parent().css({"display":"none"}); $(".pop_blind").css({"display":"none"}); $("body").removeClass("of_hiddener"); }; }); $(".system li").each(function(){ //Ŭ·¡½º ³×ÀÓ º¯°æ var image = $(this).children("img"); var imgsrc = $(image).attr("src"); //add mouseOver $(this).mouseover(function(){ var on = imgsrc.replace(/.jpg/,"_on.jpg"); $(image).attr("src",on); }); //add mouseOut $(this).mouseout(function(){ var off = imgsrc.replace(/_on.jpg/,".jpg"); $(image).attr("src",off); }); }); }; // µÑ·¯º¸±â ½ºÅ©¸³Æ® $(document).ready(function() { var old_images = []; // ÃÖÃÊ »óÅÂÀÇ °¢ ÅÇ ¸ÞÀÎ ½æ³×ÀÏÀ» º¯¼ö¿¡ ÀúÀå $("#facilitySlider .big-thumb .thumb-list > li").each(function(i) { old_images[i] = $(this).find('img').attr('src'); i++; }); // 1´Ü°è : Ãþº° ÅÇ Å¬¸¯½Ã º¸¿©Áö´Â ÅÇ ³»¿ëÀ» ±³Ã¼ & °¢ ÃþÀÇ ´ëÇ¥ À̹ÌÁö·Î ÃʱâÈ­ $("#facilitySlider .big-thumb .floor-tab > li").click(function() { var tab_index = $(this).index(); $("#facilitySlider .big-thumb .floor-tab > li").removeClass('active'); $(this).addClass('active'); $("#facilitySlider .big-thumb .thumb-list > li").removeClass('active'); $("#facilitySlider .big-thumb .thumb-list > li").eq(tab_index).find('img').attr('src', old_images[tab_index]); $("#facilitySlider .big-thumb .thumb-list > li").eq(tab_index).addClass('active'); $("#facilitySlider .floor-container > .floor-info .thumb-list > li").removeClass('selected'); $("#facilitySlider .floor-container > .floor-info").removeClass('active'); $("#facilitySlider .floor-container > .floor-info").eq(tab_index).addClass('active'); }); // 2´Ü°è : °¢ Ãþº° ³»ºÎ ½æ³×ÀÏ Å¬¸¯½Ã ´ëÇü ½æ³×ÀÏ ±³Ã¼ $("#facilitySlider .floor-container > .floor-info .thumb-list > li").click(function() { var thumb_img = $(this).find('img').attr('src'); $("#facilitySlider .floor-container > .floor-info .thumb-list > li").removeClass('selected'); $(this).addClass('selected'); $("#facilitySlider .big-thumb .thumb-list > li.active").find('img').attr('src', thumb_img); }); }); // URL ÆĶó¹ÌÅÍ ºÒ·¯¿À±â var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVariables[i].split('='); if (sParameterName[0] === sParam) { return sParameterName[1] === undefined ? true : sParameterName[1]; } } }; /* ----------------- ¸Þ´º °ü·Ã ½ºÅ©¸³Æ® ----------------- */ $(document).ready(function() { var allMenu = $("#all-menu"); var menuMask = $("#menuMask"); var wrapper = $("body"); var mnuEasing = "easeInOutExpo"; // Àüü¸Þ´º ¿­±â function allMenuOpen() { if(!allMenu.hasClass('open')) { allMenu.addClass('open'); allMenu.stop().animate({right:0}, 500, mnuEasing); menuMask.stop().fadeIn(500); } } // Àüü¸Þ´º ´Ý±â function allMenuClose() { var menuWidth = allMenu.outerWidth(); allMenu.removeClass('open'); allMenu.stop().animate({right:-menuWidth + 'px'}, 500, mnuEasing); menuMask.stop().fadeOut(500); } $("#header .btn-allmenu").click(function() { allMenuOpen(); }); allMenu.find('.btnClose').click(function() { allMenuClose(); }); menuMask.click(function() { allMenuClose(); }); $("#all-menu > .inner > .depth1 > li > a").click(function(e) { if($(this).next('ul').length) { e.preventDefault(); if(!$(this).parent().hasClass('active')) { $("#all-menu > .inner > .depth1 > li").removeClass('active'); $("#all-menu > .inner > .depth1 > li > ul").stop().slideUp(350); $(this).parent().addClass('active'); $(this).siblings('ul').stop().slideDown(350); } else { $("#all-menu > .inner > .depth1 > li").removeClass('active'); $("#all-menu > .inner > .depth1 > li > ul").stop().slideUp(350); } } }); }); /* ----------------- ¸Þ´º ¹× ÅÇ È°¼ºÈ­ ½ºÅ©¸³Æ® ----------------- */ $(document).ready(function() { var url = $(location).attr('href'); if(url.indexOf('member') < 0) { var depth1 = getUrlParameter('top') - 1; var depth2 = getUrlParameter('sub') - 1; $("#all-menu .depth1 > li").eq(depth1).addClass('on active'); $("#all-menu .depth1 > li").eq(depth1).find('ul').children().eq(depth2).addClass('active'); $("#all-menu .depth1 > li").eq(depth1).find('ul').css('display','block'); } }); /* ----------------- ¸ÞÀÎÆäÀÌÁö Àü¿ë ½ºÅ©¸³Æ® ----------------- */ // BEFORE&AFTER ¼½¼Ç ÅÇ ±â´É $(document).ready(function() { $("#section1 .tab-list > li").click(function() { var tab_index = $(this).index(); $("#section1 .tab-list > li").removeClass('active'); $(this).addClass('active'); $("#rollingBox > .rolling-box").removeClass('active'); $("#rollingBox > .rolling-box").eq(tab_index).addClass('active'); }); }); // BEFORE&AFTER ¼½¼Ç ·Ñ¸µ $(document).ready(function() { var slide_index = []; var count = []; var elem; var winWidth = $(window).width(); var item_size; var easeEffect = "easeInOutCubic"; // À妽º ¹è¿­ ÃʱâÈ­ $("#rollingBox .rolling-box").each(function(i) { slide_index[i] = 0; count[i] = $(this).find('.imgList').children().length; i++; }); // ½½¶óÀÌ´õ »çÀÌÁî ó¸® function sliderSizing() { var wrapperWidth = $("#rollingBox").width(); $("#rollingBox .rolling-box").each(function(i) { $(this).find('.imgList').css({'width':count[i] * wrapperWidth + 'px', 'left':-slide_index[i]*wrapperWidth}); $(this).find('.imgList').children().css('width', wrapperWidth + 'px'); }); } // °³º° ÆäÀÌÁö³×ÀÌ¼Ç »ý¼º function initPaging() { var item = "
  • "; $("#rollingBox .rolling-box").each(function(i) { for(z=0; z= count[index]) { slide_index[index] = 0; } elem.find('.imgList').stop().animate({'left':-(item_size*slide_index[index]) + 'px'}, 400, easeEffect); elem.find('.pagination').children().removeClass('active'); elem.find('.pagination').children().eq(slide_index[index]).addClass('active'); } // ÀÌÀü ¹öÆ° Ŭ¸¯ $("#section1 .control-box .prev").click(function() { elem = $("#rollingBox .rolling-box.active > .imgList"); var active_index = elem.index(); if(!elem.is(':animated')) { slide_index[active_index]--; slide(active_index); } }); // ´ÙÀ½ ¹öÆ° Ŭ¸¯ $("#section1 .control-box .next").click(function() { elem = $("#rollingBox .rolling-box.active > .imgList"); var active_index = elem.index(); if(!elem.is(':animated')) { slide_index[active_index]++; slide(active_index); } }); // ÆäÀÌÁö³×ÀÌ¼Ç Å¬¸¯ $(document).on('click touchend', '#rollingBox .rolling-box .pagination > li', function() { elem = $("#rollingBox .rolling-box.active > .imgList"); var active_index = elem.index(); var pindex = $(this).index(); if(!elem.is(':animated')) { slide_index[active_index] = pindex; slide(active_index); } }); initPaging(); sliderSizing(); $(window).resize(function() { sliderSizing(); }); }); // µÑ·¯º¸±â ½ºÅ©¸³Æ® $(document).ready(function() { var old_images = []; // ÃÖÃÊ »óÅÂÀÇ °¢ ÅÇ ¸ÞÀÎ ½æ³×ÀÏÀ» º¯¼ö¿¡ ÀúÀå $("#facilitySlider .big-thumb .thumb-list > li").each(function(i) { old_images[i] = $(this).find('img').attr('src'); i++; }); // 1´Ü°è : Ãþº° ÅÇ Å¬¸¯½Ã º¸¿©Áö´Â ÅÇ ³»¿ëÀ» ±³Ã¼ & °¢ ÃþÀÇ ´ëÇ¥ À̹ÌÁö·Î ÃʱâÈ­ $("#facilitySlider .big-thumb .floor-tab > li").click(function() { var tab_index = $(this).index(); $("#facilitySlider .big-thumb .floor-tab > li").removeClass('active'); $(this).addClass('active'); $("#facilitySlider .big-thumb .thumb-list > li").removeClass('active'); $("#facilitySlider .big-thumb .thumb-list > li").eq(tab_index).find('img').attr('src', old_images[tab_index]); $("#facilitySlider .big-thumb .thumb-list > li").eq(tab_index).addClass('active'); $("#facilitySlider .floor-container > .floor-info .thumb-list > li").removeClass('selected'); $("#facilitySlider .floor-container > .floor-info").removeClass('active'); $("#facilitySlider .floor-container > .floor-info").eq(tab_index).addClass('active'); }); // 2´Ü°è : °¢ Ãþº° ³»ºÎ ½æ³×ÀÏ Å¬¸¯½Ã ´ëÇü ½æ³×ÀÏ ±³Ã¼ $("#facilitySlider .floor-container > .floor-info .thumb-list > li").click(function() { var thumb_img = $(this).find('img').attr('src'); $("#facilitySlider .floor-container > .floor-info .thumb-list > li").removeClass('selected'); $(this).addClass('selected'); $("#facilitySlider .big-thumb .thumb-list > li.active").find('img').attr('src', thumb_img); }); }); // °Ô½ÃÆÇ Ä«Å×°í¸® ÀÚµ¿ »ý¼º $(document).ready(function() { var cate_link = [], cate_title = [], currentURL = $(location).attr('pathname'), param = "?&com_board_category_code=", currentParam = "", insertHTML = "", idx = 0; if($("select[name='com_board_category_code']").length > 0) { currentParam = getUrlParameter('com_board_category_code'); $("select[name='com_board_category_code'] > option").each(function() { cate_link[idx] = $(this).val(); cate_title[idx] = $(this).text(); idx++; }); insertHTML = '
    '; insertHTML += ''; insertHTML += '
    '; $(".brd_category").before(insertHTML); $.each(cate_link, function(m, key) { if(key == currentParam) { $(".board_tab > a").text(cate_title[m]); $(".board_tab > ul > li[data-category='" + key + "']").addClass('on'); } }); if(!currentParam) { $(".board_tab > ul > li:first").addClass('on'); } } }); // ¸®½ºÆ®Çü °Ô½ÃÆÇ ¸Ó¸´¸» ¼Ó¼º ºÎ¿© $(document).ready(function() { if($(".tbl_list").length) { $(this).find('.att_title').each(function() { var title = $(this).find('font').text(); $(this).attr('rel', title); }); } }); // PC¸µÅ© -> ¸ð¹ÙÀÏ ¸µÅ© ġȯ ½ºÅ©¸³Æ® $(document).ready(function() { var temp_no = $(location).attr('pathname').split('/')[1]; // ¸¶ÀÌÆäÀÌÁö ¹öÆ° °æ·Î ¸ð¹ÙÀÏ °æ·Î·Î ġȯ $("button[onclick*='engage_list']").attr('onclick','location.href="/' + temp_no + '/mobile/member/engage_list.php"'); // È®ÀÎ ¹öÆ° °æ·Î ¸ð¹ÙÀÏ °æ·Î·Î ġȯ $("button[onclick*='counsel/sub3']").attr('onclick','location.href="/' + temp_no + '/mobile/counsel/sub3.php"'); // ·Î±×ÀÎ ¹öÆ° °æ·Î ¸ð¹ÙÀÏ °æ·Î·Î ġȯ $("#link-login").attr('onclick','location.href="/' + temp_no + '/mobile/member/login.php"'); // ȸ¿ø°¡ÀÔ ¹öÆ° °æ·Î ¸ð¹ÙÀÏ °æ·Î·Î ġȯ $("#link-join").attr('href','/' + temp_no + '/mobile/member/join.php'); });