|
|
@@ -513,34 +513,60 @@
|
|
|
});
|
|
|
});
|
|
|
|
|
|
- //210624_ 추가 : 슬라이드 속성 추가.
|
|
|
+ //210728_ 수정 : 슬라이드 1개일때 자동롤링 멈춤.
|
|
|
// 서브비주얼 슬라이드
|
|
|
- var myArray = ["01", "02", "03"];
|
|
|
- var submainVisualSwiper = new Swiper('.swiper-container.submain_visual', {
|
|
|
- loop:true,
|
|
|
- //210414_자동롤링 추가
|
|
|
- speed: 1000,
|
|
|
- autoplay : {
|
|
|
- delay : 3000, // 시간 설정
|
|
|
- disableOnInteraction: false,
|
|
|
- },
|
|
|
- a11y: {
|
|
|
- enabled: true,
|
|
|
- notificationClass: 'swiper-notification',
|
|
|
- prevSlideMessage: '이전 슬라이드',
|
|
|
- nextSlideMessage: '다음 슬라이드',
|
|
|
- firstSlideMessage: '첫번째 슬라이드 입니다',
|
|
|
- lastSlideMessage: '마지막 슬라이드 입니다',
|
|
|
- paginationBulletMessage: '슬라이드 {{index}}로 이동',
|
|
|
- },
|
|
|
- pagination: {
|
|
|
- el: '.swiper-pagination',
|
|
|
- type: 'fraction',
|
|
|
- //renderCustom: function (swiper, current, total) {
|
|
|
- // return current + ' of ' + total;
|
|
|
- //}
|
|
|
- }
|
|
|
- });
|
|
|
+ var brCont = $('.submain_visual .swiper-slide');
|
|
|
+ var brLength = brCont.length;
|
|
|
+ if (brLength < 2) {
|
|
|
+ var submainVisualSwiper = new Swiper('.swiper-container.submain_visual', {
|
|
|
+ loop:false,
|
|
|
+ //210414_자동롤링 추가
|
|
|
+ speed: 1000,
|
|
|
+ watchOverflow: true,
|
|
|
+ a11y: {
|
|
|
+ enabled: true,
|
|
|
+ notificationClass: 'swiper-notification',
|
|
|
+ prevSlideMessage: '이전 슬라이드',
|
|
|
+ nextSlideMessage: '다음 슬라이드',
|
|
|
+ firstSlideMessage: '첫번째 슬라이드 입니다',
|
|
|
+ lastSlideMessage: '마지막 슬라이드 입니다',
|
|
|
+ paginationBulletMessage: '슬라이드 {{index}}로 이동',
|
|
|
+ },
|
|
|
+ pagination: {
|
|
|
+ el: '.swiper-pagination',
|
|
|
+ type: 'fraction',
|
|
|
+ //renderCustom: function (swiper, current, total) {
|
|
|
+ // return current + ' of ' + total;
|
|
|
+ //}
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ var submainVisualSwiper = new Swiper('.swiper-container.submain_visual', {
|
|
|
+ loop:true,
|
|
|
+ //210414_자동롤링 추가
|
|
|
+ speed: 1000,
|
|
|
+ autoplay : {
|
|
|
+ delay : 3000, // 시간 설정
|
|
|
+ disableOnInteraction: false,
|
|
|
+ },
|
|
|
+ a11y: {
|
|
|
+ enabled: true,
|
|
|
+ notificationClass: 'swiper-notification',
|
|
|
+ prevSlideMessage: '이전 슬라이드',
|
|
|
+ nextSlideMessage: '다음 슬라이드',
|
|
|
+ firstSlideMessage: '첫번째 슬라이드 입니다',
|
|
|
+ lastSlideMessage: '마지막 슬라이드 입니다',
|
|
|
+ paginationBulletMessage: '슬라이드 {{index}}로 이동',
|
|
|
+ },
|
|
|
+ pagination: {
|
|
|
+ el: '.swiper-pagination',
|
|
|
+ type: 'fraction',
|
|
|
+ //renderCustom: function (swiper, current, total) {
|
|
|
+ // return current + ' of ' + total;
|
|
|
+ //}
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
//210705_수정 : 기획전 배너 2개이상 등록시 슬라이드 각각 실행.
|
|
|
// post-bnnWide (210602_ 교체)
|