ElEditors, Interface administrators, Administrators
70,888
edits
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary |
||
Line 12: | Line 12: | ||
function classesIntoMaps() { | function classesIntoMaps() { | ||
var apix; | var apix; | ||
var i = 1; | |||
for (let classx of classes) { | for (let classx of classes) { | ||
var apix = api.parse( | var apix = api.parse( | ||
Line 18: | Line 19: | ||
maps[classx] = text.match(/\/wiki(.*?)\.png/g)[0]; | maps[classx] = text.match(/\/wiki(.*?)\.png/g)[0]; | ||
}); | }); | ||
i++; | |||
if (i == classes.length) { | |||
apix.done(function(){ | |||
$('.character-banner-select').addClass('loading-done'); | |||
}); | |||
} | |||
} | } | ||
} | } | ||