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:chibiCommander: 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
Fixing the rendering area
Moved the select script
Line 2: Line 2:
RLQ.push(['jquery', function () {
RLQ.push(['jquery', function () {
   $(document).ready(function() {
   $(document).ready(function() {
    $('select.commander-sim-option').on('change', function() {
      var selectedHead = $('.commander-sim-option.head option:selected').val();
      var selectedBody = $('.commander-sim-option.body option:selected').val();
      var selectedFeet = $('.commander-sim-option.feet option:selected').val();
      window.loadCommander(baseview, selectedHead, selectedBody, selectedFeet);
    });
     // Let's make sure the correct values are shown
     // Let's make sure the correct values are shown
     $('.commander-sim-option').first().change();
     $('.commander-sim-option').first().change();
Line 36: Line 43:
<option value="Commander_Fury_Fantasy_female_feet_chibi_skel.skel;Commander_Fury_Fantasy_female_feet_chibi_atlas.txt;Commander_Fury_Fantasy_female_feet_color_4_chibi_spritemap.png">Fury Fantasy (f) 4</option>
<option value="Commander_Fury_Fantasy_female_feet_chibi_skel.skel;Commander_Fury_Fantasy_female_feet_chibi_atlas.txt;Commander_Fury_Fantasy_female_feet_color_4_chibi_spritemap.png">Fury Fantasy (f) 4</option>
</select>
</select>
<script>$('select.commander-sim-option').on('change', function() {
var selectedHead = $('.commander-sim-option.head option:selected').val();
var selectedBody = $('.commander-sim-option.body option:selected').val();
var selectedFeet = $('.commander-sim-option.feet option:selected').val();
window.loadCommander(baseview, selectedHead, selectedBody, selectedFeet);
});</script>
</includeonly><noinclude>{{#widget:chibiCommander}}</noinclude>
</includeonly><noinclude>{{#widget:chibiCommander}}</noinclude>

Revision as of 00:13, 12 November 2019