PageSourceSearch

https://metropoliten.by/local/templates/aspro-allcorp3/components/bitrix/news.list/brands-list/script.js

js metropoliten.by collected 2026-10-02 03:22:57 UTC 761 bytes, 24 lines download raw bytes

1BX.addCustomEvent('onSetSliderOptions', function(options) {
2    if (options.type && options.type === 'main_brands') {
3        if (!options.on) {
4            options.on = {};
5        }
6
7        options.on.init = function(swiper) {
8            if (swiper.navigation.nextEl) {
9                swiper.navigation.nextEl.style.display = ''
10            }
11            if (swiper.navigation.prevEl) {
12                swiper.navigation.prevEl.style.display = ''
13            }
14        }
15
16        options.on.lock = function (swiper) {
17            swiper.wrapperEl.classList.add('brand-list__items--centered');
18        }
19        
20        options.on.unlock = function (swiper) {
21            swiper.wrapperEl.classList.remove('brand-list__items--centered');
22        }
23    }
24})

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.