1var expanded = false; 2(function($){ 3 jQuery(document).ready(function(){ 4 jQuery( "#post_sorting" ).on( "change", function() { 5 tag_name = $('#post_sorting :selected').val(); 6 $('.pagination').remove(); 7 updatePosts(1); 8 9 }); 10 $('.post-listing').on('click', '.page-numbers', function (e) { 11 e.preventDefault(); 12 var $this = $(this); 13 var newPage = $this.attr('href').split('paged=')[1]; 14 console.log(newPage); 15 paged = newPage; 16 $(this).addClass("current"); 17 updatePosts(paged); 18 }); 19 function updatePosts(paged) { 20 if(tag_name != "events"){ 21 $('.post-listing').hide(); 22 $('#loader').show(); 23 $.ajax({ 24 url: ajaxposts.ajaxurl, 25 data: { action: 'posts_filter', tag_name: tag_name, paged: paged }, 26 type: 'post', 27 success: function(result) { 28 $('#loader').hide(); 29 $('.post-listing').show(); 30 $('.post-listing').html(result); 31 $('.next').text("»"); 32 $('.prev').text("«"); 33 34 }, 35 error: function(result) { 36 console.warn(result); 37 } 38 }); 39 }else{ 40 window.location.replace("https://wordpress-1135651-4209295.cloudwaysapps.com/events/"); 41 } 42 } 43 }); 44})(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.