PageSourceSearch

https://www.yakhin.ru/themes/block/slider_company/script.js?rand=112800

js yakhin.ru collected 2026-09-28 10:06:47 UTC 1,303 bytes, 50 lines download raw bytes

1(function () {
2  'use strict';
3
4  function initSliderCompany() {
5    if (typeof Swiper === 'undefined') {
6      return;
7    }
8
9    var sliders = document.querySelectorAll('.slider-company:not(.slider-company--ready)');
10
11    Array.prototype.forEach.call(sliders, function (slider) {
12      var container = slider.querySelector('.slider-company__container');
13      var next = slider.querySelector('.slider-company__next');
14      var prev = slider.querySelector('.slider-company__prev');
15      var pagination = slider.querySelector('.slider-company__pagination');
16
17      if (!container) {
18        return;
19      }
20
21      slider.classList.add('slider-company--ready');
22
23      new Swiper(container, {
24        slidesPerView: 1,
25        slidesPerGroup: 1,
26        spaceBetween: 0,
27        speed: 500,
28        watchOverflow: true,
29        autoplay: {
30          delay: 3000,
31          disableOnInteraction: false
32        },
33        navigation: next && prev ? {
34          nextEl: next,
35          prevEl: prev
36        } : false,
37        pagination: pagination ? {
38          el: pagination,
39          clickable: true
40        } : false
41      });
42    });
43  }
44
45  if (document.readyState === 'loading') {
46    document.addEventListener('DOMContentLoaded', initSliderCompany);
47  } else {
48    initSliderCompany();
49  }
50}());

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.