register progress
This commit is contained in:
41
static/html/register.html
Normal file
41
static/html/register.html
Normal file
@@ -0,0 +1,41 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<base href="/" target="_top">
|
||||
<script src="static/js/register.js" defer="defer"></script>
|
||||
<link rel="stylesheet" href="static/css/login.css">
|
||||
<title>Register</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="app">
|
||||
<h1>Créer un nouveau compte</h1>
|
||||
<h3 id="message"></h3>
|
||||
<div class="sub">
|
||||
<label for="username">Nom d'utilisateur:</label>
|
||||
<br>
|
||||
<input id="username">
|
||||
<br>
|
||||
<label for="password">Mot de passe:</label>
|
||||
<br>
|
||||
<input id="password" type="password">
|
||||
<br>
|
||||
<label for="passwordConfirm">Confirmer le mot de passe:</label>
|
||||
<br>
|
||||
<input id="passwordConfirm" type="password">
|
||||
<br>
|
||||
<button id="register">Créer un compte.</button>
|
||||
</div>
|
||||
<p>Tu as déjà un compte?</p>
|
||||
<a href="/login">Se connecter.</a>
|
||||
</div>
|
||||
<div id="footer" class="footer">
|
||||
<a href="/">Voter</a>
|
||||
<a href="/results">Résultats</a>
|
||||
<a href="/archives">Archives</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
11
static/js/register.js
Normal file
11
static/js/register.js
Normal file
@@ -0,0 +1,11 @@
|
||||
async function register() {}
|
||||
|
||||
function check_username() {}
|
||||
|
||||
function check_password() {}
|
||||
|
||||
let button = document.getElementById("register");
|
||||
|
||||
button.addEventListener("click", () => {
|
||||
let _ = register();
|
||||
})
|
||||
Reference in New Issue
Block a user