1 | <!DOCTYPE html>
|
2 | <html>
|
3 | <head>
|
4 | <meta charset="utf-8">
|
5 | <meta http-equiv="X-UA-Compatible" content="chrome=1">
|
6 | <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
7 | <script type="text/javascript" src="//use.typekit.net/jbn8qxr.js"></script>
|
8 | <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
|
9 | <link rel="stylesheet" href="../../css/drop.css" />
|
10 | <link rel="stylesheet" href="../../css/drop-tooltip-theme-arrows.css" />
|
11 | <style>
|
12 | body {
|
13 | font-family: "proxima-nova", "Helvetica Neue", sans-serif;
|
14 | color: #444;
|
15 | }
|
16 |
|
17 | .scroll-parent {
|
18 | margin: 200px;
|
19 | height: 300px;
|
20 | width: 300px;
|
21 | display: inline-block;
|
22 | overflow: auto;
|
23 | border: 2px solid #eee;
|
24 | padding: 40px;
|
25 | }
|
26 | </style>
|
27 | </head>
|
28 | <body>
|
29 | <div class="scroll-parent">
|
30 | <p>This is a paragraph of text</p>
|
31 | <p>This is a paragraph of text</p>
|
32 | <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="top center">Tooltip on Top</a></p>
|
33 | <p>This is a paragraph of text</p>
|
34 | <p>This is a paragraph of text</p>
|
35 | <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="bottom center">Tooltip on Bottom</a></p>
|
36 | <p>This is a paragraph of text</p>
|
37 | <p>This is a paragraph of text</p>
|
38 | <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="left middle">Tooltip on Left</a></p>
|
39 | <p>This is a paragraph of text</p>
|
40 | <p>This is a paragraph of text</p>
|
41 | <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="right middle">Tooltip on Right</a></p>
|
42 | <p>This is a paragraph of text</p>
|
43 | <p>This is a paragraph of text</p>
|
44 | <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="bottom left">Tooltip on Bottom Left</a></p>
|
45 | <p>This is a paragraph of text</p>
|
46 | <p>This is a paragraph of text</p>
|
47 | <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="bottom right">Tooltip on Bottom Right</a></p>
|
48 | <p>This is a paragraph of text</p>
|
49 | <p>This is a paragraph of text</p>
|
50 | <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="top left">Tooltip on Top Left</a></p>
|
51 | <p>This is a paragraph of text</p>
|
52 | <p>This is a paragraph of text</p>
|
53 | <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="top right">Tooltip on Top Right</a></p>
|
54 | <p>This is a paragraph of text</p>
|
55 | <p>This is a paragraph of text</p>
|
56 | <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="left bottom">Tooltip on Left Bottom</a></p>
|
57 | <p>This is a paragraph of text</p>
|
58 | <p>This is a paragraph of text</p>
|
59 | <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="left top">Tooltip on Left Top</a></p>
|
60 | <p>This is a paragraph of text</p>
|
61 | <p>This is a paragraph of text</p>
|
62 | <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="right bottom">Tooltip on Right Bottom</a></p>
|
63 | <p>This is a paragraph of text</p>
|
64 | <p>This is a paragraph of text</p>
|
65 | <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="right top">Tooltip on Right Top</a></p>
|
66 | <p>This is a paragraph of text</p>
|
67 | <p>This is a paragraph of text</p>
|
68 | </div>
|
69 |
|
70 | <script src="../resources/js/log.js"></script>
|
71 | <script src="../resources/js/jquery.js"></script>
|
72 | <script src="../../utils.js"></script>
|
73 | <script src="../../tether.js"></script>
|
74 | <script src="/drop/drop.min.js"></script>
|
75 | <script src="../../tooltip.js"></script>
|
76 | <script src="../../constraint.js"></script>
|
77 | <script>
|
78 | $('.drop-tooltip').each(function(){
|
79 | new Tooltip({
|
80 | el: this,
|
81 | attach: $(this).data('attach')
|
82 | });
|
83 | });
|
84 | </script>
|
85 | </body>
|
86 | </html>
|