|
@@ -836,11 +836,11 @@ if ( (navigator.appName == 'Netscape' && agent.indexOf('trident') != -1) || (age
|
|
|
loop: true,
|
|
loop: true,
|
|
|
slidesPerView: 'auto',
|
|
slidesPerView: 'auto',
|
|
|
spaceBetween: 100,
|
|
spaceBetween: 100,
|
|
|
-
|
|
|
|
|
- // initialSlide: 0,
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // initialSlide: 0,
|
|
|
// 초기 슬라이드의 색인 번호입니다
|
|
// 초기 슬라이드의 색인 번호입니다
|
|
|
centeredSlides: true,
|
|
centeredSlides: true,
|
|
|
- // slidesOffsetBefore: 250,
|
|
|
|
|
|
|
+ // slidesOffsetBefore: 250,
|
|
|
// 컨테이너 시작 부분 (모든 슬라이드 이전)에 슬라이드 오프셋 추가 (픽셀 단위)
|
|
// 컨테이너 시작 부분 (모든 슬라이드 이전)에 슬라이드 오프셋 추가 (픽셀 단위)
|
|
|
speed : 1000,
|
|
speed : 1000,
|
|
|
// Navigation arrows
|
|
// Navigation arrows
|
|
@@ -865,11 +865,11 @@ if ( (navigator.appName == 'Netscape' && agent.indexOf('trident') != -1) || (age
|
|
|
loop: true,
|
|
loop: true,
|
|
|
slidesPerView: 'auto',
|
|
slidesPerView: 'auto',
|
|
|
spaceBetween: 70,
|
|
spaceBetween: 70,
|
|
|
-
|
|
|
|
|
- // initialSlide: 0,
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // initialSlide: 0,
|
|
|
// 초기 슬라이드의 색인 번호입니다
|
|
// 초기 슬라이드의 색인 번호입니다
|
|
|
centeredSlides: true,
|
|
centeredSlides: true,
|
|
|
- // slidesOffsetBefore: 250,
|
|
|
|
|
|
|
+ // slidesOffsetBefore: 250,
|
|
|
// 컨테이너 시작 부분 (모든 슬라이드 이전)에 슬라이드 오프셋 추가 (픽셀 단위)
|
|
// 컨테이너 시작 부분 (모든 슬라이드 이전)에 슬라이드 오프셋 추가 (픽셀 단위)
|
|
|
speed : 1000,
|
|
speed : 1000,
|
|
|
// Navigation arrows
|
|
// Navigation arrows
|
|
@@ -929,22 +929,22 @@ var main_trendy_slide = new Swiper('.main_trendy .post-trendy', {
|
|
|
main_trendy_slide.on('slideChange', function () {
|
|
main_trendy_slide.on('slideChange', function () {
|
|
|
var newitemIndex = main_trendy_slide.activeIndex;
|
|
var newitemIndex = main_trendy_slide.activeIndex;
|
|
|
var slideWidth = $(".main_trendy .swiper-slide-visible").eq(0).width() + 22;
|
|
var slideWidth = $(".main_trendy .swiper-slide-visible").eq(0).width() + 22;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$(".main_trendy .swiper-slide").removeClass('scaleBig');
|
|
$(".main_trendy .swiper-slide").removeClass('scaleBig');
|
|
|
$(".main_trendy .swiper-slide-visible").eq(0).addClass('scaleBig');
|
|
$(".main_trendy .swiper-slide-visible").eq(0).addClass('scaleBig');
|
|
|
$(".main_trendy .swiper-slide-visible").eq(3).addClass('scaleBig');
|
|
$(".main_trendy .swiper-slide-visible").eq(3).addClass('scaleBig');
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$(".main_trendy .swiper-wrapper").css("transform","translateX(-"+ (slideWidth * newitemIndex) +"px)");
|
|
$(".main_trendy .swiper-wrapper").css("transform","translateX(-"+ (slideWidth * newitemIndex) +"px)");
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
main_trendy_slide.on('reachEnd', function () {
|
|
main_trendy_slide.on('reachEnd', function () {
|
|
|
var newitemIndex = main_trendy_slide.activeIndex + 1;
|
|
var newitemIndex = main_trendy_slide.activeIndex + 1;
|
|
|
var slideWidth = $(".main_trendy .swiper-slide-visible").eq(0).width() + 22;
|
|
var slideWidth = $(".main_trendy .swiper-slide-visible").eq(0).width() + 22;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$(".main_trendy .swiper-slide").removeClass('scaleBig');
|
|
$(".main_trendy .swiper-slide").removeClass('scaleBig');
|
|
|
$(".main_trendy .swiper-slide-visible").eq(1).addClass('scaleBig');
|
|
$(".main_trendy .swiper-slide-visible").eq(1).addClass('scaleBig');
|
|
|
$(".main_trendy .swiper-slide-visible").eq(4).addClass('scaleBig');
|
|
$(".main_trendy .swiper-slide-visible").eq(4).addClass('scaleBig');
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$(".main_trendy .swiper-wrapper").css("transform","translateX(-"+ (slideWidth * newitemIndex) +"px)");
|
|
$(".main_trendy .swiper-wrapper").css("transform","translateX(-"+ (slideWidth * newitemIndex) +"px)");
|
|
|
function l(n) {
|
|
function l(n) {
|
|
|
if (n.direction !== "none")
|
|
if (n.direction !== "none")
|
|
@@ -1095,9 +1095,9 @@ $(".main_recomm .tag_list .btn").click(function(){
|
|
|
$('#'+recommActive).addClass('active');
|
|
$('#'+recommActive).addClass('active');
|
|
|
});
|
|
});
|
|
|
function init(){
|
|
function init(){
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if(main_recomm_slide != null) main_recomm_slide.destroy();
|
|
if(main_recomm_slide != null) main_recomm_slide.destroy();
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
var main_recomm_slide = new Swiper ('.main_recomm .post-recomm', {
|
|
var main_recomm_slide = new Swiper ('.main_recomm .post-recomm', {
|
|
|
slidesPerView: 5,
|
|
slidesPerView: 5,
|
|
|
slidesPerGroup: 5,
|
|
slidesPerGroup: 5,
|
|
@@ -1120,9 +1120,10 @@ function init(){
|
|
|
init();
|
|
init();
|
|
|
|
|
|
|
|
/* SLIDE - MAIN_FORYOU */
|
|
/* SLIDE - MAIN_FORYOU */
|
|
|
|
|
+var cntNum = 0;
|
|
|
var main_foryou_slide = new Swiper ('.main_foryou .post-sug .swiper-container', {
|
|
var main_foryou_slide = new Swiper ('.main_foryou .post-sug .swiper-container', {
|
|
|
allowTouchMove: false,
|
|
allowTouchMove: false,
|
|
|
- loop: true,
|
|
|
|
|
|
|
+ loop: false,
|
|
|
effect: 'fade',
|
|
effect: 'fade',
|
|
|
autoHeight: false,
|
|
autoHeight: false,
|
|
|
autoplay: {
|
|
autoplay: {
|
|
@@ -1133,7 +1134,28 @@ var main_foryou_slide = new Swiper ('.main_foryou .post-sug .swiper-container',
|
|
|
el: '.post-sug .swiper-pagination',
|
|
el: '.post-sug .swiper-pagination',
|
|
|
clickable: true,
|
|
clickable: true,
|
|
|
},
|
|
},
|
|
|
|
|
+ on : {
|
|
|
|
|
+ slideChange: function(){
|
|
|
|
|
+ $(".fy_nav .swiper-slide li").children('.btn_shape').removeClass('active');
|
|
|
|
|
+ $(".fy_nav .swiper-slide-next li").eq(0).children('.btn_shape').addClass('active');
|
|
|
|
|
+ $(".fy_nav .swiper-slide-prev li").eq(0).children('.btn_shape').addClass('active');
|
|
|
|
|
+ foryouIndex = -1;
|
|
|
|
|
+ if(cntNum === 0){
|
|
|
|
|
+ $('.fy_item').removeClass('active');
|
|
|
|
|
+ $('#fy6').addClass('active');
|
|
|
|
|
+ cntNum = 1;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $('.fy_item').removeClass('active');
|
|
|
|
|
+ $('#fy1').addClass('active');
|
|
|
|
|
+ cntNum = 0;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ clearInterval(ti);
|
|
|
|
|
+ ti = startTimeInterval();
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
function foryouInterval(_foryouIndex) {
|
|
function foryouInterval(_foryouIndex) {
|
|
|
var foryouCateItems = $(".main_foryou .fy_nav .swiper-slide-active ul li .btn_shape");
|
|
var foryouCateItems = $(".main_foryou .fy_nav .swiper-slide-active ul li .btn_shape");
|
|
|
$(foryouCateItems[(_foryouIndex + 1) % 5]).addClass("active");
|
|
$(foryouCateItems[(_foryouIndex + 1) % 5]).addClass("active");
|
|
@@ -1147,13 +1169,19 @@ function foryouFy_item(_Fy_itemIndex) {
|
|
|
// $(".fy_item").addClass('active');
|
|
// $(".fy_item").addClass('active');
|
|
|
$('#'+fyActive).addClass('active');
|
|
$('#'+fyActive).addClass('active');
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
var foryouIndex = 0;
|
|
var foryouIndex = 0;
|
|
|
-setInterval(function () {
|
|
|
|
|
- foryouInterval(foryouIndex);
|
|
|
|
|
- foryouFy_item();
|
|
|
|
|
- if (foryouIndex >= 5) foryouIndex = 0;
|
|
|
|
|
- foryouIndex++;
|
|
|
|
|
-}, 5000);
|
|
|
|
|
|
|
+var ti;
|
|
|
|
|
+function startTimeInterval() {
|
|
|
|
|
+ return setInterval(function () {
|
|
|
|
|
+ $(".fy_nav .btn_shape").removeClass('active');
|
|
|
|
|
+ $(".fy_item").removeClass('active');
|
|
|
|
|
+ foryouInterval(foryouIndex);
|
|
|
|
|
+ foryouFy_item();
|
|
|
|
|
+ if (foryouIndex >= 5) foryouIndex = 0;
|
|
|
|
|
+ foryouIndex++;
|
|
|
|
|
+ }, 5000);
|
|
|
|
|
+}
|
|
|
$(".fy_nav .btn_shape").click(function(){
|
|
$(".fy_nav .btn_shape").click(function(){
|
|
|
var fyActive = $(this).attr('data-tab');
|
|
var fyActive = $(this).attr('data-tab');
|
|
|
$(".fy_nav .btn_shape").removeClass('active');
|
|
$(".fy_nav .btn_shape").removeClass('active');
|
|
@@ -1162,6 +1190,13 @@ $(".fy_nav .btn_shape").click(function(){
|
|
|
$('#'+fyActive).addClass('active');
|
|
$('#'+fyActive).addClass('active');
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+$(".fy_nav ul li").click(function(){
|
|
|
|
|
+ foryouIndex = $(this).index();
|
|
|
|
|
+ clearInterval(ti);
|
|
|
|
|
+ ti = startTimeInterval();
|
|
|
|
|
+});
|
|
|
|
|
+
|
|
|
|
|
+ti = startTimeInterval();
|
|
|
|
|
|
|
|
/* SLIDE - MAIN_TV */
|
|
/* SLIDE - MAIN_TV */
|
|
|
var main_tv_slide = new Swiper ('.main_tv .post-tv', {
|
|
var main_tv_slide = new Swiper ('.main_tv .post-tv', {
|