User:Steven Winterson/global.js

/* Mountain Chat (2Actimv) */ /* If you want to use this code as well you can add the following code into yourusername/wikia.css: @import "http://community.wikia.com/index.php?title=User:2Actimv/wikia.css&action=raw&ctype=text/css"; */ /*(please note that the code on this page can change and thereby the code you use as well)*/ /* Original version made by AmonFatalis and 2Actimv */ /* Christmas version made by 2Actimv */ /* New Year's Eve version made by 2Actimv */ /* Mountain version made by 2Actimv */ .inline-alert { color: #E3E2E2 !important; } .Chat .you { background: transparent; }

.Chat ul li { background: transparent; } .Chat .you a, .Chat ul li a { color: aqua; } .Chat img { border-radius: 0px; border: none !important; }

.Chat img.avatar { border-radius: 5px; border: none; } .Write .message { background-color: transparent; border: 0px solid black; }

.Write .message textarea { width: 98% !important; background: transparent; border: 0.5px dotted black; } .Write img { border-radius: 5px; border: none; margin: auto !important; } .Write [name="message"] { background-color: transparent; border: 0; color: #E3E2E2; text-shadow: 2px 2px 6px black; } .WikiChatList img { border-radius: 3px; border: none; }

.WikiChatList .User:hover, .PrivateChatList .User:hover { margin: 0px 0px 0px 7px !important; -moz-transition: all linear 400ms; -ms-transition: all linear 400ms; -o-transition: all linear 400ms; transition: all linear 400ms; background: transparent !important; } .User .username { background-color: transparent; color: #E3E2E2; border: 0px solid black; border-radius: 4px; }

.User .username:hover { color: aqua !important; } .ChatHeader { background: rgba(0,0,0,0.7); background: -moz-linear-gradient(left, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 58%, rgba(0,0,0,0.56) 70%, rgba(0,203,210,0.4) 84%, rgba(0,247,255,0.38) 87%, rgba(0,247,255,0.36) 90%, rgba(0,0,0,0.3) 100%); background: -webkit-gradient(left top, right top, color-stop(0%, rgba(0,0,0,0.7)), color-stop(58%, rgba(0,0,0,0.7)), color-stop(70%, rgba(0,0,0,0.56)), color-stop(84%, rgba(0,203,210,0.4)), color-stop(87%, rgba(0,247,255,0.38)), color-stop(90%, rgba(0,247,255,0.36)), color-stop(100%, rgba(0,0,0,0.3))); background: -webkit-linear-gradient(left, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 58%, rgba(0,0,0,0.56) 70%, rgba(0,203,210,0.4) 84%, rgba(0,247,255,0.38) 87%, rgba(0,247,255,0.36) 90%, rgba(0,0,0,0.3) 100%); background: -o-linear-gradient(left, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 58%, rgba(0,0,0,0.56) 70%, rgba(0,203,210,0.4) 84%, rgba(0,247,255,0.38) 87%, rgba(0,247,255,0.36) 90%, rgba(0,0,0,0.3) 100%); background: -ms-linear-gradient(left, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 58%, rgba(0,0,0,0.56) 70%, rgba(0,203,210,0.4) 84%, rgba(0,247,255,0.38) 87%, rgba(0,247,255,0.36) 90%, rgba(0,0,0,0.3) 100%); background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 58%, rgba(0,0,0,0.56) 70%, rgba(0,203,210,0.4) 84%, rgba(0,247,255,0.38) 87%, rgba(0,247,255,0.36) 90%, rgba(0,0,0,0.3) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#000000', GradientType=1 ); border-radius: 15px; border: 1.5px solid black; font-size: 105% !important; } .ChatHeader img { border-radius: 3px; border: none; } .ChatHeader .private { color: #E3E2E2; } .Rail .private { background-color: transparent; color: #E3E2E2; background-image: none; } .PrivateChatList .User img { border-radius: 3px; } .PrivateChatList .User:hover { background: transparent; } .Chat .me-message { background-color: transparent; color: #E3E2E2; border: 1px solid aqua; padding: 0px 2px; border-radius: 4px; } .Rail .selected { box-shadow: none; background: transparent; } .User.away .status { color: white; } .Chat li { background: transparent; color: #E3E2E2; } .Chat .time { color: #E3E2E2; font-size: 13px; } .Chat { background: transparent !important; border: 0px solid black; border-bottom: none; border-top-left-radius: 8px; border-right: none !important; }

.Write { background: transparent !important; border:0px solid black; border-top: 0px solid black !important; border-right: 0px solid black !important; border-bottom-left-radius: 8px; border-right: none; }

.Rail { background: transparent !important; border: 0px solid black; border-bottom-right-radius: 8px; border-top-right-radius: 8px; border-left: none; }

.ChatWindow .WikiaPage { background: rgba(0, 0, 0, 0.45) !important; color: #E3E2E2; border-radius: 8px !important; border: 1.5px solid black !important; text-shadow: 2px 2px 6px black; } .ChatWindow { background: url(http://img3.wikia.nocookie.net/__cb20141217140724/2actimv/images/d/d8/Mountain_Picture.jpg) center top !important; font-weight: bold; }

.UserStatsMenu { text-shadow: 0px 0px 0px black !important; } /* End of Mountain Chat (2Actimv) */ importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); //Tab insert for usernames $('[name="message"]').after(' [0,"","",0,null] '); $('[name="message"]').keydown(function(e) { 	if (e.keyCode == 9) { 		e.preventDefault; 		var curval = this.value; 		var afData = eval(document.getElementById('autofilldata').innerHTML); 		var curpos = afData[3]==0?getCaretPos(this):afData[3]; 		var carpos = getCaretPos(this) 		if ((!curval.charAt(carpos)||curval.charAt(carpos).match(/\s/))&&!curval.charAt(carpos-1).match(/\s/)&&this.value.length) { 			var unamestart = ; 			if (afData[1].length==0) { 				for (i=curpos-1;i>=0&&!curval.charAt(i).match(/\s/);i--) { 					unamestart = curval.charAt(i) + unamestart; 				} 			} else { 				unamestart = afData[1]; 			} 			var afterTComplete = ; 			for (i=curpos;i<curval.length;i++) { 				afterTComplete += curval.charAt(i); 			} 			//generate list of users 			var userList = ''; 			var userlistelems = document.getElementsByClassName('User'); 			for (i=0;i=0&&i>=carpos-(!(afData[4]===null)?(matchedNames[afData[4]]?matchedNames[afData[4]].length:0) : unamestart.length)&&matchedNames.length>0;i--) { newval[i] = ''; } 			matchedNames = !matchedNames[0]?['']:matchedNames; newval[curpos-unamestart.length] += matchedNames[afData[0]]?matchedNames[afData[0]]:''; newval = newval.join(''); this.value = newval; setCaretPos(this, curpos+(matchedNames[afData[0]].length?matchedNames[afData[0]].length:0)) var iter = afData[0]>=matchedNames.length-1?0:afData[0]+1; document.getElementById('autofilldata').innerHTML = '['+iter+',"'+unamestart+'","'+matchedNames[afData[0]]+'",'+curpos+','+afData[0]+']' } 		return false; } else if (e.which != 16) { document.getElementById('autofilldata').innerHTML = '[0,"","",0,null]'; } }).click(function { document.getElementById('autofilldata').innerHTML = '[0,"","",0,null]'; }).blur(function { document.getElementById('autofilldata').innerHTML = '[0,"","",0,null]'; })