1/* global fgf_carousel_params */ 2 3jQuery(function ($) { 4 'use strict'; 5 try { 6 7 $(document.body).on('fgf-enhanced-carousel', function ( ) { 8 9 var owl_carousels = $('.fgf-owl-carousel-items'); 10 if (!owl_carousels.length) { 11 return; 12 } 13 14 owl_carousels.each(function (e) { 15 $(this).owlCarousel({ 16 loop: true, 17 margin: parseInt(fgf_carousel_params.item_margin), 18 responsiveClass: true, 19 nav: ('true' === fgf_carousel_params.nav), 20 navText: [fgf_carousel_params.nav_prev_text, fgf_carousel_params.nav_next_text], 21 autoplay: ('true' === fgf_carousel_params.auto_play), 22 dots: ('true' === fgf_carousel_params.pagination), 23 slideBy: fgf_carousel_params.item_per_slide, 24 autoplayTimeout: fgf_carousel_params.slide_speed, 25 autoplayHoverPause: true, 26 responsive: { 27 0: { 28 items: fgf_carousel_params.mobile_count, 29 }, 30 600: { 31 items: fgf_carousel_params.tablet_count, 32 }, 33 1000: { 34 items: fgf_carousel_params.desktop_count, 35 } 36 } 37 }); 38 }); 39 }); 40 41 // Initialize carousel when cart updated. 42 $(document.body).on('updated_wc_div', function ( ) { 43 $(document.body).trigger('fgf-enhanced-carousel'); 44 }); 45 46 $(document.body).trigger('fgf-enhanced-carousel'); 47 48 } catch (err) { 49 window.console.log(err); 50 } 51 52});
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.