Widget:Live2DSwitcher: Difference between revisions
Jump to navigation
Jump to search
Waiting to be triggered |
Added document-ready wait functionality as the MediaWiki does not wait for DOM |
||
Line 1: | Line 1: | ||
<includeonly><div><script> | <includeonly><div><script> | ||
RLQ.push(['jquery', function () { | RLQ.push(['jquery', function () { | ||
$(document).ready(function() { | |||
var containers = $('.dollLive2d'); | var containers = $('.dollLive2d'); | ||
if (containers.length < 1) return; | if (containers.length < 1) return; | ||
Line 32: | Line 33: | ||
}); | }); | ||
}); | }); | ||
}); | |||
}]); | }]); | ||