PageSourceSearch

https://spasstower.ru/local/js/controllers/partial/slider/partners.js

js spasstower.ru collected 2026-10-02 04:45:00 UTC 1,886 bytes, 49 lines download raw bytes

1(function ($, APP) {
2    'use strict';
3
4    APP.Controls.Partial.Slider.Partners = APP.Controls.Partial.Slider.BaseWithArrow.extend(
5        {},
6        {
7            init: function () {
8                var slides = this.element.find(this.options.slides).children();
9                if (slides.length && slides.length % 2 == 0 ) {
10                    $('<div/>').insertAfter(slides.eq((slides.length / 2) - 1));
11                    slides = this.element.find(this.options.slides).children();
12                }
13
14                var initialSlide = Math.floor((slides.length - 1) / 2);
15
16                this._super({
17                    additionalParams: {
18                        infinite: true,
19                        arrows: true,
20                        slidesToShow: 6,
21                        centerMode: true,
22                        initialSlide: Math.max(initialSlide, 0),
23                        variableWidth: true,
24                        prevArrow: this.element.find(this.options.navPrev),
25                        nextArrow: this.element.find(this.options.navNext),
26
27                        responsive: [
28                            {
29                                breakpoint: APP.Helper.responsiveConst.maxSm,
30                                settings: {
31                                    slidesToShow: 1,
32                                    variableWidth: false
33                                }
34                            },
35                            {
36                                breakpoint: APP.Helper.responsiveConst.maxMd,
37                                settings: {
38                                    slidesToShow: 3,
39                                    variableWidth: false
40                                }
41                            }
42                        ]
43                    }
44                });
45            }
46        }
47    );
48
49})(jQuery, APP);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.