mirror of
https://github.com/caojiezi2003/live2d-widget.git
synced 2024-11-10 04:49:47 +00:00
Drop $.ajax
This commit is contained in:
parent
0d480a76f6
commit
f1953d6d19
@ -118,7 +118,7 @@ https://github.com/akiroz/Live2D-Widget
|
|||||||
|
|
||||||
## 更多 More
|
## 更多 More
|
||||||
|
|
||||||
Live2D官方网站:
|
Live2D 官方网站:
|
||||||
https://www.live2d.com/en/
|
https://www.live2d.com/en/
|
||||||
https://live2d.github.io
|
https://live2d.github.io
|
||||||
|
|
||||||
|
@ -28,11 +28,9 @@ function loadWidget(waifuPath, apiPath) {
|
|||||||
if (!window.ASTEROIDSPLAYERS) window.ASTEROIDSPLAYERS = [];
|
if (!window.ASTEROIDSPLAYERS) window.ASTEROIDSPLAYERS = [];
|
||||||
window.ASTEROIDSPLAYERS.push(new Asteroids());
|
window.ASTEROIDSPLAYERS.push(new Asteroids());
|
||||||
} else {
|
} else {
|
||||||
$.ajax({
|
var script = document.createElement('script');
|
||||||
url: "https://cdn.jsdelivr.net/gh/GalaxyMimi/CDN/asteroids.js",
|
script.src = "https://cdn.jsdelivr.net/gh/GalaxyMimi/CDN/asteroids.js";
|
||||||
dataType: "script",
|
document.head.appendChild(script);
|
||||||
cache: true
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
document.querySelector("#waifu-tool .fa-user-circle").addEventListener("click", loadOtherModel);
|
document.querySelector("#waifu-tool .fa-user-circle").addEventListener("click", loadOtherModel);
|
||||||
|
Loading…
Reference in New Issue
Block a user