diff --git a/www/editor.js b/www/editor.js new file mode 100644 index 0000000..332df01 --- /dev/null +++ b/www/editor.js @@ -0,0 +1,28 @@ +export const url = "https://libreinternet.club/"; + +// Return username:password encoded in base64 +export function get_login_creds() { + const username = editorusername.value; + const password = editorpassword.value; + return btoa(`${username}:${password}`); +} + +async function send_request() { + const response_options = { + method: editormethod.value, + headers: { + "Authorization": `Basic ${get_login_creds()}`, + }, + }; + // Browser will fail the request if body is added to GET or HEAD + if (response_options.method != "GET") { + response_options.body = editorbody.value; + } + // NGINX is nonstandard in not having this as the default + if (response_options.method == "PROPFIND") { + response_options.headers["Depth"] = "infinity"; + } + const response = await fetch(new Request("https://libreinternet.club/" + editorurl.value, response_options)); + editorresponse.value = await response.text(); +} +globalThis.send_request = send_request; diff --git a/www/events/libre_local_1.png b/www/events/libre_local_1.png new file mode 100644 index 0000000..36ceeaf Binary files /dev/null and b/www/events/libre_local_1.png differ diff --git a/www/index.html b/www/index.html index 627c7a3..c914065 100644 --- a/www/index.html +++ b/www/index.html @@ -3,8 +3,10 @@
+ Thursday, May 21, 2026 from 12-4pm @ UoA North Campus ED 262 (Education South)
+This event will involve discussions, presentations, and the potential for software demos. However, we also aim for the comfort of attendees. Introverted or shy attendees may feel more comfortable simply listening in or reading some of the provided event materials, and that's OK! Attendees may move in and out of the room at any time. +
+Anyone is free to attend, in part or in full, regardless of their knowledge level or background (as long as they follow the code of conduct)!
+Poster art by Mimi
+username:
+password:
+ + + + +| + | + | + |
| + | + | + |
| + | + | + |