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.