-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
293 lines (293 loc) · 17.3 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
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
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Onboard.css - Introduce your customers to your app before they start using your app</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css">
<link rel="stylesheet" href="data/assets/css/osfont-icon.css">
<link rel="stylesheet" href="data/assets/css/onboard.css">
<link rel="stylesheet" href="data/assets/css/main.css">
</head>
<body>
<div class="onboard-modal modal fade animated show-on-load">
<div class="modal-dialog modal-centered">
<div class="modal-content text-center">
<button aria-label="Close" class="close" data-dismiss="modal" type="button">
<span class="close-label">Skip Intro</span>
<span class="os-icon os-icon-close"></span>
</button>
<div class="onboard-slider-container">
<div class="onboard-slide">
<div class="onboard-media">
<img alt="" src="data/assets/img/emoji-glasses.png" width="120px">
</div>
<div class="content">
<h4 class="onboard-title">
Welcome to Onboard.css
</h4>
<div class="onboard-text">
This is an example of a multistep onboard screen.
</div>
</div>
</div>
<div class="onboard-slide">
<div class="onboard-media">
<img alt="" src="data/assets/img/emoji-ok.png" width="120px">
</div>
<div class="content">
<h4 class="onboard-title">
Use it
</h4>
<div class="onboard-text">
You can use it to introduce your customers to your app before they start using your app
</div>
</div>
</div>
<div class="onboard-slide">
<div class="onboard-media">
<img alt="" src="data/assets/img/emoji-blush.png" width="120px">
</div>
<div class="content">
<h4 class="onboard-title">
Enjoy it
</h4>
<div class="onboard-text">
Thank you for use !
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<header class="onboard-header ci" style="text-align: center;">
<div class="wrap">
<span style="display: block;">
<h1 class="onboard-titre mega" id="typed"></h1>
</span>
<span class="onboard-subhead" style="text-align: center;">
Introduce your customers to your app before they start using your app
</span>
</div>
</header>
<main class="onboard-content ci" style="text-align: center;">
<div class="wrap">
<form>
<select class="input input--dropdown">
<optgroup label="Straight-line">
<option selected="selected" value="onboard-straight-line background-blue">Blue</option>
<option value="onboard-straight-line background-indigo">Indigo</option>
<option value="onboard-straight-line background-purple">Purple</option>
<option value="onboard-straight-line background-pink">Pink</option>
<option value="onboard-straight-line background-red">Red</option>
<option value="onboard-straight-line background-orange">Orange</option>
<option value="onboard-straight-line background-yellow">Yellow</option>
<option value="onboard-straight-line background-green">Green</option>
<option value="onboard-straight-line background-teal">Teal</option>
<option value="onboard-straight-line background-cyan">Cyan</option>
<option value="onboard-straight-line background-gray-dark">gray-dark</option>
<option value="onboard-straight-line background-danger">danger</option>
</optgroup>
<optgroup label="Slice-left">
<option value="onboard-slice-left background-indigo">Indigo</option>
<option value="onboard-slice-left background-purple">Purple</option>
<option value="onboard-slice-left background-pink">Pink</option>
<option value="onboard-slice-left background-red">Red</option>
<option value="onboard-slice-left background-orange">Orange</option>
<option value="onboard-slice-left background-yellow">Yellow</option>
<option value="onboard-slice-left background-green">Green</option>
<option value="onboard-slice-left background-teal">Teal</option>
<option value="onboard-slice-left background-cyan">Cyan</option>
<option value="onboard-slice-left background-gray-dark">gray-dark</option>
<option value="onboard-slice-left background-danger">danger</option>
</optgroup>
<optgroup label="Slice-right">
<option value="onboard-slice-right background-indigo">Indigo</option>
<option value="onboard-slice-right background-purple">Purple</option>
<option value="onboard-slice-right background-pink">Pink</option>
<option value="onboard-slice-right background-red">Red</option>
<option value="onboard-slice-right background-orange">Orange</option>
<option value="onboard-slice-right background-yellow">Yellow</option>
<option value="onboard-slice-right background-green">Green</option>
<option value="onboard-slice-right background-teal">Teal</option>
<option value="onboard-slice-right background-cyan">Cyan</option>
<option value="onboard-slice-right background-gray-dark">gray-dark</option>
<option value="onboard-slice-right background-danger">danger</option>
</optgroup>
<optgroup label="Normal curve">
<option value="onboard-normal-curve background-indigo">Indigo</option>
<option value="onboard-normal-curve background-purple">Purple</option>
<option value="onboard-normal-curve background-pink">Pink</option>
<option value="onboard-normal-curve background-red">Red</option>
<option value="onboard-normal-curve background-orange">Orange</option>
<option value="onboard-normal-curve background-yellow">Yellow</option>
<option value="onboard-normal-curve background-green">Green</option>
<option value="onboard-normal-curve background-teal">Teal</option>
<option value="onboard-normal-curve background-cyan">Cyan</option>
<option value="onboard-normal-curve background-gray-dark">gray-dark</option>
<option value="onboard-normal-curve background-danger">danger</option>
</optgroup>
<optgroup label="Curve-right">
<option value="onboard-curve-right background-indigo">Indigo</option>
<option value="onboard-curve-right background-purple">Purple</option>
<option value="onboard-curve-right background-pink">Pink</option>
<option value="onboard-curve-right background-red">Red</option>
<option value="onboard-curve-right background-orange">Orange</option>
<option value="onboard-curve-right background-yellow">Yellow</option>
<option value="onboard-curve-right background-green">Green</option>
<option value="onboard-curve-right background-teal">Teal</option>
<option value="onboard-curve-right background-cyan">Cyan</option>
<option value="onboard-curve-right background-gray-dark">gray-dark</option>
<option value="onboard-curve-right background-danger">danger</option>
</optgroup>
<optgroup label="Curve-left">
<option value="onboard-curve-left background-indigo">Indigo</option>
<option value="onboard-curve-left background-purple">Purple</option>
<option value="onboard-curve-left background-pink">Pink</option>
<option value="onboard-curve-left background-red">Red</option>
<option value="onboard-curve-left background-orange">Orange</option>
<option value="onboard-curve-left background-yellow">Yellow</option>
<option value="onboard-curve-left background-green">Green</option>
<option value="onboard-curve-left background-teal">Teal</option>
<option value="onboard-curve-left background-cyan">Cyan</option>
<option value="onboard-curve-left background-gray-dark">gray-dark</option>
<option value="onboard-curve-left background-danger">danger</option>
</optgroup>
<optgroup label="Wave">
<option value="onboard-wave-light">Light</option>
<option value="onboard-wave-blue">Blue</option>
<option value="onboard-wave-indigo">Indigo</option>
<option value="onboard-wave-purple">Purple</option>
<option value="onboard-wave-pink">Pink</option>
<option value="onboard-wave-red">Red</option>
<option value="onboard-wave-orange">Orange</option>
<option value="onboard-wave-yellow">Yellow</option>
<option value="onboard-wave-green">Green</option>
<option value="onboard-wave-teal">Teal</option>
<option value="onboard-wave-cyan">Cyan</option>
<option value="onboard-wave-gray-dark">gray-dark</option>
<option value="onboard-wave-danger">danger</option>
</optgroup>
<optgroup label="Electric-wave">
<option value="onboard-electric-wave-blue">Blue</option>
<option value="onboard-electric-wave-indigo">Indigo</option>
<option value="onboard-electric-wave-purple">Purple</option>
<option value="onboard-electric-wave-pink">Pink</option>
<option value="onboard-electric-wave-red">Red</option>
<option value="onboard-electric-wave-orange">Orange</option>
<option value="onboard-electric-wave-yellow">Yellow</option>
<option value="onboard-electric-wave-green">Green</option>
<option value="onboard-electric-wave-teal">Teal</option>
<option value="onboard-electric-wave-cyan">Cyan</option>
<option value="onboard-electric-wave-danger">danger</option>
</optgroup>
</select>
<button id="onboardButton" class="butt">Onboard it</button>
</form>
<hr>
<div style="display: flex;justify-content: center;">
<p class="meta">
<a href="https://raw.githubusercontent.com/andreatchori/onboard.css/master/sources/onboard.min.css" download="onboard.css">
Download Onboard.css
</a>
or
<a href="https://github.com/andreatchori/onboard.css">View on GitHub</a>
</p>
</div>
<p style="text-align: center;">
<small>Another thing from <a href="https://github.com/andreatchori">André ATCHORI</a>.</small>
</p>
</div>
</main><!-- /.onboard-content -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script>
var selectedScheme = 'onboard-straight-line background-blue';
$('.content').addClass(selectedScheme);
/**
Typed.js
*/
var typed = new Typed('#typed', {
strings: ['Onboard.css'],
typeSpeed: 90,
loop: false
});
$('select').change(function(){
$('.content').removeClass(selectedScheme).addClass($(this).val());
selectedScheme = $(this).val();
switch(selectedScheme){
case 'onboard-straight-line background-gray-dark':
case 'onboard-straight-line background-indigo':
case 'onboard-straight-line background-purple':
case 'onboard-straight-line background-danger':
case 'onboard-straight-line background-pink':
case 'onboard-slice-right background-gray-dark':
case 'onboard-slice-right background-indigo':
case 'onboard-slice-right background-purple':
case 'onboard-slice-right background-danger':
case 'onboard-slice-right background-pink':
case 'onboard-slice-left background-gray-dark':
case 'onboard-slice-left background-indigo':
case 'onboard-slice-left background-purple':
case 'onboard-slice-left background-danger':
case 'onboard-slice-left background-pink':
case 'onboard-curve-left background-gray-dark':
case 'onboard-curve-left background-indigo':
case 'onboard-curve-left background-purple':
case 'onboard-curve-left background-danger':
case 'onboard-curve-left background-pink':
case 'onboard-curve-right background-gray-dark':
case 'onboard-curve-right background-indigo':
case 'onboard-curve-right background-purple':
case 'onboard-curve-right background-danger':
case 'onboard-curve-right background-pink':
case 'onboard-normal-curve background-gray-dark':
case 'onboard-normal-curve background-indigo':
case 'onboard-normal-curve background-purple':
case 'onboard-normal-curve background-danger':
case 'onboard-normal-curve background-pink':
case 'onboard-wave-gray-dark':
case 'onboard-wave-indigo':
case 'onboard-wave-purple':
case 'onboard-wave-danger':
case 'onboard-wave-pink':
case 'onboard-electric-wave-indigo':
case 'onboard-electric-wave-purple':
case 'onboard-electric-wave-danger':
case 'onboard-electric-wave-pink':
$('.onboard-title').addClass('text-light');
$('.onboard-text').addClass('text-light');
break;
default:
$('.onboard-title').removeClass('text-light');
$('.onboard-text').removeClass('text-light');
}
onboardIt();
});
$('#onboardButton').on('click', function(e){
e.preventDefault();
onboardIt();
})
function onboardIt(){
$('.onboard-modal.show-on-load').modal('show');
if ($('.onboard-modal .onboard-slider-container').length) {
$('.onboard-modal .onboard-slider-container').slick({
dots: true,
infinite: false,
adaptiveHeight: true,
slidesToShow: 1,
slidesToScroll: 1
});
$('.onboard-modal').on('shown.bs.modal', function (e) {
$('.onboard-modal .onboard-slider-container').slick('setPosition');
});
}
}
</script>
</body>
</html>