お客様のDXの推進やクラウド活用をサポートする
NRIグループのプロフェッショナルによるブログ記事を掲載

'); const slideLength = document.querySelectorAll('.swiper-container .swiper-slide').length; if (slideLength < 2) { $('.main-slider-wrap .swiper-container .swiper-button-prev').addClass('disp-none'); $('.main-slider-wrap .swiper-container .swiper-button-next').addClass('disp-none'); if (slideLength == 0) { $('.main-slider-wrap').addClass('padd-none'); } else { $('.main-slider-wrap').removeClass('padd-none'); var mySwiper = new Swiper('#header-modules .swiper-container', { slidesPerView: 1, loop: false, loopFillGroupWithBlank : false, loopAdditionalSlides: 1, centeredSlides: true, on: { resize: function () { $('.home-pickup .slide').tile(); }, } }); } } else { $('.main-slider-wrap .swiper-container .swiper-button-prev').removeClass('disp-none'); $('.main-slider-wrap .swiper-container .swiper-button-next').removeClass('disp-none'); $('.main-slider-wrap').removeClass('padd-none'); var mySwiper = new Swiper('#header-modules .swiper-container', { navigation: { nextEl: '#header-modules .swiper-button-next', prevEl: '#header-modules .swiper-button-prev', }, slidesPerView: 1, spaceBetween: 16, loop: true, loopFillGroupWithBlank : false, loopAdditionalSlides: 1, centeredSlides: true, on: { resize: function () { $('.home-pickup .slide').tile(); }, } }); } $(function() { $('.home-pickup .slide').tile(); }); $('#loading').fadeOut(); })(jQuery);