";var t=q.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&H.push("name"+te+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&H.push(":enabled",":disabled"),L.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&H.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),H.push(",.*:")})),(b.matchesSelector=ve.test(P=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&i(function(e){b.disconnectedMatch=P.call(e,"*"),P.call(e,"[s!='']:x"),I.push("!=",ie)}),H=H.length&&new RegExp(H.join("|")),I=I.length&&new RegExp(I.join("|")),t=ve.test(L.compareDocumentPosition),M=t||ve.test(L.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return N=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!b.sortDetached&&t.compareDocumentPosition(e)===n?e==q||e.ownerDocument==$&&M($,e)?-1:t==q||t.ownerDocument==$&&M($,t)?1:j?Z(j,e)-Z(j,t):0:4&n?-1:1)}:function(e,t){if(e===t)return N=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e==q?-1:t==q?1:i?-1:o?1:j?Z(j,e)-Z(j,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]==$?-1:u[r]==$?1:0}),q},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if(D(e),b.matchesSelector&&O&&!X[n+" "]&&(!I||!I.test(n))&&(!H||!H.test(n)))try{var r=P.call(e,n);if(r||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){X(n,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(xe,be),e[3]=(e[3]||e[4]||e[5]||"").replace(xe,be),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(xe,be).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=F[e+" "];return t||(t=new RegExp("(^|"+te+")"+e+"("+te+"|$)"))&&F(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;he.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?he.find.matchesSelector(r,e)?[r]:[]:he.find.matches(e,he.grep(t,function(e){return 1===e.nodeType}))},he.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(he(e).filter(function(){for(t=0;t)[^>]*|#([\w-]+))$/;(he.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||be,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:we.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof he?t[0]:t,he.merge(this,he.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:fe,!0)),xe.test(r[1])&&he.isPlainObject(t))for(r in t)le(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=fe.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):le(e)?void 0!==n.ready?n.ready(e):e(he):he.makeArray(e,this)}).prototype=he.fn,be=he(fe);var Te=/^(?:parents|prev(?:Until|All))/,Ce={children:!0,contents:!0,next:!0,prev:!0};he.fn.extend({has:function(e){var t=he(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Qe=/^$|^module$|\/(?:java|ecma)script/i;_e=fe.createDocumentFragment().appendChild(fe.createElement("div")),(ze=fe.createElement("input")).setAttribute("type","radio"),ze.setAttribute("checked","checked"),ze.setAttribute("name","t"),_e.appendChild(ze),ue.checkClone=_e.cloneNode(!0).cloneNode(!0).lastChild.checked,_e.innerHTML="",ue.noCloneChecked=!!_e.cloneNode(!0).lastChild.defaultValue,_e.innerHTML="",ue.option=!!_e.lastChild;var Ve={thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};Ve.tbody=Ve.tfoot=Ve.colgroup=Ve.caption=Ve.thead,Ve.th=Ve.td,ue.option||(Ve.optgroup=Ve.option=[1,""]);var Ge=/<|?\w+;/,Ye=/^([^.]*)(?:\.(.+)|)/;he.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=qe.get(e);if(De(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&he.find.matchesSelector(Re,i),n.guid||(n.guid=he.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return void 0!==he&&he.event.triggered!==t.type?he.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(Ee)||[""]).length;l--;)d=g=(s=Ye.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=he.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=he.event.special[d]||{},c=he.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&he.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),he.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=qe.hasData(e)&&qe.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(Ee)||[""]).length;l--;)if(d=g=(s=Ye.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=he.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||he.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)he.event.remove(e,d+t[l],n,r,!0);he.isEmptyObject(u)&&qe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=he.event.fix(e),l=(qe.get(this,"events")||Object.create(null))[u.type]||[],c=he.event.special[u.type]||{};for(s[0]=u,t=1;t\s*$/g;he.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=$e(e);if(!(ue.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||he.isXMLDoc(e)))for(a=y(c),r=0,i=(o=y(e)).length;r").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),fe.head.appendChild(t[0])},abort:function(){n&&n()}}});var _t,zt=[],Xt=/(=)\?(?=&|$)|\?\?/;he.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||he.expando+"_"+St.guid++;return this[e]=!0,e}}),he.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Xt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=le(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Xt,"$1"+i):!1!==t.jsonp&&(t.url+=(kt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||he.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?he(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,zt.push(i)),a&&le(o)&&o(a[0]),a=o=void 0}),"script"}),ue.createHTMLDocument=((_t=fe.implementation.createHTMLDocument("").body).innerHTML="",2===_t.childNodes.length),he.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(ue.createHTMLDocument?((r=(t=fe.implementation.createHTMLDocument("")).createElement("base")).href=fe.location.href,t.head.appendChild(r)):t=fe),o=!n&&[],(i=xe.exec(e))?[t.createElement(i[1])]:(i=b([e],t,o),o&&o.length&&he(o).remove(),he.merge([],i.childNodes)));var r,i,o},he.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(he.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},he.expr.pseudos.animated=function(e){return he.grep(he.timers,function(t){return e===t.elem}).length},he.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=he.css(e,"position"),c=he(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=he.css(e,"top"),u=he.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),le(t)&&(t=t.call(e,n,he.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},he.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){he.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===he.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===he.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=he(e).offset()).top+=he.css(e,"borderTopWidth",!0),i.left+=he.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-he.css(r,"marginTop",!0),left:t.left-i.left-he.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===he.css(e,"position");)e=e.offsetParent;return e||Re})}}),he.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;he.fn[e]=function(r){return Ae(this,function(e,r,i){var o;if(ce(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),he.each(["top","left"],function(e,t){he.cssHooks[t]=O(ue.pixelPosition,function(e,n){if(n)return n=L(e,t),et.test(n)?he(e).position()[t]+"px":n})}),he.each({Height:"height",Width:"width"},function(e,t){he.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){he.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return Ae(this,function(t,n,i){var o;return ce(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?he.css(t,n,s):he.style(t,n,i,s)},t,a?i:void 0,a)}})}),he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){he.fn[t]=function(e){return this.on(t,e)}}),he.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),he.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){he.fn[t]=function(e,n){return 01?this.eq(0):this,o=i.get(0),a=t.width(),s=t.height(),r=r||"both",u=!0!==n||o.offsetWidth*o.offsetHeight;if("function"==typeof o.getBoundingClientRect){var l=o.getBoundingClientRect(),c=l.top>=0&&l.top0&&l.bottom<=s,p=l.left>=0&&l.left0&&l.right<=a,h=e?c||f:c&&f,g=e?p||d:p&&d;if("both"===r)return u&&h&&g;if("vertical"===r)return u&&h;if("horizontal"===r)return u&&g}else{var v=t.scrollTop(),m=v+s,y=t.scrollLeft(),x=y+a,b=i.offset(),w=b.top,T=w+i.height(),C=b.left,E=C+i.width(),S=!0===e?T:w,k=!0===e?w:T,A=!0===e?E:C,j=!0===e?C:E;if("both"===r)return!!u&&m>=k&&S>=v&&x>=j&&A>=y;if("vertical"===r)return!!u&&m>=k&&S>=v;if("horizontal"===r)return!!u&&x>=j&&A>=y}}}}(jQuery),document.addEventListener("DOMContentLoaded",function(){$(".hamburger").on("click",function(e){$(".hamburger").hasClass("is-active")?($(".hamburger").removeClass("is-active"),$(".sidebar").removeClass("active"),$("body").removeClass("mobile-menu-open")):($(".hamburger").addClass("is-active"),$(".sidebar").addClass("active"),$("body").addClass("mobile-menu-open"))});let e=0,t=0;const n=document.getElementById("sidebar");n.addEventListener("touchstart",function(t){e=t.changedTouches[0].screenX},!1),n.addEventListener("touchend",function(n){(t=n.changedTouches[0].screenX)-75>=e&&($(".hamburger").removeClass("is-active"),$(".sidebar").removeClass("active"),setTimeout(function(){$("body").removeClass("mobile-menu-open")},250))},!1)});function serialize(e){if(e&&"FORM"===e.nodeName){var t,n,o=[];for(t=e.elements.length-1;t>=0;t-=1)if(""!==e.elements[t].name)switch(e.elements[t].nodeName){case"INPUT":switch(e.elements[t].type){case"text":case"tel":case"email":case"hidden":case"password":case"button":case"reset":case"submit":o.push(e.elements[t].name+"="+encodeURIComponent(e.elements[t].value));break;case"checkbox":case"radio":e.elements[t].checked&&o.push(e.elements[t].name+"="+encodeURIComponent(e.elements[t].value))}break;case"file":break;case"TEXTAREA":o.push(e.elements[t].name+"="+encodeURIComponent(e.elements[t].value));break;case"SELECT":switch(e.elements[t].type){case"select-one":o.push(e.elements[t].name+"="+encodeURIComponent(e.elements[t].value));break;case"select-multiple":for(n=e.elements[t].options.length-1;n>=0;n-=1)e.elements[t].options[n].selected&&o.push(e.elements[t].name+"="+encodeURIComponent(e.elements[t].options[n].value))}break;case"BUTTON":switch(e.elements[t].type){case"reset":case"submit":case"button":o.push(e.elements[t].name+"="+encodeURIComponent(e.elements[t].value))}}return o.join("&")}}let slideUp=(e,t=500)=>{e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.boxSizing="border-box",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,window.setTimeout(()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")},t)},slideDown=(e,t=500)=>{e.style.removeProperty("display");let n=window.getComputedStyle(e).display;"none"===n&&(n="block"),e.style.display=n;let o=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=o+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),window.setTimeout(()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")},t)};var slideToggle=(e,t=500)=>"none"===window.getComputedStyle(e).display?slideDown(e,t):slideUp(e,t);document.addEventListener("DOMContentLoaded",function(){if(document.body.contains(document.getElementById("login-container"))){var e=document.querySelector(".login-loading"),t=document.querySelector(".signup-message"),n=document.getElementById("signup");document.querySelector(".remember-me").addEventListener("click",function(e){this.classList.contains("active")?(this.classList.remove("active"),document.getElementById("remember_me").value=0):(this.classList.add("active"),document.getElementById("remember_me").value=1)});var o=document.querySelector(".sign-up-select"),s=document.querySelector(".log-in-select"),i=document.querySelector(".log-in-select2"),r=document.querySelector(".lost-password-select");o.addEventListener("click",function(e){slideUp(document.getElementById("login-container"),350),slideDown(document.getElementById("signup-container"),350),slideUp(document.getElementById("lost-pw-container"),350)}),s.addEventListener("click",function(e){slideDown(document.getElementById("login-container"),350),slideUp(document.getElementById("signup-container"),350),slideUp(document.getElementById("lost-pw-container"),350)}),i.addEventListener("click",function(e){slideDown(document.getElementById("login-container"),350),slideUp(document.getElementById("signup-container"),350),slideUp(document.getElementById("lost-pw-container"),350)}),r.addEventListener("click",function(e){slideUp(document.getElementById("login-container"),350),slideUp(document.getElementById("signup-container"),350),slideDown(document.getElementById("lost-pw-container"),350)});const y=document.getElementById("signup");function a(o){o.preventDefault&&o.preventDefault(),e.classList.add("active");var s=document.getElementById("base-data").dataset.token,i=n.action+s+"/";serialized=serialize(n);var r=new XMLHttpRequest;r.addEventListener("load",function(){var n=JSON.parse(this.response),o=n.response_code,s=n.response_message;1==o&&(t.innerHTML=s,e.classList.remove("active"),y.remove()),0==o&&(t.innerHTML=s,e.classList.remove("active"))}),r.open("POST",i),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var a=serialized;return r.send(a),!1}n.attachEvent?n.attachEvent("submit",a):n.addEventListener("submit",a);var l=document.querySelector(".lost-pw-message"),d=document.getElementById("lostpw");const v=document.getElementById("lostpw");function c(t){t.preventDefault&&t.preventDefault(),e.classList.add("active");var n=d.action;serialized=serialize(d);var o=new XMLHttpRequest;o.addEventListener("load",function(){var t=JSON.parse(this.response),n=t.response_code,o=t.response_message;1==n&&(l.innerHTML=o,e.classList.remove("active"),v.remove()),0==n&&(l.innerHTML=o,e.classList.remove("active"))}),o.open("POST",n),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var s=serialized;return o.send(s),!1}d.attachEvent?d.attachEvent("submit",c):d.addEventListener("submit",c);var m=document.querySelector(".log-in-message"),u=document.getElementById("login");document.getElementById("login");function p(t){t.preventDefault&&t.preventDefault(),e.classList.add("active");var n=u.action;serialized=serialize(u);var o=new XMLHttpRequest;o.addEventListener("load",function(){var t=JSON.parse(this.response),n=t.response_code,o=t.response_message;3==n&&(m.innerHTML=o,e.classList.remove("active")),2==n&&(m.innerHTML=o,e.classList.remove("active")),1==n&&location.reload()}),o.open("POST",n),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var s=serialized;return o.send(s),!1}u.attachEvent?u.attachEvent("submit",p):u.addEventListener("submit",p)}}),document.addEventListener("DOMContentLoaded",function(){const e=document.querySelectorAll(".login-prompt");var t=document.querySelector(".login-form-holder");for(const n of e)n.addEventListener("click",function(e){if($(window).width()<950){var n=document.querySelector(".hamburger"),o=document.querySelector(".sidebar"),s=document.querySelector(".body");n.classList.add("is-active"),o.classList.add("active"),s.classList.add("mobile-menu-open")}else t.classList.add("bounce"),setTimeout(function(){t.classList.remove("bounce")},750)})});
THE OLD BROCODE.ORG's Suggested Code
#
When a Bro wants to do something stupid, you film it
TAKEN FROM THE OLD BROCODE.ORG
+1