https://thurmontmainstreet.com/wp-content/plugins/thurmont-addon/js/post-grid-ajax.js?ver=1790748500
1jQuery(document).ready(function ($) { 2 let selectedCategories = []; 3 function loadPosts(paged = 1) { 4 5 $.ajax({ 6 url: fhccpAjax.ajax_url, 7 type: 'POST', 8 data: { 9 action: 'pgf_load_posts', 10 categories: selectedCategories, 11 paged: paged, 12 }, 13 beforeSend: function () { 14 //$('.pdf_posts_container').html('<p class="no_posts">Loading...</p>'); 15 $('.pdf_posts_container').css('opacity','0.5'); 16 }, 17 success: function (response) { 18 $('.pdf_posts_container').css('opacity','1'); 19 $('.pdf_posts_container').html(response); 20 }, 21 }); 22 } 23 $(document).on('click', '.pgf-category-clear', function (e) { 24 $('.pgf-category-btn.all').trigger('click'); 25 }) 26 $(document).on('click', '.pgf-category-btn', function (e) { 27 e.preventDefault(); 28 const categorySlug = $(this).data('slug'); 29 if( categorySlug == '' ) { 30 $('.pgf-category-btn').not(this).prop('checked', false); 31 $(this).addClass('active'); 32 selectedCategories = []; 33 $('.pgf-category-btn').not(this).removeClass('active'); 34 } else { 35 $('.pgf-category-btn.all').not(this).removeClass('active'); 36 if (selectedCategories.includes(categorySlug)) { 37 selectedCategories = selectedCategories.filter(slug => slug !== categorySlug); 38 $(this).removeClass('active'); 39 } else { 40 selectedCategories.push(categorySlug); 41 $(this).addClass('active'); 42 } 43 } 44 45 46 loadPosts(); 47 }); 48 49 $(document).on('click', '.pgf-pagination-links a', function (e) { 50 e.preventDefault(); 51 let paged = $(this).data('page'); 52 $('.pgf-pagination-links a').removeClass('active'); 53 $(this).addClass('active'); 54 loadPosts(paged); 55 }); 56});
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.