MediaWiki:Wikia.js

importScriptPage('InactiveUsers/code.js', 'dev'); importScriptPage('SpoilerAlert/code.js', 'dev'); importScriptPage('BackToTopButton/code.js', 'dev'); importScriptPage('ShowHide/code.js', 'dev'); importScriptPage('EditIntroButton/code.js', 'dev'); importScriptPage('AjaxRC/code.js', 'dev'); importScriptPage('SignatureCheck/code.js', 'dev'); importScriptPage('AutoEditDropdown/code.js', 'dev'); importScriptPage('PurgeButton/code.js', 'dev'); importScriptPage('RevealAnonIP/code.js', 'dev'); importScriptPage('ListFiles/code.js', 'dev'); importScriptPage('View_Source/code.js', 'dev'); importScriptPage('ReferencePopups/code.js', 'dev'); importScriptPage('ArchiveTool/code.js', 'dev'); importScriptPage('FastDelete/code.js', 'dev'); importScriptPage('PortableCSSPad/code.js', 'dev'); importScriptPage('Wikimarks/code.js', 'dev'); importScriptPage('AllPagesHideRedirect/code.js', 'dev'); importScriptPage('Highlight/code.css', 'dev'); importScriptPage('MediaWiki:Wikia.js/cancelButton.js', 'admintools'); importScriptPage('MediaWiki:Common.js/accountNavigation.js', 'runescape'); importScriptPage('MediaWiki:Common.js/StandardEditSummaries.js', 'terraria'); importScript('MediaWiki:Wikia.js/editCount.js'); importScript('MediaWiki:Wikia.js/Ticker.js'); importScript('MediaWiki:Wikia.js/userRightsIcons.js'); importScript('MediaWiki:Wikia.js/aboutus.js'); ajaxPages = ["Special:WikiActivity","Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions","Special:Forum"]; AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; importScriptPage('AjaxRC/code.js', 'dev'); if (!$('script[src*="title=User:'+wgUserName+'/wikia.js"]').length) { importScript('User:' + wgUserName + '/wikia.js'); } if (!$('link[href*="title=User:'+wgUserName+'/wikia.css"]').length) { importStylesheet('User:' + wgUserName + '/wikia.css'); } /* Insert username for */ $(function {   if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return;    $("span.insertusername").text(wgUserName); });

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/central/images/b/b4/Button_category03.png", "speedTip": "Category", "tagOpen": "[[Category:",    "tagClose": "]]", "sampleText": "Category name"}; } if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#REDIRECT ",    "tagClose": "", "sampleText": "Insert text"}; } if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/avatar/images/4/4d/Support_Button.png", "speedTip": "Support", "tagOpen": "", "sampleText": "Insert text"}; } if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images3.wikia.nocookie.net/avatar/images/9/9f/Oppose_Button.png", "speedTip": "Oppose", "tagOpen": "", "sampleText": "Insert text"}; } if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/avatar/images/7/7e/Neutral_Button.png", "speedTip": "Neutral", "tagOpen": "", "sampleText": "Insert text"}; }

/* Adds icons to page header bottom border */ $(function {	if (skin == "oasis" || skin == "wikia") {		$('.WikiaPageHeader').append($('#icons'));		$('#icons').css({'position' : 'absolute', 'right' : '0', 'bottom' : '-1.2em'});	} });

//wsl.loadScript("http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"); //wsl.loadScript("http://dragonage.wikia.com/index.php?title=MediaWiki:Jquery-ui.min.js&action=raw&ctype=text/javascript"); mw.loader.using( ['jquery.ui.tabs'], function { $(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;  }); $('#portal_next').click(function {   $tabs.tabs('select', ($tabs.tabs('option', 'selected') == ($tabs.tabs('length'))-1) ? 0 : $tabs.tabs('option', 'selected') + 1 ); // switch to next tab   return false;  }); $('#portal_prev').click(function { // bind click event to link   $tabs.tabs('select', ($tabs.tabs('option', 'selected') == 0) ? ($tabs.tabs('length')-1) : $tabs.tabs('option', 'selected') - 1 ); // switch to previous tab   return false;  }); }); } );

/* Sitenotice */ var cookieName = "dismissSiteNotice="; var cookiePos = document.cookie.indexOf(cookieName); var siteNoticeID = "2.13"; var siteNoticeValue = "\x3cdiv id=\"localNotice\" lang=\"en\" dir=\"ltr\"\x3e\x3cbig\x3e\x3ccenter\x3eRhythm Heaven Wiki now has a fully customized wiki CSS and chat. \x3cb\x3e\x3ca href=\"/wiki/Special:Chat\" title=\"Rhythm Heaven Wiki Chat\"\x3eEnter the chat!\x3c/a\x3e\x3c/b\x3e Be sure to read all of the wiki's \x3cb\x3e\x3ca href=\"/wiki/Category:Policy\" title=\"Category:Policy - list of policies\"\x3epolicies\x3c/a\x3e\x3c/b\x3e \x3c/center\x3e\x3c/big\x3e\n\x3cp\x3e\x3cbr /\x3e\n\x3c/p\x3e\n\x3cbig\x3e\x3ccenter\x3eTo report all vandalism, contact an \x3cb\x3e\x3ca href=\"/wiki/Project:Administrator\" title=\"Local Administrators\"\x3eadmin\x3c/a\x3e\x3c/b\x3e. To report a global vandal, contact \x3cb\x3e\x3ca href=\"/wiki/w:Help:SpamTaskForce\" title=\"Volenteer Spam Task Force\"\x3eVSTF\x3c/a\x3e\x3c/b\x3e. Have fun on the wiki!"; var cookieValue = ""; var cookieValue = ""; var msgClose = "dismiss"; if (cookiePos > -1) { cookiePos = cookiePos + cookieName.length; var endPos = document.cookie.indexOf(";", cookiePos); if (endPos > -1) { cookieValue = document.cookie.substring(cookiePos, endPos); } else { cookieValue = document.cookie.substring(cookiePos); } } if (cookieValue != siteNoticeID) { function dismissNotice { var date = new Date; date.setTime(date.getTime + 30*86400*1000); document.cookie = cookieName + siteNoticeID + "; expires="+date.toGMTString + "; path=/"; var element = document.getElementById('mw-dismissable-notice'); element.parentNode.removeChild(element); }	document.writeln('<table id="mw-dismissable-notice" style="position:fixed;bottom:40px;right:2px;font-size:8px;z-index:99999999999999999999;width:200px;border:4px ridge midnightblue;border-radius:10px; background: -moz-linear-gradient(left, #FFFFFF, #FF00FF);background: -webkit-gradient(linear,left, #FFFFFF, #FF00FF); background: -webkit-linear-gradient(left, #FFFFFF, #FF00FF); background: -o-linear-gradient(left, #FFFFFF, #FF00FF); background: -ms-linear-gradient(left, #FFFFFF, #FF00FF); background: linear-gradient(to right, #FFFFFF, #FF00FF); background: linear-gradient(to right, #FF00FF, #0000FF) !important;text-align:left"> '+siteNoticeValue+'  '); document.writeln(' ['+msgClose+']  '); }