forked from iarmaanx/HealthSpot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
159 lines (135 loc) · 5.57 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!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">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="/public/login.css">
<title>Login</title>
</head>
<body>
<h1>HealthSpot</h1>
<p>Your health Our priority.</p>
<div class="container">
<div class="box">
<div class="box-login" id="login">
<div class="top-header">
<h3>Hello, Again!</h3>
<small>We are happy to have you back.</small>
</div>
<div class="input-group">
<div class="input-field">
<input type="text" class="input-box" id="logEmail" required>
<label for="logEmail">Health ID</label>
</div>
<div class="input-field">
<input type="password" class="input-box" id="logPassword" required>
<label for="logPassword">Password</label>
<div class="eye-area">
<div class="eye-box" onclick="myLogPassword()">
<i class="fa-regular fa-eye" id="eye"></i>
<i class="fa-regular fa-eye-slash" id="eye-slash"></i>
</div>
</div>
</div>
<div class="remember">
<input type="checkbox" id="formCheck" class="check">
<label for="formCheck">Remember Me</label>
</div>
<div class="input-field">
<input type="submit" class="input-submit" value="Sign In" required>
</div>
<div class="forgot">
<a href="#">Forgot password?</a>
</div>
</div>
</div>
<!---------------------------- register --------------------------------------->
<div class="box-register" id="register">
<div class="top-header">
<h3>Don't have Health ID</h3>
<small>Get your ID here.</small>
</div>
<div class="input-group">
<div class="input-field">
<input type="text" class="input-box" id="regUsername" required>
<label for="regUsername">Name</label>
</div>
<div class="input-field">
<input type="text" class="input-box" id="regEmail" required>
<label for="regEmail">Email address</label>
</div>
<div class="input-field">
<input type="password" class="input-box" id="regPassword" required>
<label for="regPassword">Password</label>
<div class="eye-area">
<div class="eye-box" onclick="myRegPassword()">
<i class="fa-regular fa-eye" id="eye-2"></i>
<i class="fa-regular fa-eye-slash" id="eye-slash-2"></i>
</div>
</div>
</div>
<div class="remember">
<input type="checkbox" id="formCheck2" class="check">
<label for="formCheck2">Remember Me</label>
</div>
<div class="input-field">
<button onclick="openNewPageWithDelay()">Generate ID</button>
</div>
</div>
</div>
<div class="switch">
<a href="#" class="login active" onclick="login()">Login</a>
<a href="#" class="register" onclick="register()">Register</a>
<div class="btn-active" id="btn"></div>
</div>
</div>
</div>
<script>
var x = document.getElementById('login');
var y = document.getElementById('register');
var z = document.getElementById('btn');
function login(){
x.style.left = "27px";
y.style.right = "-350px";
z.style.left = "0px";
}
function register(){
x.style.left = "-350px";
y.style.right = "25px";
z.style.left = "150px";
}
// View Password codes
function myLogPassword(){
var a = document.getElementById("logPassword");
var b = document.getElementById("eye");
var c = document.getElementById("eye-slash");
if(a.type === "password"){
a.type = "text";
b.style.opacity = "0";
c.style.opacity = "1";
}else{
a.type = "password";
b.style.opacity = "1";
c.style.opacity = "0";
}
}
function myRegPassword(){
var d = document.getElementById("regPassword");
var b = document.getElementById("eye-2");
var c = document.getElementById("eye-slash-2");
if(d.type === "password"){
d.type = "text";
b.style.opacity = "0";
c.style.opacity = "1";
}else{
d.type = "password";
b.style.opacity = "1";
c.style.opacity = "0";
}
}
</script>
<script src="/public/index.js"></script>
</body>
</html>