PageSourceSearch

https://kalibr.tech/themes/kalibr/js/kalibr-carousel-small.js?tmf5z3

js kalibr.tech collected 2026-10-06 16:24:14 UTC 979 bytes, 47 lines download raw bytes

1/**
2 * @file
3 * Kalibr behaviors.
4 */
5
6(function (Drupal) {
7
8  'use strict';
9
10  /**
11   * Run carousel.
12   */
13  Drupal.behaviors.kalibrCarouselSmall = {
14    attach: function (context, settings) {
15
16      let initSlider = function (slider) {
17
18        if (slider.dataset.tns) {
19          return;
20        }
21        slider.dataset.tns = true;
22
23        let container = slider.querySelector('[data-kalibr-tns]');
24        let navContainer = slider.querySelector('[data-kalibr-tns-navigation]');
25
26        tns({
27          container: container,
28          items: 1,
29          speed: 500,
30          mouseDrag: true,
31          autoplayButtonOutput: false,
32          prevButton: false,
33          nextButton: false,
34          controls: false,
35          navContainer: navContainer
36        });
37       }
38
39      let sliders = document.querySelectorAll('[data-kalibr-carousel-small]');
40      for (let i = 0; i < sliders.length; ++i) {
41        initSlider(sliders[i]);
42      }
43
44    }
45  };
46
47} (Drupal));

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.