PageSourceSearch

https://faithwardadvisors.com/wp-content/themes/ambass_advise/ajax/ajax-news.js?v=2&ver=7.1.2

js faithwardadvisors.com collected 2026-10-04 21:19:04 UTC 4,389 bytes, 112 lines download raw bytes

1var pages = 2;
2jQuery(function($) {
3    // $('body').on('change', '.filter-box__categories', function() {
4    //     var choice = $(this).val();
5    //     var choice_text = $(this).find('option:selected').text();
6    //     $(this).prev().text(choice_text);
7    //     // $(this).parents('.filter-box').prev().find('[value='+choice+']').click();
8    // });
9    // $('body').on('change', '.Careers .filter-box__categories input[type="radio"]', function() {
10        // var choice = $(this).val();
11        // $(this).parents('.filter-box').next().find('select').val(choice).change();
12        // if ($(this).is(':checked')) {
13        //     $(this).parent('label').siblings().attr('data-status', '');
14        //     $(this).parent('label').attr('data-status', 'is-active');
15        // } else {
16        //     $(this).parent('label').attr('data-status', '');
17        // }
18    var news = $('.module_article_cards');
19    if (news.length) {
20    $('body').on('change', '.filter-box__categories', function() {
21        console.log('fire ajax 2');
22        // var choice = $(this).val();
23        var choice_text = $(this).find('option:selected').text();
24        $(this).prev().text(choice_text);
25        var form_data = $('#form-filters').serializeArray();
26        var data = {
27            'action': 'load_posts_by_ajax2',
28            'page': 1,
29            'security': blog.security,
30            'form_data': form_data,
31            // 'posts_per_page': posts_per_page,
32        };
33        $.ajax({
34            url  : blog.ajaxurl,
35            data : data,
36            type : 'POST',
37            beforeSend : function (xhr) {
38                // $('.load-more-btn').text('Loading');
39                $('.loading-screen').fadeIn();
40            },
41            success : function (data) {
42                $('.loading-screen').fadeOut();
43                // $('.load-more-btn').text('Load More');
44                if (data) {
45                    // $('.load-more').remove();
46                    $('.load-more').remove();
47                    $('.article-cards-wrap').html(data);
48                    $('.load-more-btn').removeClass('loading').text('Load More +');
49                    // $('.tabs-wrap-flex').append('<div class="load-more"><button class="load-more-btn">Loading...</button></div>');
50                }
51                pages = 2;
52                loadIN();
53            }
54        });
55    });
56    }
57    function loadIN() {
58        gsap.to('.article-card:not(.finish)', {
59            duration: 1,
60            scale: 0.5, 
61            opacity: 0, 
62            delay: 0.35, 
63            stagger: 0.15,
64            ease: "power4", 
65            force3D: true,
66            onComplete: function() {
67                $('.article-card').addClass('finish'); // then only replace with blue div with new height and width
68            }
69        });
70    }
71    $('body').on('click', '.load-more-btn', function() {
72        var form_data = $('#form-filters').serializeArray();
73        var data = {
74            'action': 'load_posts_by_ajax2',
75            'page': pages,
76            'security': blog.security,
77            'form_data': form_data,
78            // 'posts_per_page': posts_per_page,
79            // 'order': order,
80            // 'total_posts': blog.total_posts,
81        };
82        $.ajax({
83            url  : blog.ajaxurl,
84            data : data,
85            type : 'POST',
86            beforeSend : function (xhr) {
87                $('.load-more-btn').addClass('loading').html('Loading <span class="animated-dots"><span class="animated-dots__dot"></span><span class="animated-dots__dot"></span><span class="animated-dots__dot"></span></span>');
88            },
89            success : function (data) {
90                $('.load-more').remove();
91                $('.article-cards-wrap').append(data);
92                $('.load-more-btn').removeClass('loading').text('Load More +');
93                pages++;
94                loadIN();
95            }
96        });
97    });
98    function loadIN() {
99        gsap.from('.article-card:not(.finish)', {
100            duration: 1,
101            scale: 0.5, 
102            opacity: 0, 
103            delay: 0.35, 
104            stagger: 0.15,
105            ease: "power4", 
106            force3D: true,
107            onComplete: function() {
108                $('.article-card').addClass('finish'); // then only replace with blue div with new height and width
109            }
110        });
111    }
112});

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.