This repository was archived by the owner on May 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauth.html
165 lines (156 loc) · 6.12 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
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
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="ru">
<head>
<title>Авторизация - ProNWE.ru</title>
<meta charset="UTF-8">
<meta name="description" content="Страница авторизации для зарегистрированных пользователей">
<meta name="keywords" content="pronwe,вход,регистрация,авторизация" />
<meta name="Resource-type" content="Document" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- FONT AWESOME-->
<link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.min.css">
<!-- STYLE -->
<link rel="stylesheet" type="text/css" href="css/pronwe.css">
<link rel="stylesheet" type="text/css" href="css/ProNWE_input.css">
<link rel="stylesheet" type="text/css" href="css/auth.css" />
</head>
<body>
<div class="central-box">
<div class="panel">
<div class="panel-heading text-center">
<a href="">
<img src="img/ProNWE_logo.svg" alt="NWE" class="" height="100" width="200">
</a>
</div>
<!-- AUTHTERIZATION -->
<div class="panel-body" id="signin">
<p class="text-center pv">Авторизуйтесь, чтобы продолжить</p>
<form action="" method="POST">
<div class="form-group">
<input type="email" id="email" required name="login" autocomplete="off" axlength="100">
<div class="label-box">
<label>Email</label>
</div>
<span class="fa fa-envelope form-icon icon-color"></span>
</div>
<div class="form-group">
<input type="password" class="password" id="pass" required name="password" maxlength="20">
<div class="label-box">
<label>Пароль</label>
</div>
<span class="fa fa-lock form-icon icon-color"></span>
</div>
<p class="text-right" onclick="showReset()"><span class="pronwe_Link-small color-gr">Забыли пароль?</span></p>
<button type="submit" id="sigin-button" class="btn pronwe_background">Войти</button>
<p class="text-center" onclick="showReg()"><span class="pronwe_Link-small">Моментальная регистрация</span></p>
</form>
</div>
<!-- REGISTRATION -->
<div class="panel-body" id="signup" style="display:none;">
<p class="text-center pv">Регистрация</p>
<form action="" method="POST" style="">
<div class="form-group">
<input type="email" required name="signup-email" id="signup-email" maxlength="100">
<div class="label-box">
<label>Email</label>
</div>
<span class="fa fa-envelope form-icon icon-color"></span>
</div>
<div class="form-group">
<input type="password" class="password" required name="password1" id="password1" maxlength="20" title="Введите не менее 6 символов">
<div class="label-box">
<label>Пароль</label>
</div>
<span class="fa fa-lock form-icon icon-color"></span>
</div>
<div class="form-group">
<input type="password" class="password" required name="confirm_password" id="confirm_password" maxlength="20" title="Введите не менее 6 символов">
<div class="label-box">
<label>Подтвердите пароль</label>
</div>
<span class="fa fa-lock form-icon icon-color"></span>
</div>
<div class="form-group">
<center>Капча</center>
</div>
<button type="submit" id="signup-button" class="btn pronwe_background" disabled >Создать акаунт</button>
<p class="text-center" onclick="ReshowReg()"><span class="pronwe_Link-small">На страницу авторизации</span></p>
</form>
</div>
<!-- PASSWORD RESET -->
<div class="panel-body" id="reset" style="display:none;">
<p class="text-center pv">Введите емайл, чтобы получить инструкцию по востановлению пароля</p>
<form action="" method="POST" style="">
<div class="form-group">
<input type="email" id="reset-email" required autocomplete="off" maxlength="100">
<div class="label-box">
<label>Email</label>
</div>
<span class="fa fa-envelope form-icon icon-color"></span>
</div>
<div class="form-group">
<center>Капча</center>
</div>
<button type="submit" id="reset-button" class="btn pronwe_background">Восставновить</button>
<p class="text-center" onclick="ReshowReset()"><span class="pronwe_Link-small">На страницу авторизации</span></p>
</form>
</div>
</div>
</div>
<!-- JQUERY-->
<script src="vendor/jquery/dist/jquery.js"></script>
<script>
function showReg()
{
document.getElementById('signin').style.display='none';
document.getElementById('signup').style.display='block';
}
function ReshowReg()
{
document.getElementById('signin').style.display='block';
document.getElementById('signup').style.display='none';
}
function showReset()
{
document.getElementById('signin').style.display='none';
document.getElementById('reset').style.display='block';
}
function ReshowReset()
{
document.getElementById('signin').style.display='block';
document.getElementById('reset').style.display='none';
}
</script>
<script>
var button = document.getElementById("signup-button");
$('#confirm_password').on('change', function() {
var conf = $(this).val();
var pass = $('#password1').val();
if (conf == pass && pass.length > 5)
{
$(this).css('background-color', 'rgba(0, 200, 0, 0.3)');
button.disabled = false;
}
else
{
$(this).css('background-color', 'rgba(200, 0, 0, 0.3)');
button.disabled = true;
}
});
$('#password1').on('change', function() {
var conf = $('#confirm_password').val();
var pass = $(this).val();
if (conf == pass && conf.length > 5)
{
$('#confirm_password').css('background-color', 'rgba(0, 200, 0, 0.3)');
button.disabled = false;
}
else
{
$('#confirm_password').css('background-color', 'rgba(200, 0, 0, 0.3)');
button.disabled = true;
}
});
</script>
</body>
</html>