Skip to content

Commit

Permalink
Update CDN URL
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Feb 10, 2020
1 parent 3c91843 commit a4f1df8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 刷新区域之外。

Expand All @@ -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 用户名即可。

Expand Down
2 changes: 1 addition & 1 deletion autoload.js
Original file line number Diff line number Diff line change
@@ -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/";

// 封装异步加载资源的方法
Expand Down

0 comments on commit a4f1df8

Please sign in to comment.