live2dapi-noa 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.html +6 -7
- package/jsdelivr/random/autoload.js +2 -3
- package/jsdelivr/sequential/autoload.js +1 -2
- package/package.json +1 -1
- package/readme.md +2 -2
package/index.html
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<title>Live2D 看板娘 / Demo</title>
|
|
6
|
+
<link
|
|
7
|
+
rel="stylesheet"
|
|
8
|
+
href="https://jsd.cdn.zzko.cn/gh/nova1751/live2d-api@latest/css/left.css"
|
|
9
|
+
/>
|
|
6
10
|
<style>
|
|
7
11
|
#github svg {
|
|
8
12
|
transition: all 1s;
|
|
@@ -27,7 +31,7 @@
|
|
|
27
31
|
<body>
|
|
28
32
|
<a
|
|
29
33
|
id="github"
|
|
30
|
-
href="https://github.com/
|
|
34
|
+
href="https://github.com/nova1751/live2d-api"
|
|
31
35
|
target="_blank"
|
|
32
36
|
title="Visit the open-source code on GitHub!"
|
|
33
37
|
>
|
|
@@ -46,11 +50,6 @@
|
|
|
46
50
|
</svg>
|
|
47
51
|
</a>
|
|
48
52
|
<!-- 顺序切换模型材质 -->
|
|
49
|
-
<script src="
|
|
50
|
-
<!-- 看板娘位置靠左 -->
|
|
51
|
-
<link
|
|
52
|
-
rel="stylesheet"
|
|
53
|
-
href="https://unpkg.com/live2dapi-noa@latest/css/left.css"
|
|
54
|
-
/>
|
|
53
|
+
<script src="./jsdelivr/random/autoload.js"></script>
|
|
55
54
|
</body>
|
|
56
55
|
</html>
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
// const live2d_path =
|
|
3
3
|
// "https://fastly.jsdelivr.net/gh/nova1751/live2d-widget@latest/";
|
|
4
4
|
|
|
5
|
-
const live2d_path =
|
|
6
|
-
"https://fastly.jsdelivr.net/gh/nova1751/live2d-api@latest/";
|
|
5
|
+
const live2d_path = "https://jsd.cdn.zzko.cn/gh/nova1751/live2d-api@latest/";
|
|
7
6
|
|
|
8
7
|
// 封装异步加载资源的方法
|
|
9
8
|
function loadExternalResource(url, type) {
|
|
@@ -36,7 +35,7 @@ if (screen.width >= 768) {
|
|
|
36
35
|
waifuPath: live2d_path + "waifu-tips.json",
|
|
37
36
|
|
|
38
37
|
// apiPath: "https://live2d.fghrsh.net/api/",
|
|
39
|
-
cdnPath:
|
|
38
|
+
cdnPath: live2d_path,
|
|
40
39
|
|
|
41
40
|
tools: [
|
|
42
41
|
"hitokoto",
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
// const live2d_path =
|
|
3
3
|
// "https://fastly.jsdelivr.net/gh/nova1751/live2d-widget@latest/";
|
|
4
4
|
|
|
5
|
-
const live2d_path =
|
|
6
|
-
"https://fastly.jsdelivr.net/gh/nova1751/live2d-api@latest/";
|
|
5
|
+
const live2d_path = "https://jsd.cdn.zzko.cn/gh/nova1751/live2d-api@latest/";
|
|
7
6
|
|
|
8
7
|
// 封装异步加载资源的方法
|
|
9
8
|
function loadExternalResource(url, type) {
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
|
|
25
25
|
```html
|
|
26
26
|
<!-- 顺序切换模型材质 -->
|
|
27
|
-
<script src="https://
|
|
27
|
+
<script src="https://jsd.cdn.zzko.cn/gh/nova1751/live2d-api@latest/jsdelivr/sequential/autoload.js"></script>
|
|
28
28
|
<!-- 随机切换模型材质 -->
|
|
29
|
-
<script src="https://
|
|
29
|
+
<script src="https://jsd.cdn.zzko.cn/gh/nova1751/live2d-api@latest/jsdelivr/random/autoload.js"></script>
|
|
30
30
|
|
|
31
31
|
<!-- 看板娘位置靠左 -->
|
|
32
32
|
<link
|