1$(document).ready(function () { 2 getDallasCityLinks(); 3}); 4 5function getDallasCityLinks(){ 6 7 var dc = this; 8 var requestUri = window.location.protocol + "//" + window.location.host + _spPageContextInfo.siteServerRelativeUrl + "_api/web/lists/getbytitle('DallasCityLinks')/items"; 9 dc.successCallback = function (responseData, ResultsItems, queryTxt) 10 { 11 pCount = responseData.d.results.length; 12 var output=""; 13 responseData.d.results.forEach(Display); 14 function Display(element, index, array) 15 { 16 output += "<li>"; 17 output += "<a target='_blank' href='" + element.URL.Url + "'>" + element.URL.Description + "</a></li>"; 18 } 19 $("#cityofdallas").html(output); 20 } 21 22 dc.failureCallback = function (error) { 23 console.log("error"); 24 } 25 26 execAjax( 27 requestUri, 28 dc.successCallback, 29 dc.failureCallback, 30 false 31 ) 32}
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.