ElEditors, Interface administrators, Administrators
70,888
edits
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
classes.push($(this).attr('title').replace('/', '')) | classes.push($(this).attr('title').replace('/', '')) | ||
}); | }); | ||
$('.character-banner-select a:eq(0)').addClass('active'); | |||
function classesIntoMaps() { | function classesIntoMaps() { | ||
Line 97: | Line 99: | ||
$('.character-banner-select a').click(function (e) { | $('.character-banner-select a').click(function (e) { | ||
e.preventDefault(); | e.preventDefault(); | ||
$(this).addClass('active') | $('.character-banner-select a').removeClass('active'); | ||
$(this).addClass('active'); | |||
var base_name = $(this).find('img').attr('alt').replace(/Icon - (.*?)\.png/g, '$1'); | var base_name = $(this).find('img').attr('alt').replace(/Icon - (.*?)\.png/g, '$1'); | ||
if (base_name == 'LuCiel (Lu)') base_name = 'LuCiel'; | if (base_name == 'LuCiel (Lu)') base_name = 'LuCiel'; |