From 9c10e1248bdbfe5095887900679f6e5267f0930c Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Tue, 12 Mar 2024 17:34:18 +0000 Subject: [PATCH] Arzumify can't code javascript --- static/js/login.js | 4 ++++ static/js/signup.js | 4 ++++ templates/login.html | 2 +- templates/signup.html | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/static/js/login.js b/static/js/login.js index 53f9238..622b210 100644 --- a/static/js/login.js +++ b/static/js/login.js @@ -71,6 +71,10 @@ function showElements(yesorno) { } } +document.addEventListener('DOMContentLoaded', function() { + document.getElementById("homeserver").innerText = "Your homeserver is: " + origin + ". " +}); + signupButton.addEventListener("click", (event) => { if (passwordBox.classList.contains("hidden")) { if (usernameBox.value == "") { diff --git a/static/js/signup.js b/static/js/signup.js index 5c983c8..b15e238 100644 --- a/static/js/signup.js +++ b/static/js/signup.js @@ -33,6 +33,10 @@ function showElements(yesorno) { } } +document.addEventListener('DOMContentLoaded', function() { + document.getElementById("homeserver").innerText = "Your homeserver is: " + origin + ". " +}); + signupButton.addEventListener("click", (event) => { async function doStuff() { let username = usernameBox.value diff --git a/templates/login.html b/templates/login.html index 284e97f..cd39362 100644 --- a/templates/login.html +++ b/templates/login.html @@ -33,7 +33,7 @@

Don't have an account? If so, Create one here!

-

Your homeserver is: https://hectabit.org.

Change
+

Your homeserver is loading...

Change
Privacy & Terms diff --git a/templates/signup.html b/templates/signup.html index fd91996..9394e33 100644 --- a/templates/signup.html +++ b/templates/signup.html @@ -31,7 +31,7 @@

Already have an account? If so, Login instead!

Please note that it's impossible to reset your password, do not forget it!

-

Your homeserver is: https://hectabit.org.

Change
+

Your homeserver is loading...

Change
Privacy & Terms