join: translate js
All checks were successful
/ deploy (push) Successful in 28s

This commit is contained in:
forgejo-actions[bot] 2024-10-08 15:30:30 +00:00
parent 3218e7e684
commit bb37522121
3 changed files with 10 additions and 10 deletions

View file

@ -1 +1 @@
Tue Oct 8 15:25:00 UTC 2024 Tue Oct 8 15:30:30 UTC 2024

Binary file not shown.

View file

@ -104,10 +104,10 @@ mathspamtrap = document.getElementById("math-spam-trap").value; var
agreetoterms = document.getElementById("agree-to-terms").checked; var email agreetoterms = document.getElementById("agree-to-terms").checked; var email
= document.getElementById("email").value; if(!agreetoterms) { = document.getElementById("email").value; if(!agreetoterms) {
alert("Registration requires agreement of Code of Conduct"); return false; } alert("Registration requires agreement of Code of Conduct"); return false; }
if(!email) { alert("Email cannot be empty"); return false; } if(mathspamtrap if(!email) { alert("Courriel ne peut pas être vide"); return false; }
!= "9") { alert("Wrong math answer"); return false; } if(await if(mathspamtrap != "9") { alert("Mauvaise réponse mathématique"); return
checkDuplicate(email) === true) { alert("This email address has already false; } if(await checkDuplicate(email) === true) { alert("Ce courriel a
requested an account"); return false; } var name = déjà fait une demande de compte"); return false; } var name =
document.getElementById("name").value; var name = name.replace (/^/,'Name: document.getElementById("name").value; var name = name.replace (/^/,'Name:
'); var aboutme = document.getElementById("about-me").value; var aboutme = '); var aboutme = document.getElementById("about-me").value; var aboutme =
aboutme.replace (/^/,'About me: '); var aboutme = aboutme.replace(/\r?\n/g, aboutme.replace (/^/,'About me: '); var aboutme = aboutme.replace(/\r?\n/g,
@ -121,11 +121,11 @@ baseurl.concat("&title=", email, "&description=", description);
console.log('Description:', description); fetch(url, { method: 'POST', console.log('Description:', description); fetch(url, { method: 'POST',
headers: { 'PRIVATE-TOKEN': 'glpat-RaoZSW_3XMhkGr19k6Wv', 'Content-Type': headers: { 'PRIVATE-TOKEN': 'glpat-RaoZSW_3XMhkGr19k6Wv', 'Content-Type':
'application/json', }, }) .then(response => response.json()) .then(result 'application/json', }, }) .then(response => response.json()) .then(result
=> { console.log('Success:', result); alert("Request submitted. A working => { console.log('Success:', result); alert("Demande soumise. Un membre du
group member will process your registration shortly. If you receive no groupe de travail traitera votre inscription dans les plus brefs délais. Si
contact within seven days of registration, please send an email to vous n'êtes pas contacté dans les sept jours suivant votre inscription,
support@ilot.io"); }) .catch(error => { console.error('Error:', error) }); veuillez envoyer un courriel à support@ilot.io."); }) .catch(error => {
} console.error('Error:', error) }); }
</script> </script>
<header class="text-center"> <header class="text-center">