MediaWiki:Wikia.js

/* Mainpage */ if(wgPageName == "Star_Wars_Fanpedia") { addOnloadHook(function {		/** Video button icon **/		$('.mainpage-button-mustseevideo').prepend('Add a video');

/** Blogs button icon **/ $('.mainpage-button-communitynews').prepend('Create news');

/** Chat button icon **/ $('.mainpage-box-chat-chat .ChatModule .wikia-button').prepend('');

/** Poll text class **/ $('.mainpage-box-poll .total').parent.addClass('pollText');

/** Make sure the Welcome boxes are the same height **/ var todoBoxHeight = $('.mainpage-box-todo').height; var todoBoxHeightPadding = parseInt(todoBoxHeight) + 16 + 'px'; $('.mainpage-box-welcome-text').css('height',todoBoxHeightPadding); $(window).on('resize',function {			var todoBoxHeight = $('.mainpage-box-todo').height;			var todoBoxHeightPadding = parseInt(todoBoxHeight) + 16 + 'px';			$('.mainpage-box-welcome-text').css('height',todoBoxHeightPadding);		}); }); }

var SocialMediaButtons = { position: "top", colorScheme: "color", buttonSize: "default" }; importScriptPage('SocialIcons/code.js','dev');