PageSourceSearch

https://www.audax-club-parisien.com/wp-content/plugins/nextgen-gal…/Thumbnails/ajax_pagination.js?ver=4.4.0

js audax-club-parisien.com collected 2026-09-24 09:26:55 UTC 2,299 bytes, 67 lines download raw bytes

1jQuery(function($){
2    NggAjaxNavigation = {
3        loading_image:            null,
4
5        /**
6         * Initializes the AJAX paginators
7         */
8        init:                     function(){
9            var self = this;
10            $('body').on('click', 'a.page-numbers, a.prev, a.next', function(e){
11              var $this     = $(this);
12              var $gallery  = $this.parents('.ngg-galleryoverview:first');
13              var gallery_id= $gallery.attr('id').replace('ngg-gallery-','').replace(/-\d+$/, '');
14              
15              if ($gallery.hasClass('ngg-ajax-pagination-none')) 
16              	return;
17              
18              e.preventDefault();
19
20              self.toggle_busy(true);
21
22              $.get({
23                  url: $this.attr('href'),
24                  headers: { 'X-NGG-Pagination-Request': true },
25                  success: function (response) {
26                      var html = $(response);
27                      $gallery.replaceWith(html.find('div[id*="ngg-gallery-' + gallery_id + '"]'));
28
29                      // Let the user know that we've refreshed the content
30                      $(document).trigger('refreshed');
31
32                      // Emit an event that doesn't require jQuery
33                      const event = new Event("nextgen_page_refreshed");
34                      document.dispatchEvent(event);
35                  }
36              }).always(function() {
37                  self.toggle_busy(false);
38              });
39            });
40        },
41
42        /**
43         * Gets the querystring parameters for a url
44         * @param url
45         * @return {Object}
46         */
47        get_querystring_params_from_url: function(url){
48            var url_params = {};
49            var url_parts = url.split('?');
50            if (url_parts.length == 2) {
51                url_parts = url_parts[1].split('&');
52                for (var key in url_parts) {
53                    var param = url_parts[key].split('=');
54                    url_params[param[0]] = param.length == 2 ? param[1] : '';
55                }
56            }
57            return url_params;
58        },
59
60
61        toggle_busy:                    function(busy) {
62            $('body, a').css('cursor', busy ? 'wait' : 'auto');
63        }
64    };
65
66    NggAjaxNavigation.init();
67});

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.