ElEditors, Interface administrators, Administrators
70,980
edits
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
Line 6: | Line 6: | ||
classes.push($(this).attr('title').replace('/', '')) | classes.push($(this).attr('title').replace('/', '')) | ||
}); | }); | ||
function classesIntoMaps() { | |||
for (let classx of classes) { | |||
var apix = api.parse( | |||
'[[File: Face - ' + classx + '.png]]', { contentmodel: 'wikitext', wrapoutputclass: '', disablelimitreport: true }); | |||
apix.then(function (text) { | |||
maps[classx] = text.match(/\/wiki(.*?)\.png/g)[0]; | |||
}); | |||
} | |||
} | |||
if ($('body').hasClass('skin-minerva')) { | if ($('body').hasClass('skin-minerva')) { | ||
Line 18: | Line 28: | ||
}); | }); | ||
$('#sidebar-content').remove(); | $('#sidebar-content').remove(); | ||
classesIntoMaps(); | |||
}); | }); | ||
$('.character-banner-select a').off('click').attr('href', ''); | |||
} | } | ||
classesIntoMaps(); | |||
var face_coords = function (path_no, job_no) { | var face_coords = function (path_no, job_no) { |