$(document).ready(function() { // ±â°£°Ë»ö - ´Þ·Â // $( "#from" ).datepicker({ showOn: "both", buttonImage: "../../images/btnIcn/btn_calendar.png", buttonImageOnly: true, buttonText: "Select date", dateFormat:'yy-mm-dd', minDate: 0, onClose: function( selectedDate ) { $( "#to" ).datepicker( "option", "minDate", selectedDate ); } }); $( "#to" ).datepicker({ showOn: "both", buttonImage: "../../images/btnIcn/btn_calendar.png", buttonImageOnly: true, buttonText: "Select date", dateFormat:'yy-mm-dd', onClose: function( selectedDate ) { $( "#from" ).datepicker( "option", "maxDate", selectedDate ); } }); // ´Þ·Â/½Ã°£ // $( "#dayTime" ).datetimepicker({ showOn: "both", buttonImage: "../../images/btnIcn/btn_calendar.png", buttonImageOnly: true, buttonText: "Select date", dateFormat:'yy-mm-dd' }); // ºÎÆ®½ºÆ®·¦ - ÅøÆÁ // $('[data-toggle="tooltip"]').tooltip() // Áñ°Üã±â // $('#favorite').on('click', function(e) { var bookmarkURL = window.location.href; var bookmarkTitle = document.title; var triggerDefault = false; if (window.sidebar && window.sidebar.addPanel) { // Firefox version < 23 window.sidebar.addPanel(bookmarkTitle, bookmarkURL, ''); } else if ((window.sidebar && (navigator.userAgent.toLowerCase().indexOf('firefox') > -1)) || (window.opera && window.print)) { // Firefox version >= 23 and Opera Hotlist var $this = $(this); $this.attr('href', bookmarkURL); $this.attr('title', bookmarkTitle); $this.attr('rel', 'sidebar'); $this.off(e); triggerDefault = true; } else if (window.external && ('AddFavorite' in window.external)) { // IE Favorite window.external.AddFavorite(bookmarkURL, bookmarkTitle); } else { // WebKit - Safari/Chrome alert((navigator.userAgent.toLowerCase().indexOf('mac') != -1 ? 'Cmd' : 'Ctrl') + '+D Å°¸¦ ´­·¯ Áñ°Üã±â¿¡ µî·ÏÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.'); } return triggerDefault; }); // ¸ð´Þ - À¯Æ©ºê ÀÚµ¿Àç»ý // autoPlayYouTubeModal(); //FUNCTION TO GET AND AUTO PLAY YOUTUBE VIDEO FROM DATATAG function autoPlayYouTubeModal() { var trigger = $("body").find('[data-toggle="modal"]'); trigger.click(function () { var theModal = $(this).data("target"), videoSRC = $(this).attr("data-theVideo"), videoSRCauto = videoSRC + "?autoplay=1"; $(theModal + ' iframe').attr('src', videoSRCauto); $(theModal + ' button.close').click(function () { $(theModal + ' iframe').attr('src', videoSRC); }); $('.modal').click(function () { $(theModal + ' iframe').attr('src', videoSRC); }); }); } // ¿À¸¥¸¶¿ì½º ±ÝÁö // $(document).bind("contextmenu", function(e) { return false; }); }); //ºÎÆ®½ºÆ®·¦ ¸ÖƼ ¸ð´Þ À½¿µ var count = 0; // ¸ð´ÞÀÌ ¿­¸± ¶§ ¸¶´Ù count Çؼ­ z-index°ªÀ» ³ô¿©ÁÜ $(document).on('show.bs.modal', '.modal', function () { var zIndex = 1040 + (10 * count); $(this).css('z-index', zIndex); setTimeout(function() { $('.modal-backdrop').not('.modal-stack').css('z-index', zIndex - 1).addClass('modal-stack'); }, 0); count = count + 1 }); // ºÎÆ®½ºÆ®·¦ ¸ÖƼ¸ð´Þ ½ºÅ©·Ñ $(document).on('hidden.bs.modal', '.modal', function () { $('.modal:visible').length && $(document.body).addClass('modal-open'); }); // ºÎÆ®½ºÆ®·¦ ¸ð´Þ °¡¿îµ¥Á¤·Ä /* function alignModal(){ var modalDialog = $(this).find(".modal-dialog"); modalDialog.css("margin-top", Math.max(0, ($(window).height() - modalDialog.height()) / 2)); } $(".modal").on("shown.bs.modal", alignModal); $(window).on("resize", function(){ $(".modal:visible").each(alignModal); }); */ // getÆĶó¹ÌÅÍ °¡Á®¿À±â // var getParam = function(key){ var _parammap = {}; document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function () { function decode(s) { return decodeURIComponent(s.split("+").join(" ")); } _parammap[decode(arguments[1])] = decode(arguments[2]); }); return _parammap[key]; }; // ¼­ºê ¸Þ´º À̵¿ // function scrollLink(obj, num){ var position = $("#"+obj).offset(); $('html, body').animate({scrollTop : position.top-num}, 900, 'easeOutQuad'); } // ¸µÅ©Á¡¼± Á¦°Å // function bluring(){ if(event.srcElement.tagName=="A" || event.srcElement.tagName=="IMG") document.body.focus(); } document.onfocusin=bluring; // °³º° ========================================================================================== // // »ó´Ü¿µ¿ª // $(window).scroll(function() { if ($("#header").offset().top > 50) { $('#header > dl > dt:first-child').stop().animate({ paddingTop : '14px' }, 350, 'easeOutQuad'); $('#header > dl > dt:last-child').stop().animate({ paddingTop : '15px' }, 350, 'easeOutQuad'); $('#header > dl > dd > ul > li').stop().css({ background : 'url(../../img/images/common/menu_dot.png) right 31px no-repeat' }); $('#header > dl > dd > ul > li:last-child').stop().css({ background : 'none' }); $('#header > dl > dd > ul > li').stop().animate({ paddingTop : '24px', paddingBottom : '28px' }, 350, 'easeOutQuad'); $('#header > dl > dd > ul > li div').stop().animate({ top : '69px' }, 350, 'easeOutQuad'); } else { $('#header > dl > dt:first-child').stop().animate({ paddingTop : '19px' }, 350, 'easeOutQuad'); $('#header > dl > dt:last-child').stop().animate({ paddingTop : '22px' }, 350, 'easeOutQuad'); $('#header > dl > dd > ul > li').stop().css({ background : 'url(../../img/images/common/menu_dot.png) right 37px no-repeat' }); $('#header > dl > dd > ul > li:last-child').stop().css({ background : 'none' }); $('#header > dl > dd > ul > li').stop().animate({ paddingTop : '30px', paddingBottom : '32px' }, 350, 'easeOutQuad'); $('#header > dl > dd > ul > li div').stop().animate({ top : '80px' }, 350, 'easeOutQuad'); } }); $(document).ready(function() { // »ó´Ü¼­ºê¸Þ´º // $('#menuArea > li > div').each(function (index) { $('#menuArea > li').eq(index).mouseenter(function(){ $('#menuArea > li > div').eq(index).stop().slideDown(400, 'easeOutQuad'); }); $('#menuArea > li').eq(index).mouseleave(function(){ $('#menuArea > li > div').eq(index).stop().slideUp(400, 'easeOutQuad'); }); }); // »ó´Ü¼­ºê¸Þ´º - 3µª½º // $('#menu3ds > a').each(function (index) { $('#menu3ds > a').eq(index).mouseenter(function(){ $('#menu3ds > ul').stop().animate({ opacity : '0.0' }, 350, 'easeOutQuad'); $('#menu3ds > ul').css({ display : 'none' }); $('#menu3ds > ul').eq(index).css({ display : 'block' }); $('#menu3ds > ul').eq(index).stop().animate({ opacity : '1.0' }, 350, 'easeOutQuad'); }); $('#menu3ds > ul').eq(index).mouseleave(function(){ $('#menu3ds > ul').eq(index).stop().animate({ opacity : '0.0' }, 350, 'easeOutQuad'); $('#menu3ds > ul').eq(index).css({ display : 'none' }); }); }); // ÅäÅ»¸Þ´º // var openChk = 0; $('#tmOpen').click(function(){ if (openChk == 0){ $('#totalMenu').slideDown(500, 'easeOutQuad'); $('#header > dl > dd > ul').animate({ opacity : '0' }, 800, 'easeOutQuad'); $('#tmOpen i').removeClass('ion-android-menu'); $('#tmOpen i').addClass('ion-android-close'); openChk = 1; var stepTime = 0; $('#totalMenu > ul > li').each(function (index) { var stepChk = 0+String(index); stepChk = setInterval(function() { $('#totalMenu > ul > li').eq(index).animate({ marginTop : '0', opacity : '1' }, 1200, 'easeOutQuad'); clearInterval(stepChk); }, stepTime); stepTime = stepTime+50; }); } else { stepChk = setInterval(function() { $('#totalMenu').slideUp(500, 'easeOutQuad'); $('#header > dl > dd > ul').animate({ opacity : '1' }, 800, 'easeOutQuad'); $('#tmOpen i').removeClass('ion-android-close'); $('#tmOpen i').addClass('ion-android-menu'); clearInterval(stepChk); }, 650); openChk = 0; var stepTime = 0; $('#totalMenu > ul > li').each(function (index) { var stepChk = 0+String(index); stepChk = setInterval(function() { $('#totalMenu > ul > li').eq(index).animate({ marginTop : '-100px', opacity : '0' }, 1200, 'easeOutQuad'); clearInterval(stepChk); }, stepTime); stepTime = stepTime+50; }); } }); // ¸ð¹ÙÀÏ ÅäÅ»¸Þ´º // var mobileLnbChk = 0; $('#mobileLnbOpen').click(function(){ if (mobileLnbChk == 0) { $('#header-mobile > .gnbTotal').animate({ marginLeft : '0' }, 350, 'easeOutQuad'); $(this).removeClass('ion-android-menu').addClass('ion-android-close'); mobileLnbChk = 1; } else { $('#header-mobile > .gnbTotal').animate({ marginLeft : '-250px' }, 350, 'easeOutQuad'); $(this).removeClass('ion-android-close').addClass('ion-android-menu'); mobileLnbChk = 0; } }); $('#mobileLnbClose').click(function(){ $('#header-mobile > .gnbTotal').animate({ marginLeft : '-250px' }, 350, 'easeOutQuad'); $('.ion-android-close').removeClass('ion-android-close').addClass('ion-android-menu'); mobileLnbChk = 0; }); // ¸ÞÀÎ ºñÁÖ¾ó // $(".main-vegas").vegas({ slides: [ { src: "../../img/images/main/visual01_img01.jpg" }, { src: "../../img/images/main/visual01_img02.jpg" }, { src: "../../img/images/main/visual01_img03.jpg" }, { src: "../../img/images/main/visual01_img04.jpg" } ], animation: 'kenburns', delay: 7000, overlay: '../../img/images/btnIcn/overlay_07.png' }); $('.mv-prev').on('click', function () { $(".main-vegas").vegas('options', 'transition', 'fade').vegas('previous'); }); $('.mv-next').on('click', function () { $(".main-vegas").vegas('options', 'transition', 'fade').vegas('next'); }); $('.mv-btm').click(function(){ $('html, body').animate({ scrollTop : $(window).height()-51 }, 900, 'easeOutQuad'); }); // ¸ÞÀÎ Ä«ÇÇ // setTimeout(function() { $('.mv-copy').css({ display : 'block' }); $('.mv-copy > h1').textillate(); $('.mv-copy > h2').textillate(); $('.mv-copy > h3').textillate(); }, 1); setTimeout(function() { $('.mv-copy div').animate({ opacity : '1.0' }, 350, 'easeOutQuad'); }, 3500); // ¸ÞÀÎ ÁÖ¿ä¸Þ´º - ¿À¹ö // $('.main-menu > div > ul > li').hover(function (event) { $(this).find('p img').stop().animate({ width : '105%', margin : '-2.5% 0 0 -2.5%', opacity : '0.5' }, 500, 'easeOutQuad'); }, function (event) { $(this).find('p img').stop().animate({ width : '100%', margin : '0', opacity : '1.0' }, 500, 'easeOutQuad'); }); // ¸ÞÀÎ ½ÇÀû - ¿À¹ö // var $mainPortfolio = $('.mw-portfolio > ul').isotope({ itemSelector: '.item', layoutMode: 'masonry' }); $mainPortfolio.imagesLoaded().progress( function() { $mainPortfolio.isotope('layout'); }); $('.mw-portfolio > ul > li').hover(function (event) { $(this).find('p img').stop().animate({ width : '105%', margin : '-2.5% 0 0 -2.5%', opacity : '0.5' }, 500, 'easeOutQuad'); }, function (event) { $(this).find('p img').stop().animate({ width : '100%', margin : '0', opacity : '1.0' }, 500, 'easeOutQuad'); }); // ¼­ºê ºñÁÖ¾ó // $(".visual-sub-vagas").vegas({ slides: [ { src: "../../img/images/common/subVisual0101.jpg" }, { src: "../../img/images/common/subVisual0102.jpg" }, { src: "../../img/images/common/subVisual0103.jpg" }, { src: "../../img/images/common/subVisual0104.jpg" }, { src: "../../img/images/common/subVisual0105.jpg" } ], //animation: 'kenburns', animation: 'random', delay: 7000, overlay: '../../img/images/btnIcn/overlay_01.png' }); // ºñÁö´Ï½º °³¿ä - ¿À¹ö // $('.business-overview > ul > li').hover(function (event) { $(this).find('p img').stop().animate({ width : '105%', margin : '-2.5% 0 0 -2.5%', opacity: '0.4' }, 500, 'easeOutQuad'); }, function (event) { $(this).find('p img').stop().animate({ width : '100%', margin : '0', opacity: '0.8' }, 500, 'easeOutQuad'); }); // »ç¾÷¿µ¿ª - ºñÁÖ¾ó¸Þ´º // $('.business-menu > li').hover(function () { $(this).find('p img').stop().animate({ width : '110%', height : '110%', margin : '-5%' }, 500, 'easeOutQuad'); }, function () { $(this).find('p img').stop().animate({ width : '100%', height : '100%', margin : '0%' }, 300, 'easeOutQuad'); }); // ÁÖ¿ä¼­ºñ½º // var $businessService = $('.business-service > ul').isotope({ itemSelector: '.item', layoutMode: 'masonry' }); $businessService.imagesLoaded().progress( function() { $businessService.isotope('layout'); }); // Á¦Ç°¼Ò°³ - ¿­°í ´Ý±â // $('.product-area .pav-view').each(function (index) { var scrtMerit = 0+String(index); $('.product-area .pav-view > p').eq(index).click(function(){ if (scrtMerit == 0+String(index)) { $('.pav-view div').eq(index).slideDown(400, 'easeOutQuad'); $('.pav-view p i').eq(index).removeClass('fa-angle-down'); $('.pav-view p i').eq(index).addClass('fa-angle-up'); scrtMerit = 1+String(index); } else { $('.pav-view div').eq(index).slideUp(400, 'easeOutQuad'); $('.pav-view p i').eq(index).removeClass('fa-angle-up'); $('.pav-view p i').eq(index).addClass('fa-angle-down'); scrtMerit = 0+String(index); } }); }); // ÀÚÁÖÇÏ´ÂÁú¹® // $('.list-faq > dl > dt').each(function (index) { var faqChk = 0+String(index); $('.list-faq > dl > dt').eq(index).click(function(){ if (faqChk == 0+String(index)) { //$('.list-faq > dd').slideUp(300, 'easeOutQuad'); $('.list-faq > dl > dd').eq(index).slideDown(300, 'easeOutQuad'); $('.list-faq > dl > dt').eq(index).css({ color : '#000', background : 'url(../../img/images/btnIcn/icn_faq_q2.gif) 20px 20px no-repeat, url(../../img/images/btnIcn/icn_arrUp.gif) right 26px no-repeat, #fff', border : '#744e27 1px solid' }); faqChk = 1+String(index); } else { //$('.list-faq dd').slideUp(300, 'easeOutQuad'); $('.list-faq > dl > dd').eq(index).slideUp(300, 'easeOutQuad'); $('.list-faq > dl > dt').eq(index).css({ color : '#777', background : 'url(../../img/images/btnIcn/icn_faq_q2.gif) 20px 20px no-repeat, url(../../img/images/btnIcn/icn_arrDown.gif) right 26px no-repeat, #fff', border : '#e5e5e5 1px solid' }); faqChk = 0+String(index); } }); }); });