-
Notifications
You must be signed in to change notification settings - Fork 1
/
helpbubbles.html
69 lines (52 loc) · 1.4 KB
/
helpbubbles.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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Ractive HelpBubbles</title>
<link rel="stylesheet" href="css/helpbubbles.css" type="text/css">
<style>
#target-el-1, #target-el-2 {
position: absolute;
padding: 50px;
}
#target-el-1 {
top:200px;
left:200px;
background: blue;
}
#target-el-2 {
top:400px;
left:500px;
background: red;
}
</style>
</head>
<body>
<div id="target-el-1"><p>My Target 1</p></div>
<div id="target-el-2"><p>My Target 2</p></div>
<div id="helpbubble_holder"></div>
<script src="js/libs/Ractive.js"></script>
<script src="js/libs/lodash.js"></script>
<script src="js/helpbubbles.min.js"></script>
<script>
var bubblecious;
bubblecious = new window.HelpBubbles({
el: 'helpbubble_holder',
data: {
y_adjustment: 20,
bubbles: [
{
target: 'target-el-1',
content: 'Pointing at My Target 1',
},
{
target: 'target-el-2',
content: 'Pointing at My Target 2',
onTap: function() { console.log( 'Alt Bubble-tapped' ); }
}
]
}
});
</script>
</body>
</html>