MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

/* Articles are interwiki links so that other wikis can use them. */   articles = [ 'u:dev:UserTags/code.js', 'u:dev:ExtendedNavigation/code.js', 'u:dev:Countdown/code.js', 'w:c:dev:TopEditors/code.js', 'w:c:spottra:MediaWiki:Common.js/Storage.js', 'w:c:spottra:MediaWiki:Common.js/Numeral.js', 'w:c:clashofclans:MediaWiki:Common.js/Sliders.js', 'w:c:boombeach:MediaWiki:Common.js/calc.js', 'w:c:boombeach:MediaWiki:Common.js/insertusername.js', 'w:c:boombeach:MediaWiki:Common.js/Protection.js', 'w:c:boombeach:MediaWiki:Common.js/jsColor.js', 'w:c:boombeach:MediaWiki:Common.js/NotificationIcon.js', 'w:c:boombeach:MediaWiki:Common.js/Fire.js', 'w:c:boombeach:MediaWiki:Common.js/Highcharts.js', 'w:c:boombeach:MediaWiki:Common.js/Highcharts-data.js', 'w:c:boombeach:MediaWiki:Common.js/Highcharts-charts-fromTable.js' ];   // Use Wikia's importArticles function to load JavaScript files window.importArticles({       type: 'script',        articles: articles    });

// General Changes $(document).ready(function {   // Move CoCLink (template) to page header bar    $('#CoCLink').appendTo('header#WikiaPageHeader');    // Click the notification icon to reveal hidden banners (Template:Notification)    $('#Reveal-Trigger').click(function { $('.Revealable').slideToggle("slow"); });   // Click element with this class to bring up an alert with the element's title attribute's contents (Template:Help)    $(".titleAlert").click(function { alert($(this).attr("title")); });   // Template:CollapsibleContent    $("table.collapsing-table tr.collapsing-table-trigger td").click(function { $(this).parent("tr").siblings("tr").children("td").fadeToggle(600); $(this).children("p.collapsing-table-trigger-messages").children("span.collapsing-table-trigger-text").toggleClass("collapsing-table-trigger-text-hidden"); }); });