Place to show a code of conduct.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4078 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2022-12-24 19:25:21 +00:00
parent c49da3db07
commit 1a45113e0c
2 changed files with 9 additions and 0 deletions

View File

@ -211,6 +211,10 @@ function handler(request, response) {
contents += '<input id="guestButton" type="submit" name="submit" value="Proceeed as Guest">\n';
contents += '</div>\n';
contents += '</div>\n';
contents += '<div style="text-align: center">\n';
contents += '<h2>Code of Conduct</h2>\n';
contents += `<div><textarea readonly rows=20 cols=80>${core.globalSettings.code_of_conduct}</textarea></div>\n`;
contents += '</div>\n';
contents += '</form>';
}
var text = html.replace("<!--SESSION-->", contents);

View File

@ -17,6 +17,11 @@ const k_global_settings = {
default_value: true,
description: 'Whether this instance should behave as a room.',
},
code_of_conduct: {
type: 'textarea',
default_value: undefined,
description: 'Code of conduct presented at sign-in.',
},
};
var gGlobalSettings = {