-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
203 lines (193 loc) · 9.35 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
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
<!DOCTYPE html>
<html class="uk-notouch" lang="he" dir="rtl" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>wizardify demo</title>
<!-- CSS -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:400,100,300,500">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="src/css/wizardify.css">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<!-- Top content -->
<div class="top-content">
<div class="container">
<div class="row">
<div class="col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3 form-box">
<form id="wizard" role="form" action="" method="post" class="f1">
<div class="f1-steps">
<div class="f1-progress">
<div class="f1-progress-line"></div>
</div>
<div class="f1-step">
<div class="f1-step-icon"><i class="fa fa-user"></i></div>
<p>about</p>
</div>
<div class="f1-step">
<div class="f1-step-icon"><i class="fa fa-key"></i></div>
<p>account</p>
</div>
<div class="f1-step">
<div class="f1-step-icon"><i class="fa fa-twitter"></i></div>
<p>social</p>
</div>
</div>
<fieldset>
<h4>Tell us who you are:</h4>
<div class="form-group">
<label class="f1 sr-only" for="f1-first-name">First name</label>
<input type="text" name="f1-first-name" placeholder="First name..."
class="f1 f1-first-name form-control" id="f1-first-name">
</div>
<div class="form-group">
<label class="f1 sr-only" for="f1-last-name">Last name</label>
<input type="text" name="f1-last-name" placeholder="Last name..."
class="f1 f1-last-name form-control" id="f1-last-name">
</div>
<div class="form-group">
<label class="sr-only" for="f1-about-yourself">About yourself</label>
<textarea name="f1 f1-about-yourself" placeholder="About yourself..."
class="f1 f1-about-yourself form-control" id="f1-about-yourself"></textarea>
</div>
<div class="f1-buttons">
<button type="button" class="f1 btn btn-next">Next</button>
</div>
</fieldset>
<fieldset>
<h4>Set up your account:</h4>
<div class="form-group">
<label class="f1 sr-only" for="f1-email">Email</label>
<input type="text" name="f1-email" placeholder="Email..." class="f1 f1-email form-control"
id="f1-email">
</div>
<div class="form-group">
<label class="f1 sr-only" for="f1-password">Password</label>
<input type="password" name="f1-password" placeholder="Password..."
class="f1 f1-password form-control" id="f1-password">
</div>
<div class="form-group">
<label class="sr-only" for="f1-repeat-password">Repeat password</label>
<input type="password" name="f1-repeat-password" placeholder="Repeat password..."
class="f1 f1-repeat-password form-control" id="f1-repeat-password">
</div>
<div class="f1 fl-buttons">
<button type="button" class="f1 btn btn-previous">Previous</button>
<button type="button" class="f1 btn btn-next">Next</button>
</div>
</fieldset>
<fieldset>
<h4>Social media profiles:</h4>
<div class="form-group">
<label class="sr-only" for="f1-facebook">Facebook</label>
<input type="text" name="f1-facebook" placeholder="Facebook..."
class="f1 fl-facebook form-control" id="f1-facebook">
</div>
<div class="form-group">
<label class="sr-only" for="f1-twitter">Twitter</label>
<input type="text" name="f1-twitter" placeholder="Twitter..."
class="f1 fl-twitter form-control" id="f1-twitter">
</div>
<div class="form-group">
<label class="sr-only" for="f1-google-plus">Google plus</label>
<input type="text" name="f1-google-plus" placeholder="Google plus..."
class="f1 fl-google-plus form-control" id="f1-google-plus">
</div>
<div class="f1 fl-buttons">
<button type="button" class="f1 btn btn-previous">Previous</button>
<button type="button" class="f1 btn btn-reset">reset</button>
<button type="submit" class="f1 btn btn-submit">Submit</button>
<button type="button" class="f1 btn btn-next">Next</button>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</div>
<!-- Javascript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="src/js/wizardify.js"></script>
<script>
$("#wizard").wizardify({
/**
* override to not allow or allow next with conditions
* @param step
* @param fieldSet
* @param nextStep
* @param nextFieldSet
* @returns {boolean} if true the next step will appear, if not then it won't, to switch step asynchronously: nextStep.trigger("switchTo");
*/
onNext: (step, fieldSet, nextStep, nextFieldSet) => {
// nextStep.trigger("switchTo"); //async
return true; //sync
},
/**
* override to not allow or allow previous with conditions
* @param step
* @param fieldSet
* @param nextStep
* @param nextFieldSet
* @returns {boolean} if true the previous step will appear, if not then it won't, to switch step asynchronously: nextStep.trigger("switchTo");
*/
onPrevious: (step, fieldSet, nextStep, nextFieldSet) => {
// nextStep.trigger("switchTo"); //async
return true; //sync
},
/**
* override to not allow or allow finish with conditions
* @returns {boolean}
*/
onFinish: () => {
return true;
},
/**
* override to not allow or allow reset with conditions
* @returns {boolean}
*/
onReset: () => {
return true;
},
/**
* When a step is clicked directly, this method runs, true/false decides wether to allow it.
* @param step
* @param fieldSet
* @param nextStep
* @param nextFieldSet
* @returns {boolean} if true the clicked step will appear, if not then it won't, to switch step asynchronously: nextStep.trigger("switchTo");
*/
onStepClick: (step, fieldSet, nextStep, nextFieldSet) => {
// nextStep.trigger("switchTo"); //async
return true; //sync
},
/**
* boolean true or false.
*/
rtl: $(document).attr("dir") === "rtl" ? true : false,
/**
* Steps are clickable and can move around the wizard
*/
stepClickable: true,
/**
* Jquery animation to use to make the field appear, eg fadeIn , slideDown and others (check jquery docs).
*/
fieldAppearAnimation: "fadeIn",
/**
* Jquery field appear timeout check jquery documentation for fadeIn and slideDown for more details.
*/
fieldAppearAnimationTimeout: 400,
/**
* Jquery animation to use to make the field appear, eg fadeOut , slideUp and others (check jquery docs).
*/
fieldDisappearAnimation: "fadeOut",
/**
* Jquery field appear timeout check jquery documentation for fadeOut and slideUp for more details.
*/
fieldDisappearAnimationTimeout: 400,
});
</script>
</body>
</html>