-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
40 lines (37 loc) · 2.16 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
<!DOCTYPE html>
<html>
<head>
<title>Boot Tour Example</title>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.min.css" rel="stylesheet">
<link href="boot-tour.css" rel="stylesheet">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://cdn.jsdelivr.net/jquery.cookie/1.3.1/jquery.cookie.js"></script>
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script>
<script src="boot-tour.js"></script>
<script>
$(window).load(function() {
$('#boot-tour').boottour('start');
});
</script>
</head>
<body>
<div style="text-align: center; margin: 40px auto;">
<button class="btn btn-large" onclick="$('#boot-tour').boottour('start', {startstep: 0});">Launch Tour!</button>
<button class="btn btn-large" onclick="$('#boot-tour').remove();">Remove Tour</button>
<button class="btn btn-large" onclick="$('#boot-tour').boottour('next');">Next Step</button>
<button class="btn btn-large" onclick="$('#boot-tour').boottour('previous');">Previous Step</button>
</div>
<div style="text-align: center; width: 400px; margin: 0 auto;">
<span id="target-1" style="float: left;">Target 1</span>
<span id="target-3" style="float: right;">Target 3</span>
<span id="target-2" style="float: none;">Target 2</span>
</div>
<ol id="boot-tour" style="display: none;" data-allowrestart="true", data-offset="40">
<li data-target="#target-1" data-skipbutton="true" data-title="Step 1">This is step one</li>
<li data-target="#target-2" data-title="Step 2" data-placement="bottom">This is step two</li>
<li data-target="#target-3" data-title="Step 3" data-placement="left" data-spotlight="true" data-spotlightradius="200">This is step three</li>
<li data-target="#target-1" data-title="Step 4" data-nextbutton="false" data-timer="3000">This is step four and will advance after 3 seconds</li>
<li data-target="#target-2" data-title="Final Step" data-placement="bottom" data-previousbutton="true">This is the final step</li>
</ol>
</body>
</html>