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
Toggling the mod-button
Added document-ready wait functionality as the MediaWiki does not wait for DOM
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><script>
<includeonly><script>
RLQ.push(function () {
RLQ.push(['jquery', function () {
   $(document).ready(function() {
   $(document).ready(function() {
     // Let's make sure the correct values are shown
     // Let's make sure the correct values are shown
     $('.modswitcher').change();
     $('.modswitcher').change();
   });
   });
});
}]);


function swap_mod(element) {
function swap_mod(element) {
Line 27: Line 27:
   // ToDo: find a better way of finding out if it's a mod
   // ToDo: find a better way of finding out if it's a mod
   // ToDo: find a better way of telling which skills are available with which mod
   // ToDo: find a better way of telling which skills are available with which mod
   var isMod = selectBox.find(':selected').text().indexof('MOD') >= 0;
   var isMod = selectBox.find(':selected').text().indexOf('MOD') >= 0;
   statContainer.find('.skillform .tabButtonLane button').last().toggle(isMod);
   statContainer.find('.skillform .tabButtonLane button').last().toggle(isMod);
    
    
Line 75: Line 75:
         selectBox.closest('.costumeContainer').find('.chibiAnimation,.live2dAnimation,.artTab').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 = "https://en.gfwiki.com/images/"; // ToDo: find a better way to find out the base path
         var tdollId = selectBox.closest('.costumeContainer').find('.tdoll_chibi').data('tdollId');
         var tdollId = selectBox.closest('.costumeContainer').find('.tdoll_chibi').data('tdollId');
         var costumeId = tdollId + chibiCostumeName;
         var costumeId = tdollId + chibiCostumeName;

Latest revision as of 15:07, 14 October 2019


test