1// live2d_path åæ°å»ºè®®ä½¿ç¨ç»å¯¹è·¯å¾ 2//const live2d_path = "https://fastly.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/"; 3const live2d_path = "/live2d-widget/"; 4 5// å°è£ 弿¥å è½½èµæºçæ¹æ³ 6function loadExternalResource(url, type) { 7 return new Promise((resolve, reject) => { 8 let tag; 9 10 if (type === "css") { 11 tag = document.createElement("link"); 12 tag.rel = "stylesheet"; 13 tag.href = url; 14 } 15 else if (type === "js") { 16 tag = document.createElement("script"); 17 tag.src = url; 18 } 19 if (tag) { 20 tag.onload = () => resolve(url); 21 tag.onerror = () => reject(url); 22 document.head.appendChild(tag); 23 } 24 }); 25} 26 27// å è½½ waifu.css live2d.min.js waifu-tips.js 28if (screen.width >= 768) { 29 Promise.all([ 30 loadExternalResource(live2d_path + "waifu.css", "css"), 31 loadExternalResource(live2d_path + "live2d.min.js", "js"), 32 loadExternalResource(live2d_path + "waifu-tips.js", "js") 33 ]).then(() => { 34 // é ç½®é项çå ·ä½ç¨æ³è§ README.md 35 initWidget({ 36 waifuPath: live2d_path + "waifu-tips.json", 37 apiPath: "https://live2d.fghrsh.net/api/", 38 //cdnPath: "https://fastly.jsdelivr.net/gh/fghrsh/live2d_api/", 39 tools: ["hitokoto", "asteroids", "switch-model", "switch-texture", "photo", "info", "quit"] 40 }); 41 }); 42} 43 44console.log(` 45 ã__,.ãã½. / ,ã¼ï½¤ ã 46 ï¼¼ ', !-ââ-i / /´ 47 ï¼ï½ï½°' L/ï¼ï½ã½ï½¤ 48 / ï¼, /| , , ', 49 ï½² / /-â/ ï½ L_ ï¾ ã½! i 50 ï¾ ï¾ 7ï½²ï½ï¾ ï¾'ï½§-ï¾ï½¤!ã| | 51 !,/7 '0' ´0iã½| | 52 |.ä»" _ ,,,, / |./ | 53 ï¾'| iï¼.、,,__ _,.㤠/ .i | 54 ï¾'| | / k_ï¼_/ï¾'ã½, ï¾. | 55 | |/i ã|/ i ,.ï¾ | i | 56 .|/ / ï½ï¼ ï¾! ï¼¼ | 57 kã½>ï½¤ï¾ _,.ï¾ï½¤ /、! 58 !'ã//ï½ï¼´Â´', ï¼¼ ï½'7'ï½°r' 59 ï¾'ã½L__|___i,___,ã³ï¾|ã 60 ï¾-,/ |___./ 61 'ï½°' !_,.: 62`);
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.