User:TuLen/chat.js

/*Копируем всё в наглую у смлда*/

console.log('MyChat.js has been loaded'); mw.loader.using( ['jquery.ui.button','jquery.ui.dialog'], function {    $(document).ready(function { $("#Rail").append(' Темы оформления '); $(".ChatHeader > .wordmark").append(' Стандартная Флаттершай Космос '); $("#StandartTheme").button; $("#Theme1").button; $("#Space").button; $('#themes').click(function {           $("#ThemesSelest").dialog("open");        }); $("#ThemesSelest").dialog({           modal:true, width:400, height:210, autoOpen:false        }); $("#StandartTheme").click(function {           $("#ThemesSelest").dialog("close");            $(".ChatWindow").css({"background":"none","background-color":"white"});            $(".Chat").css({"background-image":"none","background-color":"white","text-shadow":"none","color":"black"});            $(".Chat .inline-alert").css({"background-color":"white","margin-top-bottom":"0px","color":"#9c9c9c"});            $(".ChatHeader").css({"background":"white","color":"#3a3a3a"});            $("#WikiaPage").css({"background":"white","color":"#3a3a3a"});            $(".Write .message").css("background","white");            $(".Write [name='message']").css("color","#3a3a3a");            $(".ChatHeader > .wordmark > div").css("color","#3a3a3a");            $(".ChatHeader > .wordmark > div a").css("color","#006cb0");        });

$("#Theme1").click(function {           $("#ThemesSelest").dialog("close");            $(".ChatWindow").css("background","url(http://img4.wikia.nocookie.net/__cb20140420142701/tulensandbox/ru/images/3/38/Fluttershy_размазня.jpg)");            $(".Chat").css({"background":"url(http://img3.wikia.nocookie.net/__cb20140419165130/tulensandbox/ru/images/8/8a/Fluttershy_v3.jpg)","background-position":"bottom","background-size":"100%","background-repeat":"no-repeat","background-color":"#eac41d","color":"white","text-shadow":"0 0 10px gray"});            $(".Chat .inline-alert").css({"background":"rgba( 0, 0, 0, 0.5)","margin-top-bottom":"15px","color":"white"});            $(".ChatHeader").css({"background":"rgba( 0, 0, 0, 0.5)","color":"white"});            $("#WikiaPage").css({"background":"rgba( 0, 0, 0, 0.5)","color":"white"});            $(".Write .message").css("background","rgba( 0, 0, 0, 0.5)"); $(".Write [name='message']").css("color","#FFF"); $(".ChatHeader > .wordmark > div").css("color","#FFF"); $(".ChatHeader > .wordmark > div a").css("color","whitesmoke"); }); /*Тема космоса*/       $("#Space").click(function { $("#ThemesSelest").dialog("close"); $(".ChatWindow").css({"background":"none","background-color":"black"}); $(".Chat").css({"background":"url(http://img3.wikia.nocookie.net/__cb20140507165307/tulensandbox/ru/images/4/4f/Space.jpg)","background-position":"bottom","background-size":"100%","background-repeat":"no-repeat","background-color":"black","border-color":"#886914","color":"white","text-shadow":"black 1px 1px 0px"}); $(".Chat .inline-alert").css({"background":"url(http://img2.wikia.nocookie.net/__cb20140509091810/tulensandbox/ru/images/b/be/Orange_hologram.png)","border-top-style":"solid","border-bottom-style":"solid","border-color":"#886914","border-width":"2px","box-shadow":"0 0 15px #bc7a11","color":"white"}); $("li.inline-alert").eq(0).html('Бобро пожаловать в чат поней Crush, Kill, Destroy, Swag'); $(".ChatHeader").css({"background":"none","border-color":"#886914","color":"white"}); $(".ChatHeader .User").css("border-color","#886914"); $(".Write").css("border-color","#886914"); $("#WikiaPage").css({"background":"none","border-color":"#886914","color":"white"}); $(".Write .message").css("background","rgba( 0, 0, 0, 0.5)"); $(".Write [name='message']").css("color","#FFF"); $(".ChatHeader > .wordmark > div").css("color","#FFF"); $(".ChatHeader > .wordmark > div a").css("color","whitesmoke"); });

//       $(".Rail .public").click(function { //            $(this).addClass("selected2"); //        }); }); });