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
m Typo
Removed some references and added a trigger
Line 25: Line 25:
         }
         }


         selectBox.closest('.costumeContainer').find('.chibiAnimation,.live2dAnimation').trigger("costume_changed", chibiCostumeName);
         selectBox.closest('.costumeContainer').find('.chibiAnimation,.live2dAnimation,.artTab').trigger("costume_changed", chibiCostumeName);
          
          
         var basePath = "http://en.gfwiki.com/images/"; // ToDo: find a better way to find out the base path
         var basePath = "http://en.gfwiki.com/images/"; // ToDo: find a better way to find out the base path
Line 33: Line 33:
         var cpp = window.gfUtils.createWikiPathPart;
         var cpp = window.gfUtils.createWikiPathPart;
          
          
        var fullartPath = basePath + "thumb/" + cpp(costumeId +".png") + costumeId +".png/420px-" + costumeId +".png";
        var fullartDamagedPath = basePath + "thumb/" + cpp(costumeId +"_D.png") + costumeId +"_D.png/420px-" + costumeId +"_D.png";
        var fullartSPath = basePath + cpp(costumeId +"_S.png") + costumeId +"_S.png";
         var chibiPath = basePath + cpp(costumeId +"_chibi.png") + costumeId +"_chibi.png";
         var chibiPath = basePath + cpp(costumeId +"_chibi.png") + costumeId +"_chibi.png";
 
       
        $("#fullart a").attr("href", fullartPath );
        $("#fullart a img").attr("src", fullartPath );
        $("#fullart a img").attr("srcset", fullartPath );
        $("#fullart a img").attr("alt", fullartPath );
 
        $("#fullart_D a").attr("href", fullartDamagedPath );
        $("#fullart_D a img").attr("src", fullartDamagedPath );
        $("#fullart_D a img").attr("srcset", fullartDamagedPath );
        $("#fullart_D a img").attr("alt", fullartDamagedPath );
         $("#fullart_S").attr("src", fullartSPath);
         $("#fullart_S").attr("src", fullartSPath);
         $("#fullart_S").attr("srcset", fullartSPath);
         $("#fullart_S").attr("srcset", fullartSPath);

Revision as of 03:02, 13 January 2018


test