Skip to content

Commit

Permalink
Update autoload.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hst1189 authored Oct 26, 2024
1 parent ac57986 commit b1439ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions autoload.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@ try {
$.ajax({
url: '//www.grapehut.us.kg/live2d-widget/assets/waifu-tips.min.js',
dataType: "script",
cache: true,
cache: false,
success: function() {
$.ajax({
url: '//www.grapehut.us.kg/live2d-widget/assets/ModelDefine.js',
dataType: "script",
cache: true,
cache: false,
success: function() {
$.ajax({
url: '//www.grapehut.us.kg/live2d-widget/assets/live2d.min.js',
dataType: "script",
cache: true,
cache: false,
success: function() {
/* 可直接修改部分参数 在initModel 前添加*/
// live2d_settings['modelId'] = 5;
// live2d_settings['modelTexturesId'] = 1;

/* 初始化*/
initModel('//www.grapehut.us.kg/live2d-widget/assets/waifu-tips.json');
}
});
Expand Down

0 comments on commit b1439ad

Please sign in to comment.