$(function(){ $(window).resize(function(){ // ����� �޴� var ww = parseInt($('body').width()); if (ww > 480) { $('#gnb .gnb').show(); } }); // $('#gnb_sw').click(function(){ // $("#header").toggleClass("on"); // $(this).siblings('ul').slideToggle(60); // }); $('.flexslider').flexslider({ // ���� ������ animation: "slide", animationLoop: false, directionNav: true, touch: true, slideshow: false }); // $('#galleryslider').flexslider({ // ��ǰ ������ // animation: "slide", // controlNav: "thumbnails", // directionNav: false, // slideshow: false, // animationLoop: false, // before: function(){ // $('.video_box .yt_video, .video_box .mg_video').remove(); // } // }); $('.video_box a').click(function(e){ e.preventDefault(); // ��Ʃ�� ������ ��� if($(this).hasClass('yt')){ open_yt($(this)); return; } else { // �⺻�� ���� ���� open_mg($(this)); } }); /* ��Ʃ�� ���� �ε��ϱ� */ function open_yt($this) { var yt_video_src = $this.attr('href'); var yt_video_hd = '&vq=hd720'; //var yt_video_hd; var yt_video_tag = ""; $this.parent().prepend(yt_video_tag).load(); // IE���� prepend ���׷� load�� ��ȣ�� } // ���� ���� �ε��ϱ� function open_mg($this) { var mg_video_src = $this.attr('href'); //var mg_video_hd; var mg_video_tag = ""; $this.parent().prepend(mg_video_tag).load(); // IE���� prepend ���׷� load�� ��ȣ�� } $('.aboutslider').flexslider({ // ��ٿ� ������ animation: "fade", directionNav: false, controlNav:false, slideshow: true, slideshowSpeed: 4000 }); $('#gnb li a[href="#more"]').click(function(e){// landscape ������ �޴� ��� $(this).siblings('.more_menu').toggle(); e.preventDefault(); }); $('.skil_txt').css('opacity','0'); // ��ٿ� ������ ���� $(window).on("load", function() { $('.our_skil li').hover( function () { if( $(this).children('.skil_txt').hasClass('_ing') ){ return false; } $(this).children('.skil_txt').stop().animate({'opacity':'1'}); $(this).children('.skil_img').stop().animate({'opacity':'0'}); }, function (){ $(this).children('.skil_img').stop().animate({'opacity':'1'}); $(this).children('.skil_txt').stop().animate({'opacity':'0'}).removeClass('_ing'); } ); }) var $form_input = $('.form_wrap input, .form_wrap textarea'); // Contact �޼��� $form_input.bind({ 'focus': function(){ $(this).parent().removeClass('error').addClass('focus'); }, 'blur': function(){ var form_val = $(this).val(); $(this).parent().removeClass('focus').removeClass('error'); if (form_val == '') { $(this).parent().addClass('error') } } }); // �� ����ȭ $('ul.tabs_active').each(function(){ var $active, $content, $links = $(this).find('a'); $active = $links.first().addClass('on'); $content = $($active.attr('href')); $links.not(':first').each(function () { $($(this).attr('href')).hide(); }); $(this).on('click', 'a', function(e){ $active.removeClass('on'); $content.hide(); $active = $(this); $content = $($(this).attr('href')); $active.addClass('on'); $content.show(); e.preventDefault(); }); }); window.onload = function () { //�귣�� �����̴� $('.brand_slider').css("opacity","1"); } $('.brand_slider').bxSlider({ pager: true, mode:"fade", hideControlOnEnd:true, infiniteLoop:false, }); //������ �ϴ� ��ư $(".btn_past").click(function() { $(".tab_history .tab_past").trigger("click"); }); $(".btn_now").click(function() { $(".tab_history .tab_now").trigger("click"); }); // // $(".btn_bottom").click(function() { // var top=$(".brand").offset().top-100; // $('html, body').stop().animate({scrollTop: '-='+top+'px'}, 300); // }); });