PageSourceSearch

https://www.3chi.com/wp-content/cache/min/1/wp-content/themes/flat…/flatsome-infinite-scroll.js?ver=1790090394

js 3chi.com collected 2026-09-25 23:51:38 UTC 2,706 bytes, 32 lines download raw bytes

1(function($){$.fn.flatsomeInfiniteScroll=function(){return this.each(function(){var $container=jQuery('.shop-container .products')
2var paginationNext='.woocommerce-pagination li a.next'
3if($container.length===0||jQuery(paginationNext).length===0||$container.hasClass('ux-infinite-scroll-js-attached')){return}
4var viewMoreButton=jQuery('button.view-more-button.products-archive')
5var byButton=flatsome_infinite_scroll.type==='button'
6var isMasonry=flatsome_infinite_scroll.list_style==='masonry'
7var outlayer=isMasonry?Packery.data($container[0]):!1
8var $infiScrollContainer=$container.infiniteScroll({path:paginationNext,append:'.shop-container .product',checkLastPage:!0,status:'.page-load-status',hideNav:'.archive .woocommerce-pagination',button:'.view-more-button',history:flatsome_infinite_scroll.history,historyTitle:!0,debug:!1,outlayer:outlayer,scrollThreshold:parseInt(flatsome_infinite_scroll.scroll_threshold)})
9if(byButton){viewMoreButton.removeClass('hidden')
10$infiScrollContainer.infiniteScroll('option',{scrollThreshold:!1,loadOnScroll:!1})}
11$infiScrollContainer.on('load.infiniteScroll',function(event,response,path){flatsomeInfiniteScroll.attachBehaviors(response)})
12$infiScrollContainer.on('request.infiniteScroll',function(event,path){if(byButton)viewMoreButton.addClass('loading')})
13$infiScrollContainer.on('append.infiniteScroll',function(event,response,path,items){jQuery(document).trigger('flatsome-infiniteScroll-append',[response,path,items])
14if(byButton)viewMoreButton.removeClass('loading')
15jQuery(items).find('img').each(function(index,img){img.outerHTML=img.outerHTML})
16jQuery(document).trigger('yith_wcwl_reload_fragments')
17jQuery(document).trigger('flatsome-equalize-box')
18Flatsome.attach('lazy-load-images',$container)
19flatsomeInfiniteScroll.animateNewItems(items)
20if(isMasonry){setTimeout(function(){$infiScrollContainer.imagesLoaded(function(){$infiScrollContainer.packery('layout')})},500)}
21if(window.ga&&ga.loaded&&typeof ga==='function'){var link=document.createElement('a')
22link.href=path
23ga('set','page',link.pathname)
24ga('send','pageview')}})
25var flatsomeInfiniteScroll={attachBehaviors:function(response){Flatsome.attach('quick-view',response)
26Flatsome.attach('tooltips',response)
27Flatsome.attach('add-qty',response)
28Flatsome.attach('wishlist',response)},animateNewItems:function(items){if(isMasonry)return
29jQuery(items).hide().fadeIn(parseInt(flatsome_infinite_scroll.fade_in_duration))}}
30$container.addClass('ux-infinite-scroll-js-attached')})}
31$(function(){$(document.body).flatsomeInfiniteScroll()
32$(document).on('facetwp-loaded yith-wcan-ajax-filtered experimental-flatsome-pjax-request-done',function(){$(document.body).flatsomeInfiniteScroll()})})})(jQuery)

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.