1 2jQuery(function ($) { 3 'use strict'; 4 try { 5 6 $(document.body).on('fgf-enhanced-lightcase', function ( ) { 7 8 var lightcases = $('.fgf-popup-gift-products'); 9 if (!lightcases.length) { 10 return; 11 } 12 13 $('.fgf-popup-gift-products').lightcase({ 14 href: '#fgf_gift_products_modal', 15 onFinish: { 16 foo: function () { 17 $('.fgf-owl-carousel-items').closest('#fgf_gift_products_modal').find('.owl-nav').remove(); 18 $('.fgf-owl-carousel-items').closest('#fgf_gift_products_modal').find('.owl-dots').remove(); 19 lightcase.resize(); 20 $(document.body).trigger('fgf-enhanced-carousel'); 21 $(document.body).trigger('fgf_lightcase_finished'); 22 } 23 }, 24 onClose: { 25 lc: function () { 26 $(document.body).trigger('fgf_lightcase_closed'); 27 } 28 } 29 }); 30 31 }); 32 33 /** 34 * Call to close light case popup. 35 * 36 * @since 12.4.0 37 */ 38 $(document.body).on('fgf_close_lightcase', function ( ) { 39 $('.lightcase-icon-close').trigger('click'); 40 }); 41 42 // Initialize carousel when cart updated. 43 $(document.body).on('updated_wc_div', function ( ) { 44 $(document.body).trigger('fgf-enhanced-lightcase'); 45 }); 46 47 // Initialize carousel when checkout updated. 48 $(document.body).on('updated_checkout', function ( ) { 49 $(document.body).trigger('fgf-enhanced-lightcase'); 50 }); 51 52 $(document.body).trigger('fgf-enhanced-lightcase'); 53 } catch (err) { 54 window.console.log(err); 55 } 56 57});
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.