summaryrefslogtreecommitdiffstats
path: root/afm-client/bower_components/tether/examples/tooltip/index.html
blob: fbf247f4dfbe0b349488fab7776053d0406fc90d (plain)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <script type="text/javascript" src="//use.typekit.net/jbn8qxr.js"></script>
        <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
        <link rel="stylesheet" href="../../css/drop.css" />
        <link rel="stylesheet" href="../../css/drop-tooltip-theme-arrows.css" />
        <style>
            body {
                font-family: "proxima-nova", "Helvetica Neue", sans-serif;
                color: #444;
            }

            .scroll-parent {
                margin: 200px;
                height: 300px;
                width: 300px;
                display: inline-block;
                overflow: auto;
                border: 2px solid #eee;
                padding: 40px;
            }
        </style>
    </head>
    <body>
        <div class="scroll-parent">
            <p>This is a paragraph of text</p>
            <p>This is a paragraph of text</p>
            <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="top center">Tooltip on Top</a></p>
            <p>This is a paragraph of text</p>
            <p>This is a paragraph of text</p>
            <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="bottom center">Tooltip on Bottom</a></p>
            <p>This is a paragraph of text</p>
            <p>This is a paragraph of text</p>
            <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="left middle">Tooltip on Left</a></p>
            <p>This is a paragraph of text</p>
            <p>This is a paragraph of text</p>
            <p><a href="javascript:;" class="drop-tooltip" data-tooltip-content="Whoa, I'm a tooltip" data-attach="right middle">Tooltip on Right</a></p>
            <p>This is a paragraph of text</p>
            <p>This is a paragraph of text</p>
            <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>
            <p>This is a paragraph of text</p>
            <p>This is a paragraph of text</p>
            <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>
            <p>This is a paragraph of text</p>
            <p>This is a paragraph of text</p>
            <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>
            <p>This is a paragraph of text</p>
            <p>This is a paragraph of text</p>
            <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>
            <p>This is a paragraph of text</p>
            <p>This is a paragraph of text</p>
            <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>
            <p>This is a paragraph of text</p>
            <p>This is a paragraph of text</p>
            <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>
            <p>This is a paragraph of text</p>
            <p>This is a paragraph of text</p>
            <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>
            <p>This is a paragraph of text</p>
            <p>This is a paragraph of text</p>
            <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>
            <p>This is a paragraph of text</p>
            <p>This is a paragraph of text</p>
        </div>

        <script src="../resources/js/log.js"></script>
        <script src="../resources/js/jquery.js"></script>
        <script src="../../utils.js"></script>
        <script src="../../tether.js"></script>
        <script src="/drop/drop.min.js"></script>
        <script src="../../tooltip.js"></script>
        <script src="../../constraint.js"></script>
        <script>
            $('.drop-tooltip').each(function(){
                new Tooltip({
                    el: this,
                    attach: $(this).data('attach')
                });
            });
        </script>
    </body>
</html>