PageSourceSearch

https://www.jsw.pl/typo3conf/ext/simple_slick/Resources/Public/JavaScript/slick-init.js?1773623222

js jsw.pl collected 2026-10-02 04:24:44 UTC 1,108 bytes, 27 lines download raw bytes

1(function($) {
2    'use strict';
3    $(document).ready(function() {
4        $('.slick-carousel').each(function() {
5            var $element = $(this);
6            var settingsAttr = $element.attr('settings');
7            var settings = {};
8            if (settingsAttr) {
9                try {
10                    // Próba naprawy formatu jeśli nie jest to poprawny JSON (np. brakuje cudzysłowów wokół kluczy)
11                    var jsonString = settingsAttr
12                        .replace(/([{,])\s*([a-zA-Z0-9_]+)\s*:/g, '$1"$2":') // Dodaj cudzysłowy do kluczy
13                        .replace(/'/g, '"') // Zamień pojedyncze cudzysłowy na podwójne
14                        .replace(/"(asNavFor)":\s*"(#[a-zA-Z0-9_-]+)"/g, '"$1":"$2"'); // Upewnij się, że selektory CSS w asNavFor są w cudzysłowach
15
16                    settings = JSON.parse(jsonString);
17                } catch (e) {
18                    console.error('Błąd parsowania ustawień Slick dla elementu:', $element, e);
19                }
20            }
21
22            $element.slick(settings);
23        });
24    });
25})(jQuery);
26
27

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.