-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsignup-rotate.html
More file actions
147 lines (135 loc) · 4.27 KB
/
signup-rotate.html
File metadata and controls
147 lines (135 loc) · 4.27 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>React - Bootstrap Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- stylesheets -->
<link rel="stylesheet" type="text/css" href="css/compiled/theme.css">
<!-- javascript -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/theme.js"></script>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body id="signup-rotate">
<div class="container">
<div class="row header">
<div class="col-md-12">
<h3 class="logo">
<a href="index.html">React</a>
</h3>
<h4>Rotate the forms!</h4>
<p>
30-day money-back guarantee that starts after your first payment.
</p>
</div>
</div>
<div class="row">
<div class="col-md-12 rotate-container">
<div class="wrappers">
<div class="wrapper front clearfix">
<div class="formy">
<div class="row">
<div class="col-md-12">
<form role="form">
<div class="form-group">
<label for="name">Your name</label>
<input type="text" class="form-control" id="name" />
</div>
<div class="form-group">
<label for="email">Email address</label>
<input type="email" class="form-control" id="email" />
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" />
</div>
<div class="checkbox">
<label>
<input type="checkbox" name="terms"> You have read & agree to the
<a href="#">Terms of service</a>.
</label>
</div>
<div class="submit">
<a href="index.html" class="button-clear">
<span>Create my account</span>
</a>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="wrapper back clearfix">
<div class="formy">
<div class="row">
<div class="col-md-12">
<form role="form">
<h3>Log in to your account</h3>
<div class="form-group">
<label for="email2">Email address</label>
<input type="email" class="form-control" id="email2" />
</div>
<div class="form-group">
<label for="password2">Password</label>
<input type="password" class="form-control" id="password2" />
</div>
<div class="checkbox">
<label>
<input type="checkbox" name="remember"> Remember me
</label>
</div>
<div class="submit">
<a href="index.html" class="button-clear">
<span>Sign in to my account</span>
</a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="change-view active">
Already have an account?
<a href="#" data-toggle="popover" data-placement="top" data-content="Click here!" data-trigger="manual">Sign in here</a>
</div>
<div class="change-view">
Don't have an account?
<a href="#">Create one here</a>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function () {
// this makes the forms rotate back and forth using the class .flipped
var $btns = $(".change-view");
var $wrappers = $(".wrappers");
$btns.click(function (e) {
e.preventDefault();
$wrappers.toggleClass("flipped");
$btns.removeClass("active");
if ($wrappers.hasClass("flipped")) {
$btns.eq(1).addClass("active");
setTimeout(function () {
$wrappers.addClass("flipped-ended");
}, 350);
} else {
$btns.eq(0).addClass("active");
setTimeout(function () {
$wrappers.removeClass("flipped-ended");
}, 350);
}
});
// initializing popover for demonstration only, you can remove it!
$(".change-view a").popover();
$(".change-view a").popover('show');
});
</script>
</body>
</html>