-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
54 lines (53 loc) · 1.62 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Eksternal Css -->
<link rel="stylesheet" href="assets/style.css" />
<title>Login Page</title>
</head>
<body>
<main>
<div class="form-box">
<div class="form-value">
<form action="login.php">
<h2>Login</h2>
<div class="inputBox">
<ion-icon name="mail-outline"></ion-icon>
<input type="email" required />
<label>Email</label>
</div>
<div class="inputBox">
<ion-icon name="lock-closed-outline"></ion-icon>
<input type="password" required />
<label>Password</label>
</div>
<div class="forget">
<input type="checkbox" />
<label>Remember Me <a href="forget.php">Lupa Password?</a></label>
</div>
<button>Log In</button>
<div class="register">
<p>Belum Punya Akun? <a href="register.php">Daftar</a></p>
</div>
</form>
</div>
</div>
</main>
<!-- Ionicons -->
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
<script>
const inputEmail = document.querySelector('input[type="email"]');
inputEmail.addEventListener('input', function () {
if (inputEmail.value != '') {
inputEmail.nextElementSibling.style.top = '-5px';
} else {
inputEmail.nextElementSibling.removeAttribute('style');
}
});
</script>
</body>
</html>