1fetch('https://v1.hitokoto.cn') 2 .then(response => response.json()) 3 .then(data => { 4 const hitokoto = document.getElementById('hitokoto_text') 5 const hitokoto_author = document.getElementById('hitokoto_author') 6 if(hitokoto) { 7 hitokoto.innerText = data.hitokoto 8 } 9 if(hitokoto_author) { 10 hitokoto_author.innerText = data.from_who 11 } 12 }) 13 .catch(console.error)
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.