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
Added MediaWiki gadget loader pattern
Different loading order
Line 3: Line 3:
   $(document).ready(function() {
   $(document).ready(function() {
     var rendererDiv = $('#cancan');
     var rendererDiv = $('#cancan');
    $('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();
      var baseview = rendererDiv.data('baseview');
      window.loadCommander(rendererDiv, baseview, selectedHead, selectedBody, selectedFeet);
    });


     mw.loader.using(['ext.gadget.md5hasher', 'ext.gadget.pixiLoader', 'ext.gadget.chibiAnimation']).then(function() {
     mw.loader.using(['ext.gadget.md5hasher', 'ext.gadget.pixiLoader', 'ext.gadget.chibiAnimation']).then(function() {
Line 21: Line 13:
         }
         }
       );
       );
      $('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();
        var baseview = rendererDiv.data('baseview');
        window.loadCommander(rendererDiv, baseview, selectedHead, selectedBody, selectedFeet);
      });
     }, function(x,y,z) {
     }, function(x,y,z) {
       console.error("Loading needed libraries failed");
       console.error("Loading needed libraries failed");

Revision as of 14:53, 12 November 2019