1const API_CONFIG = { 2 hitokoto: 'https://v1.hitokoto.cn', 3}; 4 5// è·åä¸è¨ 6const fetchHitokoto = () => { 7 fetch(API_CONFIG.hitokoto) 8 .then(response => response.json()) 9 .then(data => { 10 const hitokotoEl = document.getElementById('hitokoto') 11 hitokotoEl.textContent = data.hitokoto 12 }) 13 .catch(console.error) 14}; 15 16// 页é¢å è½½æ¶åå§å 17window.addEventListener('DOMContentLoaded', () => { 18 fetchHitokoto(); 19});
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.