Arzumify can't code javascript

This commit is contained in:
Tracker-Friendly 2024-03-12 17:34:18 +00:00
parent 503d671f12
commit 9c10e1248b
4 changed files with 10 additions and 2 deletions

View File

@ -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 == "") {

View File

@ -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

View File

@ -33,7 +33,7 @@
<br>
<br>
<p>Don't have an account? If so, <a href="../signup/index.html">Create one here!</a></p>
<div style="display: flex;"><p id="homeserver">Your homeserver is: https://hectabit.org. </p><div style="display: flex;flex-direction: column;justify-content: center;"><a href="/">Change</a></div></div>
<div style="display: flex;"><p id="homeserver">Your homeserver is loading... </p><div style="display: flex;flex-direction: column;justify-content: center;"><a href="/homeserver">Change</a></div></div>
<a href="../privacy/index.html">Privacy &amp; Terms</a>
</div>

View File

@ -31,7 +31,7 @@
<button id="signupButton">Signup</button><br><br>
<p>Already have an account? If so, <a href="../login/index.html">Login</a> instead!</p>
<p>Please note that it's impossible to reset your password, do not forget it!</p>
<div style="display: flex;"><p id="homeserver">Your homeserver is: https://hectabit.org. </p><div style="display: flex;flex-direction: column;justify-content: center;"><a href="/">Change</a></div></div>
<div style="display: flex;"><p id="homeserver">Your homeserver is loading... </p><div style="display: flex;flex-direction: column;justify-content: center;"><a href="/homeserver">Change</a></div></div>
<a href="../privacy/index.html">Privacy &amp; Terms</a>
</div>
<script type="text/javascript" src="../static/js/signup.js"></script>