1(() => { 2 // javascript/script.js 3 function loadMore() { 4 const page = this.page + 1; 5 fetch(`/wp-admin/admin-ajax.php?action=residents_club_load_more&page=${page}`, { 6 method: "GET" 7 }).then((response) => response.text()).then((data) => { 8 this.posts += data; 9 this.page = page; 10 }).catch((error) => console.error(error)); 11 } 12 window.loadMore = loadMore; 13 function loadMoreEvents() { 14 const page = this.page + 1; 15 fetch(`/wp-admin/admin-ajax.php?action=residents_club_load_more_events&page=${page}`, { 16 method: "GET" 17 }).then((response) => response.text()).then((data) => { 18 this.posts += data; 19 this.page = page; 20 }).catch((error) => console.error(error)); 21 } 22 window.loadMoreEvents = loadMoreEvents; 23})();
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.