function carousel_company() {
var window_width = $(window).width();
if (window_width > 992) {
$('.js-brand-carousel-company').slick({
arrows: false,
slidesToShow: 3,
slidesToScroll: 3
});
console.log(window_width)
} else if (window_width <= 991) {
$('.js-brand-carousel-company').slick({
dots: true,
slidesToShow: 1,
slidesToScroll: 1,
});
}
}
$(document).ready(function(){
carousel_company();
});
$('#recomendationsSlider').slick({
autoplay: false,
slidesToShow: 4,
arrows: true,
dots:false,
lazyLoad: 'ondemand',
responsive: [
{
breakpoint: 1200,
settings: {
slidesToShow: 3,
slidesToScroll: 3,
infinite: true,
}
},
{
breakpoint: 992,
settings: {
slidesToShow: 2,
slidesToScroll: 2
}
},
{
breakpoint: 580,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
// You can unslick at a given breakpoint now by adding:
// settings: "unslick"
// instead of a settings object
],
nextArrow: $('.arrow-right'),
prevArrow: $('.arrow-left'),
});