-
Notifications
You must be signed in to change notification settings - Fork 0
/
auth.html
82 lines (80 loc) · 2.6 KB
/
auth.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./Css/auth.css" />
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
<title>TG Store</title>
</head>
<body>
<section class="container container-visisble">
<!-- Login form -->
<div class="loginform">
<h1>Login</h1>
<form class="form boxShadow" onsubmit="return validateForm(event,'log')">
<div class="email log-email">
<input
type="email"
id="log-email"
placeholder="Your Email"
required
/>
<span class="err"></span>
</div>
<div class="password log-password">
<input
type="password"
name="log-password"
id="log-password"
placeholder="Password"
required
oninput="validatePassword('log-password')"
/>
<span class="err"></span>
</div>
<p class="smalltxt">
Not registered? <span id="reg">register here</span>
</p>
<button class="btn" type="submit">Login</button>
</form>
</div>
<!-- Signup form -->
<div class="signupform">
<h1>Sign Up</h1>
<form class="form boxShadow" onsubmit="validateForm(event,'reg')">
<div class="name reg-name">
<input type="text" id="reg-name" placeholder="Your Name" required />
<span class="err"></span>
</div>
<div class="email reg-email">
<input
type="email"
id="reg-email"
placeholder="Your Email"
required
/>
<span class="err"></span>
</div>
<div class="password reg-password">
<input
type="password"
name="reg-password"
id="reg-password"
placeholder="Password"
required
oninput="validatePassword('reg-password')"
/>
<span class="err"></span>
</div>
<p class="smalltxt">
Already registered? <span id="log">login here</span>
</p>
<button class="btn" type="submit">Sign Up</button>
</form>
</div>
</section>
<script src="./Scripts/db.js"></script>
<script src="./Scripts/auth.js"></script>
</body>
</html>