MediaWiki:Common.js

importScriptPage('MediaWiki:Wikia.js/cancelButton.js', 'admintools');

$(function {   $('#fitin div').css('font-size', '15px');    while( $('#fitin div').height > $('#fitin').height ) {        $('#fitin div').css('font-size', (parseInt($('#fitin div').css('font-size')) - 1) + "px" );    } });

window.AjaxRCRefreshText = 'Auto-refresh'; window.AjaxRCRefreshHoverText = 'Automatically refresh the page'; window.ajaxPages = ["Special:RecentChanges","Special:WikiActivity"];

mw.loader.using( ['jquery.ui.tabs'], function { $(document).ready(function { var $tabs = $("#portal_slider").tabs({ fx: {opacity:'toggle', duration:100} } ); $("[class^=portal_sliderlink]").click(function { // bind click event to link   $tabs.tabs('select', this.className.replace("portal_sliderlink_", ""));    return false;  }); }); });