{"size": 1838, "ext": "js", "max_stars_repo_path": "public/src/js/bundle/functions/slicks.js", "max_stars_repo_name": "mateusz-peczkowski/jamp-cms", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/src/js/bundle/functions/slicks.js", "max_issues_repo_name": "mateusz-peczkowski/jamp-cms", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/src/js/bundle/functions/slicks.js", "max_forks_repo_name": "mateusz-peczkowski/jamp-cms", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.4328358209, "max_line_length": 114, "alphanum_fraction": 0.4107725789}
export function horizontal($sliders, slidesNo, infinite, autoplay, arrows, dots) {
    'use strict';

    slidesNo = slidesNo || 3;
    autoplay = autoplay || false;
    arrows = arrows || false;
    dots = dots || false;
    let slidesRes = slidesNo-1;
    let slidesRes2 = slidesNo-2;
    if (slidesRes < 1) {
        slidesRes = 1;
    }
    if (slidesRes2 < 1) {
        slidesRes2 = 1;
    }

    infinite = infinite || false;

    if ($sliders.length) {

        $sliders.each(function() {

            let $slider = $(this);

            $slider.on('afterChange', function(){
                $(window).trigger('scroll');
            });

            if (!$slider.hasClass('slick-initialized')) {

                $slider.slick({
                    accessibility: false,
                    autoplay: autoplay,
                    autoplaySpeed: 3000,
                    arrows: arrows,
                    dots: dots,
                    fade: false,
                    infinite: infinite,
                    pauseOnHover: false,
                    slidesToShow: slidesNo,
                    speed: 500,
                    prevArrow: '<button class="slick-prev"><i class="icon icon-arrow-normal-left"></i></button>',
                    nextArrow: '<button class="slick-next"><i class="icon icon-arrow-normal-right"></i></button>',
                    responsive: [
                    {
                      breakpoint: 768,
                      settings: {
                        slidesToShow: slidesRes
                      }
                    },
                    {
                      breakpoint: 480,
                      settings: {
                        slidesToShow: slidesRes2
                      }
                    }
                  ]
                });

            }

        });

    }

}
