Widget:Live2DSwitcher: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 37: | Line 37: | ||
function swap_model(element) { | function swap_model(element) { | ||
var selectBox = $(element); | var selectBox = $(element); | ||
var containerDiv = selectBox. | var containerDiv = selectBox.closest('.dollLive2d'); | ||
var selectedValue = selectBox.val(); | var selectedValue = selectBox.val(); | ||
Line 45: | Line 45: | ||
var costume = vals[1]; | var costume = vals[1]; | ||
var variant = vals[2]; | var variant = vals[2]; | ||
containerDiv.data("t-doll", property); | containerDiv.data("t-doll", property); | ||
Line 58: | Line 56: | ||
<option value="" selected="selected">Loading...</option> | <option value="" selected="selected">Loading...</option> | ||
</select></div></includeonly><noinclude> | </select></div></includeonly><noinclude> | ||
<div class="dollLive2d" data-t-doll="Thompson" data-costume="costume1 | <div class="dollLive2d" data-t-doll="Thompson" data-costume="costume1" style="height: 800px; width: 700px;"> | ||
{{#widget:Live2DSwitcher}} | {{#widget:Live2DSwitcher}} | ||
<div class="live2dsettings" style="display:none">{{:Thompson/Live2DSettings}}</div> | <div class="live2dsettings" style="display:none">{{:Thompson/Live2DSettings}}</div> | ||
</div> | </div> | ||
</noinclude> | </noinclude> |