;(function () { // animate-box /*var contentWayPoint = function() { $('.animate-box').waypoint( function( direction ) { if( direction === 'down' && !$(this).hasClass('animated') ) { $(this.element).addClass('fadeInUp animated'); } } , { offset: '75%' } ); };*/ //aco menu /*$(window).resize(function () { if (window.innerWidth <= 991) { //console.log(window.innerWidth); $('.mainmenu ul ul > li > .dis_a').on("click", function (e) { e.preventDefault(); }); } else if(window.innerWidth >= 991){ //console.log(window.innerWidth); $('.mainmenu ul ul > li > .dis_a').unbind(); } });*/ // Burger Menu var burgerMenu = function() { $('body').on('click', '.js-fh5co-nav-toggle', function(event){ if ( $('#navbar').is(':visible') ) { $(this).removeClass('active'); } else { $(this).addClass('active'); } event.preventDefault(); }); }; // Reflect scrolling in navigation var navActive = function(section) { var $el = $('#navbar > ul'); $el.find('li').removeClass('active'); $el.each(function(){ $(this).find('a[data-nav-section="'+section+'"]').closest('li').addClass('active'); }); }; // Window Scroll var windowScroll = function() { var lastScrollTop = 0; $(window).scroll(function(event){ var header = $('#fh5co-header'), scrlTop = $(this).scrollTop(); if ( scrlTop > 500 && scrlTop <= 2000 ) { header.addClass('navbar-fixed-top fh5co-animated slideInDown'); } else if ( scrlTop <= 500) { if ( header.hasClass('navbar-fixed-top') ) { header.addClass('navbar-fixed-top fh5co-animated slideOutUp'); setTimeout(function(){ header.removeClass('navbar-fixed-top fh5co-animated slideInDown slideOutUp'); }, 100 ); } } }); }; // Animations // About Us var aboutAnimate = function() { if ( $('#about-us').length > 0 ) { $('#about-us .to-animate').each(function( k ) { var el = $(this); setTimeout ( function () { el.addClass('fadeInUp animated'); }, k * 200, 'easeInOutExpo' ); }); } }; // Team var teamAnimate = function() { if ( $('#team').length > 0 ) { $('#team .to-animate').each(function( k ) { var el = $(this); setTimeout ( function () { el.addClass('fadeInUp animated'); }, k * 200, 'easeInOutExpo' ); }); } }; var teamWayPoint = function() { if ( $('#team').length > 0 ) { $('#team').waypoint( function( direction ) { if( direction === 'down' && !$(this).hasClass('animated') ) { setTimeout(teamAnimate, 200); $(this.element).addClass('animated'); } } , { offset: '95%' } ); } }; // Services var servicesAnimate = function() { if ( $('#fh5co-our-services').length > 0 ) { $('#fh5co-our-services .to-animate').each(function( k ) { var el = $(this); setTimeout ( function () { el.addClass('fadeInUp animated'); }, k * 200, 'easeInOutExpo' ); }); } }; var servicesWayPoint = function() { if ( $('#fh5co-our-services').length > 0 ) { $('#fh5co-our-services').waypoint( function( direction ) { if( direction === 'down' && !$(this).hasClass('animated') ) { setTimeout(servicesAnimate, 200); $(this.element).addClass('animated'); } } , { offset: '95%' } ); } }; // Features var featuresAnimate = function() { if ( $('#fh5co-features').length > 0 ) { $('#fh5co-features .to-animate').each(function( k ) { var el = $(this); setTimeout ( function () { el.addClass('fadeInUp animated'); }, k * 200, 'easeInOutExpo' ); }); } }; var featuresWayPoint = function() { if ( $('#fh5co-features').length > 0 ) { $('#fh5co-features').waypoint( function( direction ) { if( direction === 'down' && !$(this).hasClass('animated') ) { setTimeout(function(){ $('.animate-features-1').addClass('animated fadeIn'); }, 100); setTimeout(function(){ $('.animate-features-2').addClass('animated fadeIn'); }, 200); setTimeout(featuresAnimate, 500); setTimeout(function(){ $('.animate-features-3').addClass('animated fadeInUp'); }, 1400); $(this.element).addClass('animated'); } } , { offset: '95%' } ); } }; // testimonials var testimonialsAnimate = function() { if ( $('#fh5co-testimonials').length > 0 ) { $('#fh5co-testimonials .to-animate').each(function( k ) { var el = $(this); setTimeout ( function () { el.addClass('fadeInUp animated'); }, k * 200, 'easeInOutExpo' ); }); } }; var testimonialsWayPoint = function() { if ( $('#fh5co-testimonials').length > 0 ) { $('#fh5co-testimonials').waypoint( function( direction ) { setTimeout(testimonialsAnimate, 200); $(this.element).addClass('animated'); } , { offset: '95%' } ); } }; // Pricing var pricingAnimate = function() { if ( $('#fh5co-pricing').length > 0 ) { $('#fh5co-pricing .to-animate').each(function( k ) { var el = $(this); setTimeout ( function () { el.addClass('fadeInUp animated'); }, k * 200, 'easeInOutExpo' ); }); } }; var pricingWayPoint = function() { if ( $('#fh5co-pricing').length > 0 ) { $('#fh5co-pricing').waypoint( function( direction ) { setTimeout(function(){ $('.animate-pricing-1').addClass('animated fadeIn'); }, 200); setTimeout(function(){ $('.animate-pricing-2').addClass('animated fadeIn'); }, 300); setTimeout(pricingAnimate, 700); $(this.element).addClass('animated'); } , { offset: '95%' } ); } }; // Pricing var pressAnimate = function() { if ( $('#fh5co-press').length > 0 ) { $('#fh5co-press .to-animate').each(function( k ) { var el = $(this); setTimeout ( function () { el.addClass('fadeInUp animated'); }, k * 200, 'easeInOutExpo' ); }); } }; var pressWayPoint = function() { if ( $('#fh5co-press').length > 0 ) { $('#fh5co-press').waypoint( function( direction ) { setTimeout(function(){ $('.animate-press-1').addClass('animated fadeIn'); }, 200); setTimeout(function(){ $('.animate-press-2').addClass('animated fadeIn'); }, 300); setTimeout(pressAnimate, 700); $(this.element).addClass('animated'); } , { offset: '95%' } ); } }; // Document on load. $(function(){ burgerMenu(); windowScroll(); teamWayPoint(); servicesWayPoint(); featuresWayPoint(); testimonialsWayPoint(); pricingWayPoint(); pressWayPoint(); }); }()); $(document).ready(function () { if ($(window).width() < 991) { //태블릿-모바일 환경 $(".mainmenu > ul > li > ul > li > ul").hide(); $(".mainmenu > ul > li > ul > li").click(function () { $(this).children(".mainmenu > ul > li > ul > li > ul").slideToggle(); }) } }); $(document).ready(function () { $(".pageMenu .sub_titmenu").hide(); $(".pageMenu > ul > li").click(function () { $(this).children(".sub_titmenu").slideToggle(); $(".pageMenu > ul > li").not($(this)).children(".sub_titmenu").slideUp("slow"); }); }); $(document).ready(function () { $(".de63 .close_btns").hide(); $(".de63 .more_btns").click(function () { $(".de63 .pdt_line p").css({ "-webkit-line-clamp": "inherit" }); $(".de63 .more_btns").hide(); $(".de63 .close_btns").show(); }); $(".de63 .close_btns").click(function () { $(".de63 .pdt_line p").css({ "-webkit-line-clamp": "8" }); $(".de63 .close_btns").hide(); $(".de63 .more_btns").show(); }); }); $(document).ready(function () { $(".de63 .close_btns2").hide(); $(".de63 .pdt_line ul li dl dd table").hide(); $(".de63 .more_btns2").click(function () { $(".de63 .pdt_line ul li dl dd table").show(); $(".de63 .more_btns2").hide(); $(".de63 .close_btns2").show(); }); $(".de63 .close_btns2").click(function () { $(".de63 .pdt_line ul li dl dd table").hide(); $(".de63 .close_btns2").hide(); $(".de63 .more_btns2").show(); }); }); $(document).ready(function () { $('.de66 .trigger').on('click', function () { $('.de66 .modal-wrapper').toggleClass('open'); $('.de66 .page-wrapper').toggleClass('blur-it'); return false; }); }); $(document).ready(function () { $('.de66 .trigger2').on('click', function () { $('.de66 .modal-wrapper2').toggleClass('open2'); $('.de66 .page-wrapper2').toggleClass('blur-it'); return false; }); }); $(document).ready(function () { $(function () { $('.form_mid').hide(); $('.form_left').click(function () { $('.form_bar').animate({ "right": "0px", "opacity": "1" }); $('.form_mid').show(); $('.form_left').hide(); }), $('.form_mid').click(function () { $(".form_bar").animate({ "right": "-460px" }); $('.form_mid').hide(); $('.form_left').show(); }); }); }); /* de1001 : 하단폼메일 */ $(document).ready(function () { $(".de1001 .con .left").click(function () { $(".de1001 .con .left p").toggle(); $(".de1001 .con").toggleClass("on"); }); });