1$(function() { 2 var lenthOfblock = $(".module-insurance.style-4 .each-row .each-block").length; 3 if ( lenthOfblock <= 11 ) { 4 $('.module-insurance.style-4').addClass('block-count-' +lenthOfblock); 5 } else { 6 $('.module-insurance.style-4').addClass('block-count-slider-layout'); 7 } 8 9 var $span = $(".module-insurance.style-4.block-count-slider-layout .ry-flex .ry-each .insurance-wrapper .each-row .each-block"); 10 11 // Loop through all the spans 12 for (var i = 0; i < $span.length; i += 12) { 13 14 // Create dynamic div 15 var $div = $("<div/>", { 16 class: 'slider-item' 17 }); 18 19 // Wrap all the spans inside the div 20 $span.slice(i, i + 12).wrapAll($div); 21 } 22 setTimeout(function() { 23 $('.block-count-slider-layout .each-row').slick({ 24 slidesToScroll: 1, 25 arrows: true, 26 dots: true, 27 adaptiveHeight: true, 28 autoplay: true, 29 autoplaySpeed: 5000, 30 prevArrow: '<button class="slide-arrow prev-arrow"></button>', 31 nextArrow: '<button class="slide-arrow next-arrow"></button>' 32 33 }); 34 }, 200); 35 36});
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.