1var jqr5 = jQuery.noConflict(); 2jqr5(function() { 3 if (jqr5("#bl-load-more").length) { 4 var e = 1, 5 t = true, 6 n = false, 7 r = jqr5(window), 8 i = jqr5("#bl-load-more"), 9 s = jqr5("#bl-load-more ul"), 10 o = s.attr("data-path"); 11 if (o === undefined) { 12 o = "<?php bloginfo('stylesheet_directory'); ?>/ajax-blog-more.php" 13 } 14 if (s.attr("data-button-text") === undefined) { 15 jqr5button = "Older Posts" 16 } else { 17 jqr5button = s.attr("data-button-text") 18 } 19 i.append('<div class="container"><div id="load-more" class="more blog_more"><span class="loader"></span><span class="text button">' + jqr5button + "</span></div></div>"); 20 var u = function() { 21 jqr5("#load-more").addClass("loading"); 22 jqr5("#load-more span.text").text("Loading..."); 23 jqr5.ajax({ 24 type: "GET", 25 data: { 26 postType: s.attr("data-post-type"), 27 category: s.attr("data-category"), 28 author: s.attr("data-author"), 29 taxonomy: s.attr("data-taxonomy"), 30 tag: s.attr("data-tag"), 31 postNotIn: s.attr("data-post-not-in"), 32 numPosts: s.attr("data-display-posts"), 33 year: s.attr("data-year"), 34 month: s.attr("data-month"), 35 searchblog: s.attr("data-searchblog"), 36 postsCount:s.attr("data-postsCount"), 37 order: s.attr("data-order"), 38 option: s.attr("data-option"), 39 pageNumber: e 40 }, 41 url: o + "/ajax-blog-more.php", 42 beforeSend: function() { 43 if (e != 1) { 44 jqr5("#load-more").addClass("loading"); 45 jqr5("#load-more span.text").text("Loading...") 46 } 47 }, 48 success: function(e) { 49 jqr5data = jqr5(e); 50 51 if (jqr5data.length == 0) { 52 jqr5("#load-more").removeClass("loading"); 53 if (jqr5(window).width() >= 600) { 54 jqr5("#load-more span.text").text("That's all!") 55 } else { 56 jqr5("#load-more span.text").text("That's all!") 57 } 58 t = false; 59 n = true 60 } else if (jqr5data.length > 0) { 61 console.log("jqr5"); 62
63 jqr5data = jqr5('<span id="more-blog">' + e + "</span>"); 64 jqr5data.hide(); 65 s.append(jqr5data); 66 jqr5data.fadeIn(500, function() { 67 jqr5("#load-more").removeClass("loading"); 68 jqr5("#load-more span.text").text(jqr5button); 69 t = false 70 }) 71 //defaulr loadmore 72 var postsCount= s.attr("data-postsCount"); 73 remain = postsCount - 10 74 console.log('defaultno'+remain); 75 if(remain <= 0){ 76 console.log("remainDefault") 77 jQuery("#load-more").hide(); 78 79 } 80 81 82 } 83 }, 84 error: function(e, t, n) { 85 jqr5("#load-more").removeClass("loading"); 86 jqr5("#load-more span.text").text(jqr5button) 87 } 88 }) 89 }; 90 var remain = 0; 91 var count = 0; 92 var postsCount= s.attr("data-postsCount"); 93 94 if(postsCount <=10){ console.log("postcount") 95 //jQuery("#load-more").hide(); 96 if(postsCount == 0){ 97 jQuery(".blog-landing > .container").append("<h3 class='no_result_found'>Sorry, No posts found.</h3>"); 98 jQuery("#load-more").hide(); 99 100 } 101 } 102 jqr5("#load-more").click(function() { 103 if (!t && !n && !jqr5(this).hasClass("done")) { 104 t = true; 105 e++; 106 u() 107 } 108 count +=1; 109 var postsCount= s.attr("data-postsCount"); 110 remain = postsCount - 10 * count; 111 console.log(remain); 112 if(remain <= 10){ console.log("remain") 113 jQuery("#load-more").hide(); 114 115 } 116 }); 117 u() 118 } 119})
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.