1jQuery(document).ready(function ($) { 2 $('.ss-carousel--inner-container').each(function () { 3 var $carousel = $(this); 4 5 // Prevent duplicate initialization. 6 if ($carousel.hasClass('slick-initialized')) { 7 return; 8 } 9 10 var slideCount = $carousel.children().length; 11 12 // Do not initialize an empty carousel. 13 if (slideCount === 0) { 14 return; 15 } 16 17 // Clone slides when there are too few for the desktop layout. 18 if (slideCount === 2 || slideCount === 3) { 19 $carousel.append($carousel.children().clone()); 20 } 21 22 var renderedSlideCount = $carousel.children().length; 23 24 $carousel.slick({ 25 accessibility: true, 26 slidesToShow: Math.min(renderedSlideCount, 3), 27 slidesToScroll: 1, 28 arrows: renderedSlideCount > 1, 29 infinite: renderedSlideCount > 1, 30 draggable: renderedSlideCount > 1, 31 centerMode: renderedSlideCount > 1, 32 variableWidth: renderedSlideCount > 1, 33 dots: renderedSlideCount > 1, 34 dotsClass: 'promo-stories__dots', 35 36 responsive: [ 37 { 38 breakpoint: 992, 39 settings: { 40 arrows: false, 41 slidesToShow: 1, 42 variableWidth: false, 43 adaptiveHeight: true, 44 dots: renderedSlideCount > 1 45 } 46 }, 47 { 48 breakpoint: 575, 49 settings: { 50 centerMode: false, 51 arrows: false, 52 slidesToShow: 1, 53 variableWidth: false, 54 adaptiveHeight: true, 55 dots: renderedSlideCount > 1 56 } 57 } 58 ], 59 60 customPaging: function (slider, index) { 61 return ` 62 <button 63 type="button" 64 aria-label="Go to slide ${index + 1}"> 65 <span class="visually-hidden"> 66 Slide ${index + 1} 67 </span> 68 </button> 69 `; 70 }, 71 72 prevArrow: ` 73 <button 74 type="button" 75 class="promo-stories__arrow promo-stories__arrow--prev" 76 aria-label="Previous slide"> 77 <svg 78 width="28" 79 height="28"
80 viewBox="0 0 24 24" 81 stroke="currentColor" 82 stroke-width="2" 83 fill="none" 84 stroke-linecap="round" 85 stroke-linejoin="round" 86 aria-hidden="true" 87 focusable="false"> 88 <line x1="19" y1="12" x2="5" y2="12"></line> 89 <polyline points="12 19 5 12 12 5"></polyline> 90 </svg> 91 </button> 92 `, 93 94 nextArrow: ` 95 <button 96 type="button" 97 class="promo-stories__arrow promo-stories__arrow--next" 98 aria-label="Next slide"> 99 <svg 100 width="28" 101 height="28" 102 viewBox="0 0 24 24" 103 stroke="currentColor" 104 stroke-width="2" 105 fill="none" 106 stroke-linecap="round" 107 stroke-linejoin="round" 108 aria-hidden="true" 109 focusable="false"> 110 <line x1="5" y1="12" x2="19" y2="12"></line> 111 <polyline points="12 5 19 12 12 19"></polyline> 112 </svg> 113 </button> 114 ` 115 }); 116 }); 117});
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.