1jQuery(document).ready(function() { 2 if ($('.widget_categories ul li').length>6) { 3 $('.widget_categories ul li:gt(5)').hide(); 4 $('.widget_categories ul').after('<div class="categories-toggle"><span class="show-more">Show More</span><span class="hide-more">Hide More</span></div>'); 5 } 6 $('.widget_categories .categories-toggle .show-more').on('click', function() { 7 $('.widget_categories ul li:hidden').show(); 8 $(this).hide().siblings().show(); 9 }); 10 $('.widget_categories .categories-toggle .hide-more').on('click', function() { 11 $('.widget_categories ul li:gt(5)').hide(); 12 $(this).hide().siblings().show(); 13 }); 14 $('#df-recent-posts-3 .pag-nav').removeClass('hidden'); 15 $('#df-recent-posts-3 .pag-nav a.next').removeClass('hidden').html('Show more'); 16 $('#df-recent-posts-3 .pag-nav a.next').on('click', function(e) { 17 e.preventDefault(); 18 $(this).addClass('disabled').addClass('loading').text('Loading...'); 19 $.ajax({ 20 type: "GET", 21 url: $(this).attr('href'), 22 dataType: "html", 23 success: function(out){ 24 result = $(out).find('#df-recent-posts-3 .row'); 25 nextlink = $(out).find('#df-recent-posts-3 .pag-nav a.next').attr('href'); 26 $('#df-recent-posts-3 .row:last').after(result.fadeIn(300)); 27 $('#df-recent-posts-3 .pag-nav a.next').removeClass('disabled').text('Show more'); 28 if (nextlink != undefined) { 29 $('#df-recent-posts-3 .pag-nav a.next').attr('href', nextlink); 30 } else { 31 $('#df-recent-posts-3 .pag-nav').remove(); 32 } 33 } 34 }); 35 }); 36});
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.