1var initShowCount = parseInt($(".filesOnPage").text()); 2var noOfLIsToBeAdded = parseInt($(".filesOnLoadMore").text()); 3var x = initShowCount; 4$(document).ready(function () { 5 SetList($("li.current").attr("data-tab")); 6 $('#loadMore').click(function () { 7 var current = $('li.current').attr('data-tab'); 8 x = x + noOfLIsToBeAdded; 9 var liSize = $("div[data-content='" + current + "'] table tr[class='trdata']").length; 10 x = liSize >= x ? x : liSize; 11 $("div[data-content='" + current + "'] table tr[class='trdata']:lt(" + x + ")").each(function () { 12 $(this).removeAttr("style"); 13 }); 14 var y = $("div[data-content='" + current + "'] table").find("tr[style='display: none;']").index(); 15 $("div[data-content='" + current + "'] table tr:lt('" + y + "')").removeAttr("style"); 16 $("div[data-content='" + current + "'] table tr:eq('" + y + "')").removeAttr("style"); 17 if (x == liSize) { 18 $('#loadMore').hide(); 19 } 20 }); 21 22 $('ul.tabs li').click(function () { 23 $('ul.tabs li').removeClass("current"); 24 $(this).addClass("current"); 25 SetList($("li.current").attr("data-tab")); 26 }); 27 28 29}); 30function SetList(current) { 31 x = initShowCount; 32 var count = 1; 33 $("div[data-content='" + current + "'] table tr[class='trdata']").each(function () { 34 (initShowCount >= count) ? $(this).removeAttr("style") : $(this).hide(); 35 count++; 36 } 37 ); 38 //hide next rows from the first hidden row 39 var y = $("div[data-content='" + current + "'] table").find("tr[style='display: none;']").index(); 40 $("div[data-content='" + current + "'] table tr:gt('" + y + "')").hide(); 41 SetLoadMore(current); 42} 43function SetLoadMore(current) { 44 var liSize = $("div[data-content='" + current + "'] table tr[class='trdata']").length; 45 if (initShowCount < liSize) 46 $('#loadMore').show(); 47 else 48 $('#loadMore').hide(); 49}
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.