1(function($) { 2 $().on('facetwp-loaded', function() { 3 if (FWP.loaded && 'undefined' !== typeof elementorFrontend) { 4 jQuery('.facetwp-template, .facetwp-template .elementor-element').each(function() { 5 elementorFrontend.elementsHandler.runReadyTrigger( jQuery(this) ); 6 }); 7 } 8 }); 9 $().on('click', '.facetwp-template.elementor-widget-archive-posts .elementor-pagination a', function(e) { 10 e.preventDefault(); 11 var matches = $(this).attr('href').match(/\/page\/(\d+)/); 12 FWP.paged = null !== matches ? parseInt(matches[1]) : 1; 13 FWP.soft_refresh = true; 14 FWP.refresh(); 15 }); 16 $().on('click', '.facetwp-template.elementor-widget-posts .elementor-pagination a', function(e) { 17 e.preventDefault(); 18 var matches = $(this).attr('href').match(/\/(\d+)/); 19 FWP.paged = null !== matches ? parseInt(matches[1]) : 1; 20 FWP.soft_refresh = true; 21 FWP.refresh(); 22 }); 23 $().on('click', '.facetwp-template.elementor-widget-loop-grid .elementor-pagination a', function(e) { 24 e.preventDefault(); 25 var matches = $(this).attr('href').match(/\/(\d+)/); 26 FWP.paged = null !== matches ? parseInt(matches[1]) : 1; 27 FWP.soft_refresh = true; 28 FWP.refresh(); 29 }); 30 $().on('click', '.facetwp-template .woocommerce-pagination a', function(e) { 31 e.preventDefault(); 32 var matches = $(this).attr('href').match(/product-page=(\d+)/); 33 if (null !== matches) { 34 FWP.paged = parseInt(matches[1]); 35 FWP.soft_refresh = true; 36 FWP.refresh(); 37 } 38 }); 39 FWP.hooks.addFilter('facetwp/template_html', function(resp, params) { 40 if (FWP.is_load_more) { 41 var $html = $(params.html); 42 43 var $element = '.elementor-grid'; 44 var $tpl = $html.find($element); 45 if ($tpl.len() > 0) { 46 FWP.is_load_more = false; 47 $( '.facetwp-template '+$element).append($tpl.html()); 48 return true; 49 } 50 51 $element = '.uael-post-grid__inner'; 52 $tpl = $html.find($element); 53 if ($tpl.len() > 0) { 54 FWP.is_load_more = false; 55 $( '.facetwp-template '+$element).append($tpl.html()); 56 return true; 57 } 58 59 $element = '.uael-woo-products-inner .products'; 60 $tpl = $html.find($element); 61 if ($tpl.len() > 0) { 62 FWP.is_load_more = false; 63 $( '.facetwp-template '+$element).append($tpl.html()); 64 return true; 65 } 66 67 $element = '.premium-blog-wrap'; 68 $tpl = $html.find($element); 69 if ($tpl.len() > 0) { 70 FWP.is_load_more = false; 71 $( '.facetwp-template '+$element).append($tpl.html()); 72 return true; 73 } 74 75 $element = '.premium-woo-products-inner .products'; 76 $tpl = $html.find($element); 77 if ($tpl.len() > 0) { 78 FWP.is_load_more = false; 79 $( '.facetwp-template '+$element).append($tpl.html()); 80 return true; 81 } 82 83 $element = '.jet-listing-grid__items'; 84 $tpl = $html.find($element); 85 if ($tpl.len() > 0) { 86 FWP.is_load_more = false; 87 $( '.facetwp-template '+$element).append($tpl.html()); 88 return true; 89 } 90 91 } 92 return resp; 93 }, 1 ); 94})(fUtil);
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.