Widget:Live2DSwitcher: Difference between revisions
Jump to navigation
Jump to search
Initial setup |
loaded missing resources |
||
Line 2: | Line 2: | ||
RLQ.push(function () { | RLQ.push(function () { | ||
$(document).ready(function() { | $(document).ready(function() { | ||
$('.dollLive2d').each(function() { | var containers = $('.dollLive2d'); | ||
var ul = $(this).find('ul'); | if (containers.length < 1) return; | ||
containers.each(function() { | |||
mw.loader.using('ext.gadget.live2d').then(function() { | |||
var ul = $(this).find('ul'); | |||
var settings = gfUtils.live2dUtils.convertSettingsFromUl(ul); | |||
console.log(settings); | |||
}); | |||
}); | }); | ||
}); | }); |