-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
139 lines (127 loc) · 2.77 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Login</title>
<link rel="stylesheet" href="/stylesheets/index.css" />
</head>
<body>
<span class="logo">JuJuTsu ScHooL</span>
<div class="Frame">
<div class="ButtonsBox">
<div id="btn"></div>
<button class="button" onclick="login()">Login</button>
<button class="button" onclick="register()">Sign up</button>
</div>
<form id="login" class="inputs">
<input
type="email"
class="TextInput"
placeholder=" E-mail"
required
id="login-email"
/>
<input
type="password"
class="TextInput"
placeholder=" Password"
required
id="login-pass"
/>
<button type="submit" class="Submitbtn" id="loginbtn">Log in</button>
</form>
<form id="register" class="inputs">
<input
type="text"
class="TextInput"
placeholder=" Name"
required
id="reg-name"
/>
<input
type="email"
class="TextInput"
placeholder=" E-mail"
required
id="reg-email"
/>
<input
type="password"
class="TextInput"
placeholder=" Password"
required
id="reg-pass"
/>
<input
type="password"
class="TextInput"
placeholder=" Confirm password"
required
id="reg-confirm-pass"
/>
<div class="radio-group">
<div>
<input
type="radio"
class="checkuser"
name="role"
id="admin"
value="admin"
required
/>
<label for="admin">Admin</label>
</div>
<div>
<input
type="radio"
class="checkuser"
name="role"
id="teacher"
value="teacher"
required
/>
<label for="teacher">Teacher</label>
</div>
<div>
<input
type="radio"
class="checkuser"
name="role"
id="student"
value="student"
required
/>
<label for="student">Student</label>
</div>
</div>
<br />
<button type="submit" class="Submitbtn" id="Registrationbtn">
Sign Up
</button>
</form>
</div>
<div class="animation">
<div class="animationSon"></div>
<div class="black"></div>
<div class="animationSon"></div>
<div class="black"></div>
</div>
<script>
let x = document.getElementById('btn');
let y = document.getElementById('login');
let z = document.getElementById('register');
function login() {
x.style.left = '0px';
y.style.marginLeft = '0px';
z.style.marginLeft = '600px';
}
function register() {
x.style.left = '150px';
y.style.marginLeft = '-600px';
z.style.marginLeft = '0px';
}
</script>
<script src="/scripts/index.js" defer></script>
</body>
</html>