MediaWiki:Common.js

importArticles({   type: "script",    articles: [        "w:c:dev:Countdown/code.js",        "User:Jens_Ingels/common.js/flash.js",        "w:c:dev:RevealAnonIP/code.js",        "w:c:dev:FixWantedFiles/code.js",        "w:c:dev:SearchSuggest/code.js",        "MediaWiki:Common.js/Plugin/Cycle.js"    ] });

window.UserTagsJS = { modules: {}, tags: { // group: { associated tag data } montheditor: { u:'Editor of the Month' }, featured: { u:'Featured' }, templates: { u:'Templates Guru' } },	oasisPlaceBefore: '' }; importArticle({type:'script', article:'w:c:dev:UserTags/code.js'});

/* Thumbs Switch Controller */ $('.dc-switcher').prepend($('.dc-thumb2')); $('.dc-switcher').prepend($('.dc-thumb1')); $('.dc-switcher').prepend($('.dc-thumb0'));

$('td.dc-switcher').mouseenter(function { $("td.dc-switcher div").removeClass("dc-active"); $("div.dc-thumb3").addClass("dc-active"); $('div.dc-thumb3').cycle({ fx:   'curtainX', sync: false, delay: -2000 }); });

$('td#thumb2-activator').mouseenter(function { $("td.dc-switcher div").removeClass("dc-active"); $("div.dc-thumb2").addClass("dc-active"); $('div.dc-thumb2').cycle({ fx:   'curtainX', sync: false, delay: -2000 }); });

$('td#thumb1-activator').mouseenter(function { $("td.dc-switcher div").removeClass("dc-active"); $("div.dc-thumb1").addClass("dc-active"); $('div.dc-thumb1').cycle({ fx:   'curtainX', sync: false, delay: -2000 }); });

$('td#thumb0-activator').mouseenter(function { $("td.dc-switcher div").removeClass("dc-active"); $("div.dc-thumb0").addClass("dc-active"); $('div.dc-thumb0').cycle({ fx:   'curtainX', sync: false, delay: -2000 }); });

$('TR#dc-navbox-header').mouseleave(function { $("td.dc-switcher div").removeClass("dc-active"); $("td.dc-switcher div.dc-thumb3").addClass("dc-active"); });

/* Forum Description Controller */ $('.dc-switcher').prepend($('.dc-popup'));

/* Forum Design */ $('ul.boards').prepend(' Welcome to the Dragon City Wikia Forum. '); $('li.board-140142').before(' Questions  '); $('li.board-117992').before(' News  '); $('li.board-127124').before(' Report  '); $('li.board-117995').before(' Other  '); $('[data-board-namespace="2000"]').prepend('     The topic that you want to post can already exist. Please navigate arround before you post something.     ');

/* Replaces with the username */ function UserNameReplace { if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return; $("span.insertusername").html(wgUserName); } addOnloadHook(UserNameReplace);

/*Alternate Tab Function - by ShermanTheMythran*/ //relies on Template:Tabs $('.tabBox').append('<style type="text/css">.tabTitle{display:inline-block;background:rgba(192,192,192,.1) !important;background:silver;padding:5px 5px 0;margin:-5px 5px 0;border-radius:100% 100% 0 0/10px 10px 0 0;-webkit-border-radius: 100% 100% 0 0/10px 10px 0 0;cursor:pointer;transition:background .5s;-moz-transition:background .5s;-webkit-transition:background .5s;-o-transition:background .5s}.tabTitle.active{background:rgba(192,192,192,.3) !important;font-weight:bold}.tabTitle:hover{background:rgba(192,192,192,.5) !important} '); $('.tabTitle').click(function{$('.tabTitle').removeClass('active');$(this).addClass('active');}); $('#tab-1').click(function{$('.tabContent').hide;$('#tab-1-content').show;}); $('#tab-2').click(function{$('.tabContent').hide;$('#tab-2-content').show;}); $('#tab-3').click(function{$('.tabContent').hide;$('#tab-3-content').show;}); $('#tab-4').click(function{$('.tabContent').hide;$('#tab-4-content').show;}); $('#tab-5').click(function{$('.tabContent').hide;$('#tab-5-content').show;}); $('#tab-6').click(function{$('.tabContent').hide;$('#tab-6-content').show;}); $('#tab-7').click(function{$('.tabContent').hide;$('#tab-7-content').show;}); $('#tab-8').click(function{$('.tabContent').hide;$('#tab-8-content').show;}); $('#tab-9').click(function{$('.tabContent').hide;$('#tab-9-content').show;}); $('#tab-10').click(function{$('.tabContent').hide;$('#tab-10-content').show;}); /* HeaderTabs Link Color Fix*/ $('div').removeClass('jquery-large .ui-widget-content a')