MediaWiki:Vector.js

$(function{function t{$("html").addClass("dark")}if($(".chevron-right").click(function{$(".frame").scrollLeft,$(".frame").animate({scrollLeft:"+=362"},400),console.log("YAS")}),$(".chevron-left").click(function{$(".frame").scrollLeft,$(".frame").animate({scrollLeft:"-=362"},400),console.log("YAS")}),$("#p-personal ul").append($("").append($("").attr("id","styleswitcher").append("Switch theme"))),"true"==mw.cookie.get("dark")&&t,$("#styleswitcher").click(function{"true"!=mw.cookie.get("dark")?(t,mw.cookie.set("dark","true")):($("html").removeClass("dark"),mw.cookie.set("dark","false"))}),$("a[href*=#]:not([href=#])").click(function{if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var t=$(this.hash);if(t=t.length?t:$("[name="+this.hash.slice(1)+"]"),t.length)return $("html,body").animate({scrollTop:t.offset.top-150},1e3),!1}}),$(location.href.split("#")[1])){var a=$("#"+location.href.split("#")[1]);if(a.length)return $("html,body").animate({scrollTop:a.offset.top-125},1e3),!1}Waves.attach("#mw-navigation li"),Waves.attach(".editButtons input"),Waves.attach(".editButtons span"),Waves.attach(".vectorMenu li"),Waves.attach(".toctoggle"),Waves.attach(".toc li"),Waves.attach(".thumb",["waves-image"]),Waves.attach(".thumbinner",["waves-image"]),Waves.attach(".infobox-table-img",["waves-image"]),Waves.attach(".mw-editsection a",["waves-circle"]),Waves.attach(".oo-ui-buttonElement-button",["waves-light"]),Waves.attach(".suggestions"),Waves.attach(".mw-ui-button",["waves-light"]),Waves.init});