Skip to content

Commit 46b74a4

Browse files
Pin version
1 parent a8ce503 commit 46b74a4

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ package-lock.json
22
node_modules/
33
.DS_Store
44
.idea/
5-
.vscode/
5+
.vscode/
6+
backup/

README.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You can also check out example web pages:
2828
If you are a beginner or only need the basic functionality, you can simply add the following line of code to the `head` or `body` of your HTML page to load the widget:
2929

3030
```html
31-
<script src="https://fastly.jsdelivr.net/npm/live2d-widgets@1/autoload.js"></script>
31+
<script src="https://fastly.jsdelivr.net/npm/live2d-widgets@1.0.0-rc.1/dist/autoload.js"></script>
3232
```
3333

3434
The placement of the code depends on how your website is built. For example, if you are using [Hexo](https://hexo.io), you need to add the above code to the template file of your theme. The modification process is similar for pages generated using various template engines.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
如果你是小白,或者只需要最基础的功能,那么只用将这一行代码加入 html 页面的 `head``body` 中,即可加载看板娘:
2929

3030
```html
31-
<script src="https://fastly.jsdelivr.net/npm/live2d-widgets@1/autoload.js"></script>
31+
<script src="https://fastly.jsdelivr.net/npm/live2d-widgets@1.0.0-rc.1/dist/autoload.js"></script>
3232
```
3333

3434
添加代码的位置取决于你的网站的构建方式。例如,如果你使用的是 [Hexo](https://hexo.io),那么需要在主题的模版文件中添加以上代码。对于用各种模版引擎生成的页面,修改方法类似。

dist/autoload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// live2d_path 参数建议使用绝对路径
2-
const live2d_path = 'https://fastly.jsdelivr.net/npm/live2d-widgets@1/dist/';
2+
const live2d_path = 'https://fastly.jsdelivr.net/npm/live2d-widgets@1.0.0-rc.1/dist/';
33
// const live2d_path = '/dist/';
44

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

0 commit comments

Comments
 (0)