mirror of
https://github.com/stevenjoezhang/live2d-widget.git
synced 2024-11-23 05:24:08 +08:00
Update autoload.js
This commit is contained in:
parent
bc08b5e19f
commit
0a88f9a60c
17
autoload.js
17
autoload.js
@ -41,6 +41,23 @@ if (screen.width >= 768) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 加载 waifu.css live2d.min.js waifu-tips-.js,适配移动端
|
||||||
|
if (screen.width < 768) {
|
||||||
|
Promise.all([
|
||||||
|
loadExternalResource(live2d_path + "waifu-mobie.css", "css"),
|
||||||
|
loadExternalResource(live2d_path + "live2d.min.js", "js"),
|
||||||
|
loadExternalResource(live2d_path + "waifu-tips.js", "js")
|
||||||
|
]).then(() => {
|
||||||
|
// 配置选项的具体用法见 README.md
|
||||||
|
initWidget({
|
||||||
|
waifuPath: live2d_path + "waifu-tips.json",
|
||||||
|
//apiPath: "https://live2d.fghrsh.net/api/",
|
||||||
|
cdnPath: "/live2djs/",
|
||||||
|
tools: ["hitokoto", "asteroids", "switch-model", "switch-texture", "photo", "info", "quit"]
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
console.log(`
|
console.log(`
|
||||||
く__,.ヘヽ. / ,ー、 〉
|
く__,.ヘヽ. / ,ー、 〉
|
||||||
\ ', !-─‐-i / /´
|
\ ', !-─‐-i / /´
|
||||||
|
Loading…
Reference in New Issue
Block a user