-
-
Notifications
You must be signed in to change notification settings - Fork 241
Expand file tree
/
Copy pathmultiple.html
More file actions
266 lines (240 loc) · 10.2 KB
/
multiple.html
File metadata and controls
266 lines (240 loc) · 10.2 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
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jQuery SmartWizard v7 — Multiple Wizards Demo</title>
<meta name="description" content="jQuery SmartWizard v7 demo — multiple wizard instances on a single page">
<link href="./css/demo.css" rel="stylesheet" type="text/css" />
<!-- Animate.css for CSS animation support -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" rel="stylesheet" />
<!-- Include SmartWizard CSS -->
<link href="../dist/css/smartwizard.css" rel="stylesheet" type="text/css" />
<!-- Include SmartWizard Themes -->
<link href="../dist/css/themes/basic.css" rel="stylesheet" type="text/css" />
<link href="../dist/css/themes/arrows.css" rel="stylesheet" type="text/css" />
<link href="../dist/css/themes/dots.css" rel="stylesheet" type="text/css" />
<link href="../dist/css/themes/pills.css" rel="stylesheet" type="text/css" />
<link href="../dist/css/themes/glow.css" rel="stylesheet" type="text/css" />
<link href="../dist/css/themes/flat.css" rel="stylesheet" type="text/css" />
<link href="../dist/css/themes/minimal.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-- Header -->
<header class="demo-header">
<h1>jQuery SmartWizard 7 — Multiple Wizards Demo</h1>
<div class="header-right" id="demo-nav"></div>
<div class="header-right">
<button class="header-btn" id="toggle-dark"> ⚡Auto</button>
</div>
</header>
<!-- Wizard 1 -->
<div class="demo-body">
<div class="wizard-card">
<h4>Wizard 1 — Round theme, Fade transition</h4>
<hr />
<!-- SmartWizard 1 -->
<div id="smartwizard1">
<ul class="nav">
<li class="nav-item">
<a class="nav-link" href="#step-11">
<span class="badge">1</span>
Customer Details
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#step-12">
<span class="badge">2</span>
Products Details
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#step-13">
<span class="badge">3</span>
Shipping Details
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#step-14">
<span class="badge">4</span>
Confirm Order
</a>
</li>
</ul>
<div class="tab-content">
<div id="step-11" class="tab-pane" role="tabpanel" aria-labelledby="step-11">
<h3>Step 1 Content</h3>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
industry's
standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to
make
a type specimen book. It has survived not only five centuries, but also the leap into electronic
typesetting,
remaining essentially unchanged.
</div>
<div id="step-12" class="tab-pane" role="tabpanel" aria-labelledby="step-12">
<h3>Step 2 Content</h3>
<div>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer
took a galley of type and scrambled it to make a type specimen book. It has survived not only five
centuries,
but also the leap into electronic typesetting, remaining essentially unchanged.</div>
</div>
<div id="step-13" class="tab-pane" role="tabpanel" aria-labelledby="step-13">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
industry's
standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to
make
a type specimen book. It has survived not only five centuries, but also the leap into electronic
typesetting,
remaining essentially unchanged.
</div>
<div id="step-14" class="tab-pane" role="tabpanel" aria-labelledby="step-14">
<h3>Step 4 Content</h3>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
industry's
standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to
make
a type specimen book. It has survived not only five centuries, but also the leap into electronic
typesetting,
remaining essentially unchanged.
</div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0"
aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
<!-- Wizard 2 -->
<div class="demo-body" style="margin-top: 2rem;">
<div class="wizard-card">
<h4>Wizard 2 — Arrows theme, Slide Vertical transition</h4>
<hr />
<!-- SmartWizard 2 -->
<div id="smartwizard2">
<ul class="nav">
<li class="nav-item">
<a class="nav-link" href="#step-21">
<span class="badge">1</span>
Customer Details
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#step-22">
<span class="badge">2</span>
Products Details
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#step-23">
<span class="badge">3</span>
Shipping Details
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#step-24">
<span class="badge">4</span>
Confirm Order
</a>
</li>
</ul>
<div class="tab-content">
<div id="step-21" class="tab-pane" role="tabpanel" aria-labelledby="step-21">
<h3>Step 1 Content</h3>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
industry's
standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to
make
a type specimen book. It has survived not only five centuries, but also the leap into electronic
typesetting,
remaining essentially unchanged.
</div>
<div id="step-22" class="tab-pane" role="tabpanel" aria-labelledby="step-22">
<h3>Step 2 Content</h3>
<div>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer
took a galley of type and scrambled it to make a type specimen book. It has survived not only five
centuries,
but also the leap into electronic typesetting, remaining essentially unchanged.</div>
</div>
<div id="step-23" class="tab-pane" role="tabpanel" aria-labelledby="step-23">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
industry's
standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to
make
a type specimen book. It has survived not only five centuries, but also the leap into electronic
typesetting,
remaining essentially unchanged.
</div>
<div id="step-24" class="tab-pane" role="tabpanel" aria-labelledby="step-24">
<h3>Step 4 Content</h3>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
industry's
standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to
make
a type specimen book. It has survived not only five centuries, but also the leap into electronic
typesetting,
remaining essentially unchanged.
</div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0"
aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
<script src="./js/demo.js"></script>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-4.0.0.min.js"
integrity="sha256-OaVG6prZf4v69dPg6PhVattBXkcOWQB62pdZ3ORyrao=" crossorigin="anonymous"></script>
<!-- SmartWizard -->
<script src="../dist/js/jquery.smartWizard.js"></script>
<script src="./js/wizard-settings.js"></script>
<!-- Page-specific SmartWizard init -->
<script>
function onFinish() { alert('Finish Clicked'); }
function onCancel(elm) { elm.smartWizard("reset"); }
$(function () {
// Note: initTheme works without a wizard element for the dark mode toggle
initTheme();
// Smart Wizard 1
$('#smartwizard1').smartWizard({
selected: 0,
theme: 'pills',
displayMode: displayMode,
transition: {
effect: 'fade',
speed: 400,
},
toolbar: {
showNextButton: true,
showPreviousButton: true,
position: 'both',
extraHtml: `<button class="btn btn-primary" onclick="onFinish()">Finish</button>
<button class="btn" onclick="onCancel($('#smartwizard1'))">Cancel</button>`
},
scrollToView: false
});
// Smart Wizard 2
$('#smartwizard2').smartWizard({
selected: 0,
theme: 'arrows',
displayMode: displayMode,
transition: {
effect: 'slideVertical',
speed: 400,
},
toolbar: {
showNextButton: true,
showPreviousButton: true,
position: 'both',
extraHtml: `<button class="btn btn-primary" onclick="onFinish()">Complete</button>
<button class="btn" onclick="onCancel($('#smartwizard2'))">Cancel</button>`
},
scrollToView: false
});
});
</script>
</body>
</html>