Welcome to IOPWiki, Commander.
We are searching for editors to complete gameplay topics in all games. You can contribute without an account. Learn how to contribute and join our Discord server.

Widget:costumeSwitcher: 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
Pianoforte (talk | contribs)
No edit summary
Pianoforte (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly><script>
<includeonly><script>
function swap_costume() {
function swap_costume() {
         costumeSelection = document.getElementById("costumeSelection").value;
         costumeSelectionPathsString = document.getElementById("costumeSelection").value;


         costumePaths = costumeSelection.split(",,");
        costumeSelectionIndex = document.getElementById("costumeSelection").selectedIndex;
        if (costumeSelectionIndex == 0)
          reInitGirl("");
        else
          reInitGirl("_costume" + costumeSelectionIndex);
 
 
         costumePaths = costumeSelectionPathsString.split(",,");


         $("#fullart a").attr("href", costumePaths[0]);
         $("#fullart a").attr("href", costumePaths[0]);
Line 19: Line 26:




        //$("#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", costumePaths[3]);
         $(".tdoll_chibi").attr("src", costumePaths[3]);
          
          
         // 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
Line 37: Line 44:
RLQ.push(function () {
RLQ.push(function () {
   $(document).ready(function() {
   $(document).ready(function() {
swap_costume();
//swap_costume();
   });
   });
});
});

Revision as of 05:30, 28 December 2017


test