Open main menu

Changes

MediaWiki:Gadget-artTab.js

48 bytes removed, 15:07, 14 October 2019
Added document-ready wait functionality as the MediaWiki does not wait for DOM
function refreshView(artTabDiv) {
var tdoll = $(artTabDiv).data('tdollId');
var costume = $(artTabDiv).dataattr('tdollCostumedata-tdoll-costume');
var variant = $(artTabDiv).attr('data-tdoll-variant'); // why not data though?
var stage = view.data('live2dStage');
stage.removeChildren();
console.log(window);
console.log(window.gfUtils);
console.log(window.gfUtils.live2dUtils);
mw.loader.using('ext.gadget.live2d').then(var anythingFailedHandler = function (_xx,_yy,_zz) { console view.logclosest(window, _x, _y, _z".artTab"); console.logremoveClass(window.gfUtils"loading"); console.log(window.gfUtils.live2dUtils"Failed loading Live2D", x, y, z); }; /* window.gfUtils.live2dUtils.loadLive2dGirl($(artTabDiv).find('.artTabContent'), tdoll, costume, variant, var loadLive2DgirlSuccessHandler = function(live2dData) {
view.closest(".artTab").removeClass("loading");
stage.addChild(live2dData);
},;  var loadLive2DsuccessHandler = function(x,y,z) { viewgfUtils.live2dUtils.closestloadLive2dGirl(".artTab").removeClass$("loading"artTabDiv); console("Failed loading Live2D", xtdoll, costume, variant, yloadLive2DgirlSuccessHandler, zanythingFailedHandler); });*/ } mw.loader.using('ext.gadget.live2dAnimation').then(loadLive2DsuccessHandler, anythingFailedHandler);
});
} else {
}
RLQ.push(['jquery', function () { $(document).ready(function() {
var artTabDiv = $('.artTab');
artTabDiv.on('costume_changed', modelChanged);
normalButton.click();
});
}]);