MediaWiki:SwitchInfoMode.js

if ($('.infoExpert').length > 0){ var $infoNormal = $('.infoNormal'); var $infoExpert = $('.infoExpert'); $('.statTitle').remove; var $switchNormal = $('.switchNormal').append('[Normal]'); var $switchExpert = $('.switchExpert').append('[Expert]');

$switchNormal.css('font-weight','bold').css('color','#063B5E'); $switchExpert.css('font-weight','200').css('color','#063B5E');

var stats = ['Life', 'Money', 'Damage', 'Knockback', 'AI', 'Defense', 'Stack', 'Power', 'Drops'];

$('.switchNormal').click(function{       $.each(stats, function(data, stat){ if ($('.expert' + stat).length > 0){ var expValue = $('.expert' + stat).html; var normValue = $('.normal' + stat).html; $('.normal' + stat).html(expValue); $('.expert' + stat).html(normValue); }       });        $switchNormal.css('font-weight','bold');    	$switchExpert.css('font-weight','200');    }); $('.switchExpert').click(function{       $.each(stats, function(data, stat){ if ($('.expert' + stat).length > 0){ var expValue = $('.expert' + stat).html; var normValue = $('.normal' + stat).html; $('.normal' + stat).html(expValue); $('.expert' + stat).html(normValue); }       });        $switchNormal.css('font-weight','200');    	$switchExpert.css('font-weight','bold');    }); }