1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/mipilin synced 2025-05-15 01:33:06 +00:00
Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
Rae 5e 2025-01-29 20:01:06 -05:00
parent ccc894dc33
commit dfd27154cd
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
5 changed files with 140 additions and 101 deletions

View file

@ -40,7 +40,7 @@ block content
a(href="#invite-codes") Invite codes
p This is where you "MIPILIN"! That is all you need to know!!!
p If onlookers notice your actions and inquire about what you are doing, you MUST tell them that you are mipilining all over the place, and then PROMPTLY SCROLL DOWN AND GENERATE AN INVITE CODE SO THAT THEY CAN MIPILIN TOO.
form#dashboard-update-form(action="/update/mood", method="post", onsubmit="disable(this);")
form#dashboard-update-form(action="/update/mood", method="post")
select(name="mood", required)
//- Maybe put the index of the mood in the value of the option element
//- so that indexOf (slow) wont have to be used everytime mood is updated
@ -78,8 +78,8 @@ block content
if !isTrusted
p You need be manually marked as "trusted" to generate codes.
script(nonce=nonce).
function disable(form) {
const btn = form.querySelector("button");
document.getElementById("dashboard-update-form").onsubmit = (ev) => {
const btn = ev.target.querySelector("button");
btn.setAttribute("disabled", "");
setTimeout(() => {