helialprofile.png
Welcome to IOPWiki, Commander.
We are lacking editors focused on Girls' Frontline and Girls' Frontline 2. You can contribute without an account. Learn how to contribute and join our Discord server.

Difference between revisions of "Widget:StatTable"

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
(Another test)
(Added document-ready wait functionality as the MediaWiki does not wait for DOM)
 
(14 intermediate revisions by 2 users not shown)
Line 9: Line 9:
 
         //$("#fullart a img").attr("srcset", "/wiki/Special:Redirect/file/Springfield" + costumeSelection + ".png 1.5x, /wiki/Special:Redirect/file/Springfield" + costumeSelection + ".png 2x");
 
         //$("#fullart a img").attr("srcset", "/wiki/Special:Redirect/file/Springfield" + costumeSelection + ".png 1.5x, /wiki/Special:Redirect/file/Springfield" + costumeSelection + ".png 2x");
 
         $(".tdoll_chibi").attr("src", "/wiki/Special:Redirect/file/Springfield" + costumeSelection + "_S.png");
 
         $(".tdoll_chibi").attr("src", "/wiki/Special:Redirect/file/Springfield" + costumeSelection + "_S.png");
}
+
       
 
 
function testFunc() {
 
 
         // As we change the link, we have to update the Thumb-Cache of the Media Viewer
 
         // As we change the link, we have to update the Thumb-Cache of the Media Viewer
         mw.mmv.bootstrap.thumbs = [];
+
         // Clear up the thumbs cache
         mw.mmv.bootstrap.processThumbs($("#content"));
+
         if (mv && mv.mmv && mv.mmv.bootstrap && mv.mmv.bootstrap.viewer) {
        mw.mmv.bootstrap.viewer.initWithThumbs(mw.mmv.bootstrap.thumbs);
+
          mw.mmv.bootstrap.thumbs = [];
 
+
          // Search for all thumbs
        // Debug logs
+
          mw.mmv.bootstrap.processThumbs($("#content"));
        console.log("mw.mmv", mw.mmv);
+
          // Re-Init the viewer with the new thumbs
        console.log("mw.mmv.bootstrap", mw.mmv.bootstrap);
+
          mw.mmv.bootstrap.viewer.initWithThumbs(mw.mmv.bootstrap.thumbs);
        console.log("mw.mmv.bootstrap.thumbs", mw.mmv.bootstrap.thumbs);
+
         }
         console.log("mw.mmv.viewer", mw.mmv.viewer);
 
 
}
 
}
  
RLQ.push(function () {
+
RLQ.push(['jquery', function () {
  $(document).ready(function() {
+
  $(document).ready(function() {
 
if (document.getElementById("stat_table")) {
 
if (document.getElementById("stat_table")) {
 
         st_element = document.getElementById("stat_table");
 
         st_element = document.getElementById("stat_table");
Line 31: Line 28:
 
}
 
}
 
swap_costume();
 
swap_costume();
  });
+
  });
});
+
}]);
  
 
</script>
 
</script>
Line 42: Line 39:
 
<option value="<!--{$costume3path|escape:'html'}-->"><!--{$costume3|escape:'html'}--></option>
 
<option value="<!--{$costume3path|escape:'html'}-->"><!--{$costume3|escape:'html'}--></option>
 
</select>
 
</select>
 
<div id="dummydivformwtest">
 
<input id="testbuttonorso" onclick="testFunc()" value="test" type="button">forced trigger</input>
 
</div>
 
  
 
<div id="stat_table">test</div>
 
<div id="stat_table">test</div>
Line 61: Line 54:
 
|costume3path={{filepath:Springfield_costume3.png|420}}
 
|costume3path={{filepath:Springfield_costume3.png|420}}
 
}}
 
}}
 
</div>
 
  
 
<div id="fullart" style="float:left; padding: 10px;">[[file:Springfield.png|420px]]</div>
 
<div id="fullart" style="float:left; padding: 10px;">[[file:Springfield.png|420px]]</div>

Latest revision as of 15:10, 14 October 2019


test

Springfield.png
Springfield chibi.png