PageSourceSearch

https://www.sigmaphi.com/wp-content/plugins/blog-posts-and-category-for-elementor/assets/js/main.js?ver=1.0.0

js sigmaphi.com collected 2026-10-09 22:52:22 UTC 2,727 bytes, 72 lines download raw bytes

1'use strict';
2(function ($) {
3	jQuery(window).on('elementor/frontend/init', function(){
4		elementorFrontend.hooks.addAction('frontend/element_ready/pd-pcf.default', function ($scope, $) {
5			var elem = $scope.find('.wbel_pd_pcf_wrapper');
6			var load_more_text = $scope.find('.pd_pcf_loadmore_btn').data('load_more');
7			var loading_more_text = $scope.find('.pd_pcf_loadmore_btn').data('loading_more');
8			
9			var istp_grid = elem.isotope({
10			  // options
11			  itemSelector: '.pd_pcf_item',
12			  layoutMode: 'fitRows',
13			});
14			istp_grid.imagesLoaded().progress( function() {
15			  istp_grid.isotope();
16			});
17
18			// filter items on button click
19			jQuery('.pd-pcf-filter-button-group').on( 'click', '.pd-pcf-filter-btn', function(e) {
20				e.preventDefault();
21				jQuery(this).siblings('.pd-pcf-filter-btn').removeClass('pd-pcf-filter-btn-active');
22			  	jQuery(this).addClass('pd-pcf-filter-btn-active');
23			  	var filterValue = jQuery(this).attr('data-filter');
24			  	istp_grid.isotope({ filter: filterValue });
25			});
26
27			jQuery('.pd_pcf_loadmore_btn').on('click', function(e){
28				e.preventDefault();
29				var _this = jQuery(this);
30				var args = jQuery(this).parents('.pd-pcf-container').data('settings');
31				var offset = jQuery(this).parents('.pd-pcf-container').find('.pd_pcf_item').length;
32				args['offset'] = offset;
33				jQuery.ajax({
34					// fas fa-spinner fa-spin
35					url: pd_pcf_ajax_object.ajax_url,
36					type: 'post',
37					data : {
38						'action': 'load_posts',
39						'args' : args,
40					},
41					beforeSend: function(){
42						// _this.find('.fas').addClass('fa-spin');
43						_this.find('.pd_pcf_load_icon').addClass('pd-pcf-d-none');
44						_this.find('.pd_pcf_loading_icon').removeClass('pd-pcf-d-none');
45						_this.find('.pd-pcf-load-more-text').text(loading_more_text);
46					},
47					complete: function(xhr,status){
48						// console.log(xhr.responseText);
49						if(_this.parents('.pd-pcf-container').find('.pd_pcf_reach_limit').length > 0){
50							_this.parent('.pd-pcf-load-btn').remove();
51						}
52						_this.find('.pd-pcf-load-more-text').text(load_more_text);
53						_this.find('.pd_pcf_load_icon').removeClass('pd-pcf-d-none');
54						_this.find('.pd_pcf_loading_icon').addClass('pd-pcf-d-none');
55
56						var $html = jQuery( xhr.responseText );
57						istp_grid.append( $html ).isotope( 'appended', $html );
58						istp_grid.imagesLoaded().progress( function() {
59						  istp_grid.isotope();
60						});
61
62						if(_this.parents('.pd-pcf-container').find('.wbel_pd_pcf_wrapper').find('.pd_pcf_reach_limit').length > 0){
63							_this.parent('.pd-pcf-load-btn').addClass('pd-pcf-d-none');
64						}
65					}
66				})
67			});
68
69
70		});
71	});
72})(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.