Welcome to IOPWiki, Commander.
We are searching for new editors to keep track of Girls' Frontline 2 content, as well as veteran players to complete the data of Girls' Frontline and Project Neural Cloud characters.
You can contribute without an account. Learn how to contribute and join our Discord server.

Widget:Live2DSwitcher: Difference between revisions

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
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.parent();
   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];
  console.log(property, costume, variant);
    
    
   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" data-variant="normal" style="height: 800px; width: 700px;">
<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>

Revision as of 16:16, 15 September 2018