-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
95 lines (77 loc) · 3.56 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>Login - Coolchat</title>
<!-- Libraries css -->
<link rel="stylesheet" href="assets/lib/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="assets/lib/font-awesome/css/all.min.css" />
<!-- Custom css-->
<link rel="stylesheet" href="assets/css/style.css" />
</head>
<body>
<section class="d-flex justify-content-center align-items-center main-container">
<div class="inner-container container">
<div class="row">
<!-- .coolchat -details-->
<div class="coolchat-details col-md-6">
<img src="assets/img/logo.png" class="logo" />
<img src="assets/img/auth-image.png" class="coolchat-image" />
<p class="text-center coolchat-desc">
Get connected with friends all over the world, provide value, have fun, and fun.
</p>
</div>
<!--/.coolchat-details-->
<!--.login-form-container-->
<div class="login-form-container col-md-6">
<h1 class="heading">Sign In</h1>
<form class="login-form">
<div class="form-group">
<label for="username">Username</label>
<input type="text" class="form-control" name="username" id="username" placeholder="Enter your username">
</div>
<div class="form-group">
<label for="password">Password</label>
<div class="input-with-icon">
<input type="password" class="form-control" name="password" id="password" placeholder="Enter your password"/>
<i class="fas fa-eye-slash input-icon" id="show-icon" onclick='showPassword()'></i>
<i class="fas fa-eye input-icon" id="hide-icon" onclick='hidePassword()'></i>
</div>
</div>
<div class="d-flex form-extras">
<div>
<label class="checkbox-container">
<input type="checkbox" checked="checked">
<span class="checkmark"></span>
Remember Me
</label>
</div>
<div class="text-right">
<a href="#">Forgot password?</a>
</div>
</div>
<button type="submit" class="btn">Sign In</button>
</form>
<p class="text-center mt-4">Don't have an account?, sign up <a href="#">here</a></p>
</div><!--/.login-form-container-->
</div><!--/.row-->
</div>
</section>
<script>
var password = document.getElementById("password")
var showPasswordIcon = document.getElementById("show-icon")
var hidePasswordIcon = document.getElementById("hide-icon")
function showPassword(){
showPasswordIcon.style.display = "none"
hidePasswordIcon.style.display = "block"
password.setAttribute('type', 'text')
}
function hidePassword(){
showPasswordIcon.style.display = "block"
hidePasswordIcon.style.display = "none"
password.setAttribute('type', 'password')
}
</script>
</body>
</html>