PageSourceSearch

https://www.openluchttheater.nl/wp-content/plugins/facetwp-load-more/facetwp-load-more.js?ver=4.4.1

js openluchttheater.nl collected 2026-10-02 06:38:19 UTC 1,966 bytes, 61 lines download raw bytes

1(function($) {
2    $(function() {
3        if ('object' !== typeof FWP) {
4            return;
5        }
6
7        FWP.hooks.addFilter('facetwp/template_html', function(resp, params) {
8            if (FWP.is_load_more) {
9                FWP.is_load_more = false;
10
11                // layout builder
12                if ( 0 < $('.fwpl-layout').length ) {
13                    $('.fwpl-layout').append($(params.html).html());
14                }
15                // other
16                else {
17                    $('.facetwp-template').append(params.html);
18                }
19                return true;
20            }
21            return resp;
22        });
23    });
24
25    $(document).on('click', '.fwp-load-more', function() {
26        $('.fwp-load-more').html(FWP_JSON.load_more.loading_text);
27
28        FWP.is_load_more = true; // set the flag
29        FWP.load_more_paged += 1; // next page
30        FWP.facets['load_more'] = [FWP.load_more_paged]; // trick into adding URL var
31        FWP.paged = FWP.load_more_paged; // grab the next page of results
32        FWP.soft_refresh = true; // don't process facets
33        FWP.is_reset = true; // don't parse facets
34        FWP.refresh();
35    });
36
37    $(document).on('facetwp-loaded', function() {
38        $('.fwp-load-more').html(FWP_JSON.load_more.default_text);
39
40        if (FWP.settings.pager.page < FWP.settings.pager.total_pages) {
41            $('.fwp-load-more').show();
42        }
43        else {
44            $('.fwp-load-more').hide();
45        }
46    });
47
48    $(document).on('facetwp-refresh', function() {
49        if (! FWP.loaded) {
50            var uv = FWP_HTTP.url_vars;
51            var paged = ('undefined' !== typeof uv.load_more) ? uv.load_more : 1;
52            FWP_JSON.load_more.default_text = $('.fwp-load-more').html();
53            FWP.load_more_paged = parseInt(paged);
54        }
55        else {
56            if (! FWP.is_load_more) {
57                FWP.load_more_paged = 1;
58            }
59        }
60    });
61})(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.