<!DOCTYPE html>
<html>

<head>
    <title>Signup - Burgernotes</title>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" type="text/css" href="../static/css/style.css" />
    <script src="../static/js/hash-wasm.js"></script>
    <link rel="icon" href="../static/svg/favicon.svg">
    <script>
    if (window.location.href.endsWith('/index.html')) {
        if (window.location.origin !== null) {
            var currentUrl = window.location.href;
            var newUrl = currentUrl.replace('/index.html', '');
            window.location.href = newUrl;
        }
    }
    </script>
</head>

<body>
    <p class="credit">Image by perga (@pergagreen on discord)</p>
    <img src="/static/img/background.jpg" class="background">
    <div class="inoutdiv">
        <h2 class="w300">Signup</h2>
        <p>Signup for a Burgernotes account</p>
        <p id="statusBox"></p>
        <input id="usernameBox" type="text" placeholder="Username">
        <input id="passwordBox" type="password" placeholder="Password"><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>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 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>
</body>