rujing

Untitled

Dec 25th, 2020
989
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function letSlide(){
  2.  
  3.   $('.product-item-detail-slider-controls-block').each(function(i, e){
  4.     if(!$(e).hasClass('active-slider-block') && $(e).hasClass('slick-slider'))
  5.     {    
  6.       $(e).slick('unslick');
  7.     }
  8.   });
  9.  
  10.   $(".product-item-detail-slider-controls-block.active-slider-block").slick({
  11.     infinite:!0,
  12.     slidesToShow:3,
  13.     slidesToScroll:1
  14.   })
  15.  
  16. }
  17.  
RAW Paste Data