$(function () { $(".main-visual-slide").slick({ slidesToShow: 1, autoplay: false, infinity: true, speed: 1000 }) if ($.exists('#mainVisual.full-height')) { mainVisualHeight(); $(window).on('resize', mainVisualHeight); function mainVisualHeight() { var visual_height = getWindowHeight() var nav_height = $("#header").height(); // header媛� fixed or absolute�쇨꼍�� - $("#header").height() ��젣 var video_height = visual_height - nav_height; if (getWindowWidth() > 800) { $("#mainVisual").height(video_height); } else { $("#mainVisual").css("height", "auto"); } } } /* UTIL WRAP */ $(".language-current").click(function () { $(this).siblings(".global-list").stop().slideToggle(); }) $(".main-product-slide").each(function () { var $productSlide = $(this); $productSlide.on('init', function (event, slick) { $(".main-product-item").removeClass("first") }); $productSlide.slick({ slide: 'div', slidesToShow: 1, slidesToScroll: 1, autoplay: false, infinite: true, speed: 1200, dots: true, draggable: true, centerMode: true, centerPadding: '20px', prevArrow: '.main-product-controls .prev-btn', nextArrow: '.main-product-controls .next-btn', }) }) })