Anonymous

MediaWiki:Character-Banner.js: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
Tag: Reverted
Line 102: Line 102:
     }
     }
     changeCharacterLink('.char-banner-tree');
     changeCharacterLink('.char-banner-tree');
    var global_tree = 'Elsword';
    var global_display_tree = 'Elsword';


     $('.char-banner-tree').mouseleave(function (e) {
     $('.char-banner-tree').mouseleave(function (e) {
         var base_name = $(this)[0].dataset.base;
         var base_name = $(this)[0].dataset.base;
         if (base_name == 'LuCiel') base_name = 'Lu/Ciel';
         if (base_name == 'LuCiel') base_name = 'Lu/Ciel';
         $('.char-banner-title').text($(this)[0].dataset.displayBase);
         $('.char-banner-title').text(global_display_tree);
         $('.char-banner-image').html(face(base_name.replace('/', '')));
         $('.char-banner-image').html(face(global_tree));
         changeCharacterLink(this);
         changeCharacterLink(this);
     });
     });
    var global_tree = 'Elsword';
    var global_display_tree = 'Elsword';


     $('.character-banner-select a').click(function (e) {
     $('.character-banner-select a').click(function (e) {