$(‘._to_out’).click(function(){
ga(‘send’, ‘event’, ‘maniax’, $(this).data(‘action’), $(this).data(‘label’), {‘nonInteraction’: 1});
});
});
parent-product-id=””
is-translation-parent=””
more-load=””
sort-in-page=””
is-simplified=”true”
:show-review-snippet=”false”
>
var endpoint = ‘https://www.dlsite.com/maniax/work/matome/ajax/=/product_id/RJ01549700.html’;
$.get(endpoint).then(function(res){
// html適用
$(‘._work_matome’).html(res);
if (document.getElementById(‘matome-swiper’) != null) {
// Swiper4系
var swiper = new Swiper(‘#matome-swiper’, {
slidesPerView: 6,
slidesPerGroup: 6,
spaceBetween: 20,
watchSlidesVisibility: true,
navigation: {
nextEl: ‘.swiper-button-next.type-matome’,
prevEl: ‘.swiper-button-prev.type-matome’,
},
preloadImages: false,
lazy: true,
breakpoints: {
1900: {
slidesPerView: 5,
slidesPerGroup: 5,
},
1620: {
slidesPerView: 4,
slidesPerGroup: 4,
},
1390: {
slidesPerView: 3,
slidesPerGroup: 3,
},
1150: {
slidesPerGroup: 2,
slidesPerView: 2,
}
}
});
var target_rect = document.getElementById(‘matome-swiper’).getBoundingClientRect();
if (0 < target_rect.top && target_rect.bottom <= window.innerHeight) {
swiper.lazy.load();
window.removeEventListener(‘scroll’, scrollIn, false);
}
};
window.addEventListener(‘scroll’, scrollIn, false);
}
});
});





