We need TW players to complete the article of the region-locked game Fingertips Breakout.
We're aware of an issue which causes comments to only appear after a long delay and are working on a solution.
You don't need an account to add and correct this Wiki. Learn how to contribute, browse Bounties 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 Single instead of Double quotes
First try for swap_mod
Line 1: Line 1:
<includeonly><script>
<includeonly><script>
funciton swap_mod(element) {
  var selectBox = $(element);
  var selectedValue = selectBox.find(':selected').val();
  var tmp = new DOMParser().parseFromString(selectedValue, "text/html");
  var tdollData = jQuery.parseJSON(tmp.documentElement.textContent);
 
  var statContainer = selectBox.closest('.stattable');
 
  for (var key in tdollData) {
    if (!tdollData.hasOwnProperty(key)) {
      continue;
    }
   
    statContainer.find('*[data-tdoll-stat-id="' + key + '"]').text(tdollData[key]);
  }
}
function swap_costume(element) {
function swap_costume(element) {
     var neededGadgets = [ 'ext.gadget.md5hasher' ];
     var neededGadgets = [ 'ext.gadget.md5hasher' ];

Revision as of 00:25, 29 January 2018


test