-
Notifications
You must be signed in to change notification settings - Fork 1
/
pages-signup.html
executable file
·229 lines (191 loc) · 6.86 KB
/
pages-signup.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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie9 gt-ie8"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="gt-ie8 gt-ie9 not-ie"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Sign Up - PixelAdmin</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<!-- Open Sans font from Google CDN -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,600,700,300&subset=latin" rel="stylesheet" type="text/css">
<!-- Pixel Admin's stylesheets -->
<link href="assets/stylesheets/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="assets/stylesheets/pixel-admin.min.css" rel="stylesheet" type="text/css">
<link href="assets/stylesheets/pages.min.css" rel="stylesheet" type="text/css">
<link href="assets/stylesheets/rtl.min.css" rel="stylesheet" type="text/css">
<link href="assets/stylesheets/themes.min.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="assets/javascripts/ie.min.js"></script>
<![endif]-->
<!-- $DEMO =========================================================================================
Remove this section on production
-->
<style>
#signup-demo {
position: fixed;
right: 0;
bottom: 0;
z-index: 10000;
background: rgba(0,0,0,.6);
padding: 6px;
border-radius: 3px;
}
#signup-demo img { cursor: pointer; height: 40px; }
#signup-demo img:hover { opacity: .5; }
#signup-demo div {
color: #fff;
font-size: 10px;
font-weight: 600;
padding-bottom: 6px;
}
</style>
<!-- / $DEMO -->
</head>
<!-- 1. $BODY ======================================================================================
Body
Classes:
* 'theme-{THEME NAME}'
* 'right-to-left' - Sets text direction to right-to-left
-->
<body class="theme-default page-signup">
<script>
var init = [];
init.push(function () {
var $div = $('<div id="signup-demo" class="hidden-xs"><div>PAGE BACKGROUND</div></div>'),
bgs = [ 'assets/demo/signin-bg-1.jpg', 'assets/demo/signin-bg-2.jpg', 'assets/demo/signin-bg-3.jpg',
'assets/demo/signin-bg-4.jpg', 'assets/demo/signin-bg-5.jpg', 'assets/demo/signin-bg-6.jpg',
'assets/demo/signin-bg-7.jpg', 'assets/demo/signin-bg-8.jpg', 'assets/demo/signin-bg-9.jpg' ];
for (var i=0, l=bgs.length; i < l; i++) $div.append($('<img src="' + bgs[i] + '">'));
$div.find('img').click(function () {
var img = new Image();
img.onload = function () {
$('#page-signup-bg > img').attr('src', img.src);
$(window).resize();
}
img.src = $(this).attr('src');
});
$('body').append($div);
});
</script>
<!-- Demo script --> <script src="assets/demo/demo.js"></script> <!-- / Demo script -->
<!-- Page background -->
<div id="page-signup-bg">
<!-- Background overlay -->
<div class="overlay"></div>
<!-- Replace this with your bg image -->
<img src="assets/demo/signin-bg-1.jpg" alt="">
</div>
<!-- / Page background -->
<!-- Container -->
<div class="signup-container">
<!-- Header -->
<div class="signup-header">
<a href="index.html" class="logo">
<img src="assets/demo/logo-big.png" alt="" style="margin-top: -5px;">
PixelAdmin
</a> <!-- / .logo -->
<div class="slogan">
Simple. Flexible. Powerful.
</div> <!-- / .slogan -->
</div>
<!-- / Header -->
<!-- Form -->
<div class="signup-form">
<form action="index.html" id="signup-form_id">
<div class="signup-text">
<span>Create an account</span>
</div>
<div class="form-group w-icon">
<input type="text" name="signup_name" id="name_id" class="form-control input-lg" placeholder="Full name">
<span class="fa fa-info signup-form-icon"></span>
</div>
<div class="form-group w-icon">
<input type="text" name="signup_email" id="email_id" class="form-control input-lg" placeholder="E-mail">
<span class="fa fa-envelope signup-form-icon"></span>
</div>
<div class="form-group w-icon">
<input type="text" name="signup_username" id="username_id" class="form-control input-lg" placeholder="Username">
<span class="fa fa-user signup-form-icon"></span>
</div>
<div class="form-group w-icon">
<input type="password" name="signup_password" id="password_id" class="form-control input-lg" placeholder="Password">
<span class="fa fa-lock signup-form-icon"></span>
</div>
<div class="form-group" style="margin-top: 20px;margin-bottom: 20px;">
<label class="checkbox-inline">
<input type="checkbox" name="signup_confirm" class="px" id="confirm_id">
<span class="lbl">I agree with the <a href="#" target="_blank">Terms and Conditions</a></span>
</label>
</div>
<div class="form-actions">
<input type="submit" value="SIGN UP" class="signup-btn bg-primary">
</div>
</form>
<!-- / Form -->
<!-- "Sign In with" block -->
<div class="signup-with">
<!-- Facebook -->
<a href="index.html" class="signup-with-btn" style="background:#4f6faa;background:rgba(79, 111, 170, .8);">Sign Up with <span>Facebook</span></a>
</div>
<!-- / "Sign In with" block -->
</div>
<!-- Right side -->
</div>
<div class="have-account">
Already have an account? <a href="pages-signin.html">Sign In</a>
</div>
<!-- Get jQuery from Google CDN -->
<!--[if !IE]> -->
<script type="text/javascript"> window.jQuery || document.write('<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js">'+"<"+"/script>"); </script>
<!-- <![endif]-->
<!--[if lte IE 9]>
<script type="text/javascript"> window.jQuery || document.write('<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">'+"<"+"/script>"); </script>
<![endif]-->
<!-- Pixel Admin's javascripts -->
<script src="assets/javascripts/bootstrap.min.js"></script>
<script src="assets/javascripts/pixel-admin.min.js"></script>
<script type="text/javascript">
// Resize BG
init.push(function () {
var $ph = $('#page-signup-bg'),
$img = $ph.find('> img');
$(window).on('resize', function () {
$img.attr('style', '');
if ($img.height() < $ph.height()) {
$img.css({
height: '100%',
width: 'auto'
});
}
});
$("#signup-form_id").validate({ focusInvalid: true, errorPlacement: function () {} });
// Validate name
$("#name_id").rules("add", {
required: true,
minlength: 1
});
// Validate email
$("#email_id").rules("add", {
required: true,
email: true
});
// Validate username
$("#username_id").rules("add", {
required: true,
minlength: 3
});
// Validate password
$("#password_id").rules("add", {
required: true,
minlength: 6
});
// Validate confirm checkbox
$("#confirm_id").rules("add", {
required: true
});
});
window.PixelAdmin.start(init);
</script>
</body>
</html>