'; } } } ) $jq('.ls-box-title-divider').css('display','block'); $jq('.slick-slider').html(html); [].forEach.call(document.querySelectorAll('img[data-srs]'), function(img) { img.setAttribute('src', img.getAttribute('data-srs')); img.onload = function() { img.removeAttribute('data-srs'); }; }); $jq('.slick-slider').slick({ dots: true, infinite: true, slidesToShow: 5, slidesToScroll: 5, responsive: [ { breakpoint: 1024, settings: { slidesToShow: 3, slidesToScroll: 3, infinite: true, dots: true } }, { breakpoint: 600, settings: { slidesToShow: 2, slidesToScroll: 2 } }, { breakpoint: 480, settings: { centerMode: true, variableWidth: true, slidesToShow: 2, slidesToScroll: 1 } } ] }); }, function(err) { console.log("Clarifai errors:",err); } ); } });//scroll });