Modify Login/Register-System (almost working)
This commit is contained in:
@@ -7,7 +7,11 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
<link rel="stylesheet" href="Dependences/bootstrap-3.3.7/css/bootstrap.min.css">
|
||||
<script src="Dependences/jquery-3.3.1.min.js"></script>
|
||||
<script src="Dependences/bootstrap-3.3.7/js/bootstrap.min.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -20,20 +24,36 @@
|
||||
<div class="register-form form-l">
|
||||
<input type="password" placeholder="Passwort" id="passwordInputRegister" />
|
||||
<input type="password" placeholder="Passwort wiederholen" id="passwordRepeatInputRegister" />
|
||||
<button id="registerBtn">Registrieren</button><br /><br />
|
||||
<button id="registerBtn" onclick="registerPlayer()";>Registrieren</button><br /><br />
|
||||
<button class="quitBtn">Server verlassen</button>
|
||||
<p class="message">Bereits registriert? <a href="#">Logg dich ein</a></p>
|
||||
</div>
|
||||
<div class="login-form form-l">
|
||||
<input type="password" placeholder="Passwort" id="passwordInputLogin" />
|
||||
<button id="loginBtn">Einloggen</button><br /><br />
|
||||
<button id="loginBtn" onclick="loginPlayer()">Einloggen</button><br /><br />
|
||||
<button class="quitBtn">Server verlassen</button>
|
||||
<p class="message">Nicht registriert? <a href="#">Erstelle einen Account</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="Dependences/jquery-3.3.1.min.js"></script>
|
||||
<script src="Dependences/bootstrap-3.3.7/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(".message a").click(function () {
|
||||
$(".form-l").animate({ height: "toggle", opacity: "toggle" }, "slow");
|
||||
});
|
||||
|
||||
$(".quitBtn").click(() => {
|
||||
resourceCall("Quit");
|
||||
});
|
||||
|
||||
function showError(error) {
|
||||
$(".isa_error").html(error);
|
||||
$(".isa_error").slideDown();
|
||||
}
|
||||
|
||||
function SendDisplayname(name) {
|
||||
$("h2#playerName").text(name);
|
||||
}
|
||||
</script>
|
||||
<script src="login.js" type="text/javascript"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user