mirror of
https://git.sr.ht/~roxwize/mipilin
synced 2025-05-15 01:33:06 +00:00
weh
Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
parent
ccc894dc33
commit
dfd27154cd
5 changed files with 140 additions and 101 deletions
|
@ -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(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue