forked from dozyatom/guide.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.html
executable file
·40 lines (33 loc) · 1.09 KB
/
example.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
<html>
<head>
<link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<link href="onboard.css" rel="stylesheet">
</head>
<body>
<div id="hello" style="position:absolute;top:100px;left:200px;">Hello</div>
<div id="world" style="position:absolute;top:200px;left:300px;">World</div>
<div id="3" style="position:absolute;top:300px;left:400px;">3</div>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="onboard.js"></script>
<script>
$(function() {
onboard = $("body").onboard({
steps: [{
selector: '#hello',
onboard: 'This is the first step!',
options: {}
}, {
selector: '#world',
onboard: 'This is the second step!',
options: {}
}, {
selector: '#3',
onboard: 'This is the third and final step!',
options: {}
}]
});
onboard.start();
});
</script>
</body>
</html>