1function setupProductPageImgCarousel() { 2 $('.wsp-product-image-viewer').addClass("owl-carousel owl-theme").owlCarousel({ 3 loop: true, 4 margin: 10, 5 responsive: { 6 0: { 7 items: 1 8 } 9 } 10 }); 11 12} 13 14function setupQtyButtons() { 15 $("body").on("click", ".bfm-qty-minus, .bfm-qty-plus", function () { 16 var input = $(this).siblings(".bfm-qty-input"); 17 var val = parseInt(input.val()) || 1; 18 var min = parseInt(input.attr("min")) || 1; 19 if ($(this).hasClass("bfm-qty-minus")) { 20 val = Math.max(min, val - 1); 21 } else { 22 val = val + 1; 23 } 24 input.val(val); 25 }); 26} 27 28$(document).ready(function () { 29 setupProductPageImgCarousel(); 30 setupQtyButtons(); 31});
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.