We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
主要是方便离线运行!
The text was updated successfully, but these errors were encountered:
实测 PHP 后端不是必须的。下面是我在 GitHub Pages 托管 Hexo 站点的方法:
stevenjoezhang/live2d-widget
$PROJECT_ROOT/source/live2d-widget
$PROJECT_ROOT/source/live2d_api/
live2d-widget/autoload.js
cdnPath
$PROJECT_ROOT/public
// 加载 waifu.css live2d.min.js waifu-tips.js if (screen.width >= 768) { Promise.all([ loadExternalResource(live2d_path + "waifu.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: "https://fastly.jsdelivr.net/gh/fghrsh/live2d_api/", + cdnPath: "/live2d_api/", // tools: ["hitokoto", "asteroids", "switch-model", "switch-texture", "photo", "info", "quit"] tools: ["hitokoto", "switch-model", "switch-texture", "photo", "info", "quit"] }); }); }
Sorry, something went wrong.
我后来发现基于 pixijs 更方便,详见 Uni-Gal/Ayaka#345
No branches or pull requests
主要是方便离线运行!
The text was updated successfully, but these errors were encountered: