Anonymous

MediaWiki:Character-Banner.js: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
Line 5: Line 5:
     var isMobile = $('body').hasClass('skin-minerva') ? true : false;
     var isMobile = $('body').hasClass('skin-minerva') ? true : false;
     $('#p-Characters-label + .mw-portlet-body #nav > ul > li > a').each(function () {
     $('#p-Characters-label + .mw-portlet-body #nav > ul > li > a').each(function () {
         classes.push($(this).attr('title').replace('Lu/Ciel', 'LuCiel').replace(/\/(.*?)/g, ''))
         classes.push($(this).attr('title').replace('Lu/Ciel', 'LuCiel').replace(/(\/.*)/g, ''))
     });
     });
     console.log(classes);
     console.log(classes);