PageSourceSearch

https://nmpolitics.net/index/wp-content/themes/Largo-master/js/load-more-posts.js?x45318

js nmpolitics.net collected 2026-10-02 10:04:54 UTC 1,442 bytes, 42 lines download raw bytes

1(function() {
2    var $ = jQuery;
3
4    $(function() {
5        var load_more = $('#nav-below .load-more'),
6            ajax_opts = {
7                url: LMP.ajax_url,
8                data: {
9                    action: 'load_more_posts',
10                    paged: (LMP.paged == 0)? 1:LMP.paged,
11                    is_home: LMP.is_home,
12                    is_series_landing: LMP.is_series_landing,
13                    // opt is used by partials/content-series.php to return the same type of post.
14                    opt: LMP.opt
15                },
16                type: 'POST',
17                dataType: 'html',
18                success: function(html) {
19                    var markup = $(html);
20                    $(html).insertBefore('#nav-below');
21                    load_more.removeClass('loading');
22                },
23                error: function() {
24                    load_more.removeClass('loading');
25                    throw "There was an error fetching more posts";
26                }
27            };
28
29
30        load_more.find('a').click(function() {
31            load_more.addClass('loading');
32            var last_story = $('.stories article').last();
33                id = last_story.attr('id').replace('post-', '');
34
35            ajax_opts.data.last = id;
36            ajax_opts.data.paged += 1;
37            ajax_opts.data.query = LMP.query;
38            $.ajax(ajax_opts);
39            return false;
40        });
41    });
42})();

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.