1
0
Fork 0
forked from ilot/ilot-io

content/join: fix breakage due to oc removal

This commit is contained in:
Antoine Martin 2024-06-15 15:35:00 -04:00
parent 032fafd2dc
commit 4daeb630c0
Signed by: ayakael
GPG key ID: D62A472A4AA7D541

View file

@ -26,20 +26,31 @@
var baseurl = 'https://lab.ilot.io/api/v4/projects/99/issues?&labels=Request'; var baseurl = 'https://lab.ilot.io/api/v4/projects/99/issues?&labels=Request';
var emptyfield = document.getElementById("emptyfield").value; var emptyfield = document.getElementById("emptyfield").value;
var mathspamtrap = document.getElementById("math-spam-trap").value; var mathspamtrap = document.getElementById("math-spam-trap").value;
var agreetoterms = document.getElementById("agree-to-terms").value;
var email = document.getElementById("email").value; var email = document.getElementById("email").value;
if(agreetoterms != "agree-to-terms") {
alert("Registration requires agreement of Code of Conduct");
return false;
}
if(!email) {
alert("Email cannot be empty");
return false;
}
if(emptyfield) { if(emptyfield) {
alert("Empty field should be empty") alert("Empty field should be empty");
return false; return false;
} }
if(mathspamtrap != "9") { if(mathspamtrap != "9") {
alert("Wrong math answer") alert("Wrong math answer");
return false; return false;
} }
if(await checkDuplicate(email) === true) { if(await checkDuplicate(email) === true) {
alert("This email address has already requested an account") alert("This email address has already requested an account");
return false; return false;
} }
@ -51,9 +62,11 @@
var howfound = document.getElementById("how-found").value; var howfound = document.getElementById("how-found").value;
var howfound = howfound.replace (/^/,'How I found ilot: '); var howfound = howfound.replace (/^/,'How I found ilot: ');
var howfound = howfound.replace(/\r?\n/g, "%0A%0A"); var howfound = howfound.replace(/\r?\n/g, "%0A%0A");
var ocuser = document.getElementById("oc-user").value; // add back on oc is setup
var ocuser = ocuser.replace (/^/,'OpenCollective Profile: '); // var ocuser = document.getElementById("oc-user").value;
var description = name + "%0A%0A" + aboutme + "%0A%0A" + howfound + "%0A%0A" + ocuser; // var ocuser = ocuser.replace (/^/,'OpenCollective Profile: ');
// var description = name + "%0A%0A" + aboutme + "%0A%0A" + howfound + "%0A%0A" + ocuser;
var description = name + "%0A%0A" + aboutme + "%0A%0A" + howfound;
var url = baseurl.concat("&title=", email, "&description=", description); var url = baseurl.concat("&title=", email, "&description=", description);
console.log('Description:', description); console.log('Description:', description);
@ -117,7 +130,7 @@
<h2 id="code-of-conduct">Code of Conduct:</h2> <h2 id="code-of-conduct">Code of Conduct:</h2>
<p>New members must also agree to our <a href="https://ilot.io/meta/code-of-conduct/">Code of Conduct</a> and must be over the age of consent.</p> <p>New members must also agree to our <a href="https://ilot.io/meta/code-of-conduct/">Code of Conduct</a> and must be over the age of consent.</p>
<p><input type="checkbox" name="agree-to-terms" value="agree-to-terms" required> I am over 18, and have read, understood and agree to the terms of use and engagement as written in the <a href="https://ilot.io/meta/code-of-conduct">Code of Conduct</a>. A summary of the code is below; please be sure to review the full Code via the link.</p> <p><input type="checkbox" id="agree-to-terms" name="agree-to-terms" value="agree-to-terms" required> I am over 18, and have read, understood and agree to the terms of use and engagement as written in the <a href="https://ilot.io/meta/code-of-conduct">Code of Conduct</a>. A summary of the code is below; please be sure to review the full Code via the link.</p>
<p>The Code of Conduct is a living document that outlines acceptable behaviour when members use ilot's Nextcloud, Mastodon, GitLab, and all other spaces governed by the co-op. ilot adopts the “co-op values”: self-responsibility, democracy, equality, equity, and solidarity. Our members believe in the ethical values of honesty, openness, social responsibility, and caring for others. We also follow the rest of the ICA co-op principles. </p> <p>The Code of Conduct is a living document that outlines acceptable behaviour when members use ilot's Nextcloud, Mastodon, GitLab, and all other spaces governed by the co-op. ilot adopts the “co-op values”: self-responsibility, democracy, equality, equity, and solidarity. Our members believe in the ethical values of honesty, openness, social responsibility, and caring for others. We also follow the rest of the ICA co-op principles. </p>
<p>We welcome anyone able to use our services and willing to accept the responsibilities of membership, regardless of qualities such as gender identity or expression, sexual orientation, disability, mental illness, neuro(a)typicality, physical appearance, body size, age, race, nationality, ethnicity, socioeconomic status, family structure, spirituality, religion (or lack thereof), education, or other personal traits.</p> <p>We welcome anyone able to use our services and willing to accept the responsibilities of membership, regardless of qualities such as gender identity or expression, sexual orientation, disability, mental illness, neuro(a)typicality, physical appearance, body size, age, race, nationality, ethnicity, socioeconomic status, family structure, spirituality, religion (or lack thereof), education, or other personal traits.</p>
<p>We particularly celebrate diversity and do not tolerate bigotry, prejudice or supremacy of any kind. Diverse opinions on politics, religion, and other matters are welcome as long as they align with our core values. Let there be no confusion, ilot is anti-racist, anti-fascist, and anti-transphobic. Moderators will take action on posts that contravene this Code of Conduct.</p> <p>We particularly celebrate diversity and do not tolerate bigotry, prejudice or supremacy of any kind. Diverse opinions on politics, religion, and other matters are welcome as long as they align with our core values. Let there be no confusion, ilot is anti-racist, anti-fascist, and anti-transphobic. Moderators will take action on posts that contravene this Code of Conduct.</p>