1var sitePager = $(".blog-list-paging").paging(blogPostCount, { 2 3 // Set up onclick handler 4 onClick: function(ev) { 5 ev.preventDefault(); 6 7 var sitepage = $(this).data('page'); 8 9 if(type == "category") { 10 var url = '/modules/blog/ajax/category-list-items.php'; 11 } else if(type == "tag") { 12 var url = '/modules/blog/ajax/tag-list-items.php'; 13 } else if(type == 'archive') { 14 var url = '/modules/blog/ajax/archive-list-items.php'; 15 } else { 16 var url = '/modules/blog/ajax/blog-list-items.php'; 17 } 18 19 $.post(url, { ourPage: sitepage, resultsCount: myPageCount, URL:URI, slug:slug }, function(data) { 20 info = data.split('~~~~~~'); 21 $("#blog-post-content").html(info[0]); 22 }); 23 sitePager.setPage(sitepage); 24 }, 25 26 // Set up easy format 27 format: "<nncnn>", 28 29 // Typical onFormat handler, copied from source file 30 onFormat: function(type) { 31 32 switch (type) { 33 34 case 'block': 35 36 if (!this.active) 37 return '<span class="disabled page">' + this.value + '</span>'; 38 else if (this.value != this.page) 39 return '<em><a class="page" href="#' + this.value + '">' + this.value + '</a></em>'; 40 return '<span class="current page">' + this.value + '</span>'; 41 42 case 'right': 43 case 'left': 44 45 if (!this.active) { 46 return ""; 47 } 48 return '<a class="page" href="#' + this.value + '">' + this.value + '</a>'; 49 50 case 'next': 51 52 if (this.active) { 53 return '<a href="#' + this.value + '" class="next">Next »</a>'; 54 } 55 return '<span class="page disabled">Next »</span>'; 56 57 case 'prev': 58 59 if (this.active) { 60 return '<a href="#' + this.value + '" class="prev">« Prev</a>'; 61 } 62 return '<span class="disabled page">« Prev</span>'; 63 64 case 'first': 65 66 if (this.active) { 67 return '<a href="#' + this.value + '" class="first">|<</a>'; 68 } 69 return '<span class="disabled page">|<</span>'; 70 71 case 'last': 72 73 if (this.active) { 74 return '<a href="#' + this.value + '" class="prev">>|</a>'; 75 } 76 return '<span class="disabled page">>|</span>'; 77 78 case 'fill': 79 if (this.active) { 80 return "..."; 81 } 82 } 83 return ""; // return nothing for missing branches 84 } 85});
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.