-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
40 lines (40 loc) · 1.54 KB
/
index.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
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>PreBook | Cheap, Reliable, Instant!</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" type="image/png" href="img/logo.png">
</head>
<body>
<nav>
<div class="logo">
<img src="img/logo.png"> <h1> PreBook</h1><span><i>Cheap, Reliable, Instant</i></span>
</div>
</nav>
<main>
<div class="bar">
<h2>Login</h2>
<span class="aside"><i>...if you're already a member.</i></span>
</div>
<form method="post" action="verifyLogin.php" id="loginform">
<input type="text" name="username" placeholder="Username" required class="form-input">
<input type="password" name="password" placeholder="Password" required class="form-input">
<button type="submit" name="submit" id="submit" class="form-button">Submit</button>
<a href="createaccount.html">
<button type="button" name="create" class="form-button aside-button">Create an account</button>
</a>
</form>
</main>
<script type="text/javascript">
var form = document.getElementById('loginform');
var button = document.getElementById('submit');
button.addEventListener("click", function() {
if (!form.checkValidity()) {
alert("Please do not leave the fields empty.");
}
});
</script>
</body>
</html>