-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (63 loc) · 1.53 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
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="opentip.css" />
</head>
<body>
<a href="#" id="tooltip-one">Anchor 1</a>
<a href="#" id="tooltip-two">Anchor 2</a>
<a href="#" id="step-two-tooltip-one">Anchor 3</a>
<div id="instructor"></div>
<input type="button" id="nextStep" value="Next Step" />
<input type="button" id="nextTip" value="Next Tip" />
<script src="jquery-1.9.1.js"></script>
<script src="jquery-ui-1.10.1.custom.min.js"></script>
<script src="opentip.js"></script>
<script src="instructor.js"></script>
<script>
$(function () {
var $tut = $('#instructor');
$tut.instructor({
steps : [
{
title: 'Step 1',
tips : [
{
title : 'Tip 1',
element : 'tooltip-one',
message: 'Click here to do something'
},
{
title: 'Tip 2',
element: 'tooltip-two',
message: 'Click here to do something different'
}
],
onStart : function ( step ) {
$tut.instructor('nextTip');
}
},
{
title: 'Step 2',
tips : [
{
title: 'Step 2 Tip 1',
element: 'step-two-tooltip-one',
message: 'This is a tooltip on the second step of the tutorial'
}
],
onStart : function ( step ) {
$tut.instructor('nextTip');
}
}
]
});
$('#nextStep').click(function () {
$('#instructor').instructor('nextStep');
});
$('#nextTip').click(function () {
$('#instructor').instructor('nextTip');
});
});
</script>
</body>