PageSourceSearch

https://land8.com/wp-content/plugins/bp-project-components/assets/js/load-more.js?ver=1.0

js land8.com collected 2026-10-02 06:37:49 UTC 1,726 bytes, 45 lines download raw bytes

1jQuery(function($){
2
3    if( jQuery('body').hasClass('bp-user') && $('.customproject ul').length > 0 ) {
4        $('.customproject ul').append( '<span class="load-more"></span>' );
5        var button = $('.customproject ul .load-more');
6        var page = 2;
7        var loading = false;
8        var scrollHandling = {
9            allow: true,
10            reallow: function() {
11                scrollHandling.allow = true;
12            },
13            delay: 400 //(milliseconds) adjust to the highest acceptable value
14        };
15
16        $(window).scroll(function(){
17            if( ! loading && scrollHandling.allow ) {
18                scrollHandling.allow = false;
19                setTimeout(scrollHandling.reallow, scrollHandling.delay);
20                var offset = $(button).offset().top - $(window).scrollTop();
21                if( 2000 > offset ) {
22                    loading = true;
23                    var data = {
24                        action: 'be_ajax_load_more',
25                        page: page,
26                        query: beloadmore.query,
27                    };
28                    $.post(beloadmore.url, data, function(res) {
29                        if( res.success) {
30                            $('.customproject ul').append( res.data );
31                            $('.customproject ul').append( button );
32                            page = page + 1;
33                            loading = false;
34                        } else {
35                            // console.log(res);
36                        }
37                    }).fail(function(xhr, textStatus, e) {
38                        // console.log(xhr.responseText);
39                    });
40
41                }
42            }
43        });
44    }
45});

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.