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
Different waiting pattern
Added MediaWiki gadget loader pattern
Line 1: Line 1:
<includeonly><script>
<includeonly><script>
RLQ.push(['ext.gadget.chibiAnimation', function () {
RLQ.push(['jquery', function () {
   $(document).ready(function() {
   $(document).ready(function() {
     var rendererDiv = $('#cancan');
     var rendererDiv = $('#cancan');
Line 12: Line 12:
     });
     });


     window.animations.PIXILoader.init().then(function() {
     mw.loader.using(['ext.gadget.md5hasher', 'ext.gadget.pixiLoader', 'ext.gadget.chibiAnimation']).then(function() {
        // Let's make sure the correct values are shown
      window.animations.PIXILoader.init().then(function() {
        $('.commander-sim-option').first().change();
          // Let's make sure the correct values are shown
      }, function(x,y,z) {
          $('.commander-sim-option').first().change();
        console.error("Loading Spine failed");
        }, function(x,y,z) {
rendererDiv.removeClass("loading");
          console.error("Loading Spine failed");
       }
          rendererDiv.removeClass("loading");
     );
        }
       );
    }, function(x,y,z) {
      console.error("Loading needed libraries failed");
      rendererDiv.removeClass("loading");
     });
   });
   });
}]);
}]);

Revision as of 14:51, 12 November 2019