1$(function(){ 2 var xhr = new XMLHttpRequest() 3 xhr.open('GET', "https://userapi.edrawsoft.cn/api/activity/baricon?position=1") 4 xhr.send(); 5 xhr.onreadystatechange = function () { 6 if (xhr.readyState == 4 && xhr.status == 200 && xhr.responseText) { 7 var result = JSON.parse(xhr.responseText) 8 if(!result.data) return 9 $(".header-tag").first().text(result.data.name); 10 $(".header-tag").first().attr("style", ""); 11 $(".header-tag").first().parent().attr("href", result.data.url); 12 $("#buy-text").first().text(result.data.name); 13 $("#buy-text").first().parent().attr("href", result.data.url); 14 } 15 } 16})
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.