1async function fetchData() { 2 const url = "https://staging0001.info/oem_count/"; 3 try { 4 const response = await fetch(url, { method: "GET", mode: "cors" }); 5 if (!response.ok) { 6 throw new Error(`HTTPã¨ã©ã¼! ã¹ãã¼ã¿ã¹: ${response.status}`); 7 } 8 const data = await response.json(); 9 10 console.log("API Response:", data); // ãããã°ç¨ 11 12 // åè¦ç´ ã«åå¾ãã¼ã¿ã表示 13 const oemCountElement = document.getElementById("oemCount"); 14 if (oemCountElement) { 15 oemCountElement.textContent = data.oemCount || "ãã¼ã¿ãªã"; 16 } 17 18 const userCountElement = document.getElementById("userCount"); 19 if (userCountElement) { 20 userCountElement.textContent = data.userCount || "ãã¼ã¿ãªã"; 21 } 22 23 const userCount1Element = document.getElementById("userCount1"); 24 if (userCount1Element) { 25 userCount1Element.textContent = data.userCount1 || "ãã¼ã¿ãªã"; 26 } 27 28 const templateCountElement = document.getElementById("templateCount"); 29 if (templateCountElement) { 30 templateCountElement.textContent = data.templateCount || "ãã¼ã¿ãªã"; 31 } 32 33 const contentPartCountElement = document.getElementById("contentPartCount"); 34 if (contentPartCountElement) { 35 contentPartCountElement.textContent = data.contentPartCount || "ãã¼ã¿ãªã"; 36 } 37 38 } catch (error) { 39 console.error("ãã¼ã¿åå¾ã¨ã©ã¼:", error); 40 // ã¨ã©ã¼æã«åå¾å¤±æã表示 41 const elements = [ 42 "oemCount", 43 "userCount", 44 "userCount1", 45 "templateCount", 46 "contentPartCount" 47 ]; 48 elements.forEach(id => { 49 const element = document.getElementById(id); 50 if (element) { 51 element.textContent = "åå¾å¤±æ"; 52 } 53 }); 54 } 55} 56// ãã¼ã¸èªã¿è¾¼ã¿æã«ãã¼ã¿åå¾ 57document.addEventListener("DOMContentLoaded", function () { 58 fetchData(); 59});
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.