PageSourceSearch

https://www.imaginelearning.com/wp-content/themes/imagine-learning/js/loadmore.js

js imaginelearning.com collected 2026-10-01 10:17:13 UTC 1,082 bytes, 35 lines download raw bytes

1let currentPage = 1;
2function loadMore(element, category, template) {
3
4  currentPage++; // Do currentPage + 1, because I want to load the next page
5  console.log(category)
6  console.log(currentPage)
7  console.log(template)
8
9  $.ajax({
10    type: 'POST',
11    url: '/wp-admin/admin-ajax.php',
12    dataType: 'html',
13    data: {
14      action: 'load_more',
15      paged: currentPage,
16      category: category,
17      template: template,
18    },
19    success: function (res) {
20      if(res) {
21        //$('.post-list').append(res);
22        $(element).parents('.load_more').siblings('.post-list').append(res);
23        
24        // console.log("the newest of files")
25      } else {
26         // $(element).parents('.load_more').hide();
27         let noResponseError = "<div class='row justify-content-center'><div class='col-auto'><span style='display:inline-block;font-size:14px;' class='mt-4'>Showing all results</span></div></div>"
28        $('#errorContainer').html(noResponseError);
29        // console.log(noResponseError)
30        // console.log("this is fixed")
31        
32      }
33    }
34  });
35};

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.