1$(window).on("hashchange", function () { 2 if (window.location.hash) { 3 var page = window.location.hash.replace("#", ""); 4 if (page == Number.NaN || page <= 0) { 5 return false; 6 } else { 7 getData(page); 8 } 9 } 10}); 11 12$(document).ready(function () { 13 $(document).on("click", ".pagination a", function (event) { 14 event.preventDefault(); 15 16 $("li").removeClass("active"); 17 $(this).parent("li").addClass("active"); 18 19 var myurl = $(this).attr("href"); 20 var page = $(this).attr("href").split("page=")[1]; 21 22 getData(page); 23 }); 24}); 25 26function getData(page) { 27 $.ajax({ 28 url: "?page=" + page, 29 type: "get", 30 datatype: "html", 31 data: $("#searchingForm").serialize(), 32 }) 33 .done(function (data) { 34 $("#showInfo").empty().html(data); 35 location.hash = page; 36 $("html, body").animate( 37 { 38 scrollTop: 0, 39 }, 40 "slow" 41 ); 42 }) 43 .fail(function (jqXHR, ajaxOptions, thrownError) { 44 alert("No response from server"); 45 }); 46}
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.