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