text: "use strict";if(location.search.indexOf("logout")>-1){for(var cookies=document.cookie.split(";"),i=0;i<cookies.length;i+=1){var cookie=cookies[i],eqPos=cookie.indexOf("="),cookieName=eqPos>-1?cookie.substr(0,eqPos):cookie;document.cookie=cookieName+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}Materialize.toast("You have been logged out!",1e3)}$("#server").val(location.protocol+"//"+location.host.split(":")[0]+":3000"),$(document).on("click",":submit",function(e){e.preventDefault(),document.activeElement.blur();var o=$(this).val();"login"===o?authLogin($("#username").val(),$("#password").val(),$("#server").val()):authRegister($("#username").val(),$("#password").val(),$("#server").val())});