forked from Ailur/burgernotes-server
Arzumify can't code javascript
This commit is contained in:
parent
503d671f12
commit
9c10e1248b
|
@ -71,6 +71,10 @@ function showElements(yesorno) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
document.getElementById("homeserver").innerText = "Your homeserver is: " + origin + ". "
|
||||||
|
});
|
||||||
|
|
||||||
signupButton.addEventListener("click", (event) => {
|
signupButton.addEventListener("click", (event) => {
|
||||||
if (passwordBox.classList.contains("hidden")) {
|
if (passwordBox.classList.contains("hidden")) {
|
||||||
if (usernameBox.value == "") {
|
if (usernameBox.value == "") {
|
||||||
|
|
|
@ -33,6 +33,10 @@ function showElements(yesorno) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
document.getElementById("homeserver").innerText = "Your homeserver is: " + origin + ". "
|
||||||
|
});
|
||||||
|
|
||||||
signupButton.addEventListener("click", (event) => {
|
signupButton.addEventListener("click", (event) => {
|
||||||
async function doStuff() {
|
async function doStuff() {
|
||||||
let username = usernameBox.value
|
let username = usernameBox.value
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<p>Don't have an account? If so, <a href="../signup/index.html">Create one here!</a></p>
|
<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 & Terms</a>
|
<a href="../privacy/index.html">Privacy & Terms</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
<button id="signupButton">Signup</button><br><br>
|
<button id="signupButton">Signup</button><br><br>
|
||||||
<p>Already have an account? If so, <a href="../login/index.html">Login</a> instead!</p>
|
<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>
|
<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 & Terms</a>
|
<a href="../privacy/index.html">Privacy & Terms</a>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="../static/js/signup.js"></script>
|
<script type="text/javascript" src="../static/js/signup.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue