live2dapi-noa 1.0.4 → 1.0.6

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 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;
@@ -46,11 +50,6 @@
46
50
  </svg>
47
51
  </a>
48
52
  <!-- 顺序切换模型材质 -->
49
- <script src="https://unpkg.com/live2dapi-noa@latest/npm/sequential/autoload.js"></script>
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: "https://fastly.jsdelivr.net/gh/nova1751/live2d-api@latest/",
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) {
@@ -39,7 +38,7 @@ if (screen.width >= 768) {
39
38
  waifuPath: live2d_path + "waifu-tips.json",
40
39
 
41
40
  // apiPath: "https://live2d.fghrsh.net/api/",
42
- cdnPath: "https://fastly.jsdelivr.net/gh/nova1751/live2d-api@latest/",
41
+ cdnPath: live2d_path,
43
42
 
44
43
  tools: [
45
44
  "hitokoto",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "live2dapi-noa",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "nova1751自建的live-2d api",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -24,19 +24,19 @@
24
24
 
25
25
  ```html
26
26
  <!-- 顺序切换模型材质 -->
27
- <script src="https://fastly.jsdelivr.net/gh/nova1751/live2d-api@latest/jsdelivr/sequential/autoload.js"></script>
27
+ <script src="https://jsd.cdn.zzko.cn/gh/nova1751/live2d-api@latest/jsdelivr/sequential/autoload.min.js"></script>
28
28
  <!-- 随机切换模型材质 -->
29
- <script src="https://fastly.jsdelivr.net/gh/nova1751/live2d-api@latest/jsdelivr/random/autoload.js"></script>
29
+ <script src="https://jsd.cdn.zzko.cn/gh/nova1751/live2d-api@latest/jsdelivr/random/autoload.min.js"></script>
30
30
 
31
31
  <!-- 看板娘位置靠左 -->
32
32
  <link
33
33
  rel="stylesheet"
34
- href="https://fastly.jsdelivr.net/gh/nova1751/live2d-api@latest/css/left.css"
34
+ href="https://jsd.cdn.zzko.cn/gh/nova1751/live2d-api@latest/css/left.min.css"
35
35
  />
36
36
  <!-- 看板娘位置靠右 -->
37
37
  <link
38
38
  rel="stylesheet"
39
- href="https://fastly.jsdelivr.net/gh/nova1751/live2d-api@latest/css/right.css"
39
+ href="https://jsd.cdn.zzko.cn/gh/nova1751/live2d-api@latest/css/right.min.css"
40
40
  />
41
41
  ```
42
42