-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
31 lines (28 loc) · 1015 Bytes
/
login.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html>
<head>
<title>Minecraft Utilities - user login</title>
<link rel="icon" href="assets/redstone.png" type="image/png">
<link rel="stylesheet" href="general.css">
</head>
<body background="assets/login-background.png" style="background-size: cover; text-align: center;">
<h1>Minecraft Utilities</h1>
<h2>Log - in</h2>
<br>
<br>
<input id="username" type="text"
style="background-color: black; border: 5px ridge green; width: 70%; color: aliceblue; text-align: center;">
<br>
<br>
<button onclick="redirect()"
style="background-color: purple; border: 5px ridge green; width: 70%; color: aliceblue; text-align: center;">Log-in</button>
<script>
function redirect() {
name = document.getElementById("username").value;
if (!name == "") {
localStorage.setItem("user",name);
window.location = "index.html";
}
}
</script>
</body>
</html>