MediaWiki:Vector.js

$(function{function a{$("html").addClass("dark")}$(".chevron-right").click(function{$(".frame").scrollLeft,$(".frame").animate({scrollLeft:"+=362"},400)}),$(".chevron-left").click(function{$(".frame").scrollLeft,$(".frame").animate({scrollLeft:"-=362"},400)}),$('a[href*="#"]').not('[href="#"]').not('[href="#0"]').click(function(a){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var b=$(this.hash);b=b.length?b:$("[name="+this.hash.slice(1)+"]"),b.length&&(a.preventDefault,$("html, body").animate({scrollTop:b.offset.top-150},1e3,function{var a=$(b);if(a.focus,a.is(":focus"))return!1;a.attr("tabindex","-1"),a.focus}))}}),$("#p-personal ul").append($("").append($("").attr("id","styleswitcher").append("Switch theme"))),"true"==mw.cookie.get("dark")&&a,$("#styleswitcher").click(function{"true"!=mw.cookie.get("dark")?(a,mw.cookie.set("dark","true")):($("html").removeClass("dark"),mw.cookie.set("dark","false"))}),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});