Update CDN URL

This commit is contained in:
Mimi 2020-02-10 22:20:54 +08:00
parent 3c91843d60
commit a4f1df83f8
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ Font Awesome 4.7.0 is required for this plugin. You can add this to `<head>`:
将这一行代码加入 `<head>``<body>`,即可展现出效果:
```xml
<script src="https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget/autoload.js"></script>
<script src="https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/autoload.js"></script>
```
如果网站启用了 PJAX由于看板娘不必每页刷新因此要注意将相关脚本放到 PJAX 刷新区域之外。
@ -55,7 +55,7 @@ Font Awesome 4.7.0 is required for this plugin. You can add this to `<head>`:
要自定义有关内容,可以把这个仓库 Fork 一份,然后进行修改。这时,使用方法对应地变为
```xml
<script src="https://cdn.jsdelivr.net/gh/username/live2d-widget/autoload.js"></script>
<script src="https://cdn.jsdelivr.net/gh/username/live2d-widget@latest/autoload.js"></script>
```
`username` 替换为你的 GitHub 用户名即可。

View File

@ -1,5 +1,5 @@
// 注意live2d_path 参数应使用绝对路径
const live2d_path = "https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget/";
const live2d_path = "https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/";
//const live2d_path = "/live2d-widget/";
// 封装异步加载资源的方法