summaryrefslogtreecommitdiffstats
path: root/afm-client/bower_components/tether/docs/welcome/index.html
blob: 856d58effa1093dc5f10397d3433a55f069e46b0 (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!doctype html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Tether – Marrying elements for life</title>
    <meta name="description" content="Tether is a JavaScript and CSS library. It is free and open source and was developed by HubSpot developers Adam Schwartz (@adamfschwartz) and Zack Bloom (@zackbloom).">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="icon" href="http://static.hubspot.com/favicon.ico">

    <script type="text/javascript" src="//use.typekit.net/ghy0wve.js"></script>
    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>

    <!-- Tether themes -->
    <link rel="stylesheet" href="/tether/css/tether-theme-arrows-dark.css" />

    <!-- Welcome docs styles -->
    <link rel="stylesheet" href="/tether/docs/welcome/css/prism.css" />
    <link rel="stylesheet" href="/tether/docs/welcome/css/welcome.css" />

    <!-- OS icons -->
    <link rel="stylesheet" href="http://github.hubspot.com/os-icons/os-icons.css" />
</head>
<body>
    <div class="hero-wrap">
        <table class="showcase hero"><tr><td>
            <div class="showcase-inner">
                <div class="tether-target-demo">
                    <h1>Tether</h1>
                    <div class="mobile-copy">
                        <h2>Marrying elements for life</h2>
                        <p>
                            <a class="button" href="http://github.com/HubSpot/tether">★ On Github</a>
                        </p>
                    </div>
                </div>
            </div>
        </td></tr></table>
    </div>

    <div class="browser-demo-start-point"></div>

    <table class="showcase browser-demo"><tr><td>
        <div class="showcase-inner">
            <div class="section-copy" data-section="what">
                <h2>What is Tether?</h2>
            </div>
            <div class="section-copy" data-section="how">
                <h2>How Tether works.</h2>
            </div>
            <div class="section-copy" data-section="why">
                <h2>Tether is powerful.</h2>
            </div>
            <div class="section-copy" data-section="outro">
                <h2>Play with Tether</h2>
            </div>
            <div class="browser-demo-inner">
                <div class="browser-window">
                    <div class="browser-titlebar">
                        <div class="browser-dots"><b></b><b></b><b></b></div>
                    </div>
                    <div class="browser-frame">
                        <iframe src="browser-demo.html"></iframe>
                    </div>
                </div>
            </div>
        </div>
    </td></tr></table>

    <table class="showcase browser-demo-section no-next-arrow" data-section="what"><tr><td>
        <div class="section-scroll-copy">
            <div class="section-scroll-copy-inner">
                <p>Tether is a low-level UI library that can be used to position any element on a page <i>next to any other element</i>.</p>
                <p>It can be used for dropdown menus, tooltips, popovers, tours, help information, scroll guides, autocompletes, etc. The possibilities are endless.</p>
                <p class="example-paragraph">In this example we're showing an action menu <em>tethered</em> to a list item.</p>
            </div>
        </div>
    </td></tr></table>

    <table class="showcase browser-demo-section no-next-arrow" data-section="how"><tr><td>
        <div class="section-scroll-copy">
            <div class="section-scroll-copy-inner">
                <p>Tether works by creating an absolutely positioned element and meticulously tracking the movements of a <i>target</i> which you specify.</p>
                <p>The <i>target</i> and <i>element</i> can be tethered together in a variety of different ways.</p>
                <p class="example-paragraph">Notice how the <i>tethered element</i> stays tethered to its <i>target</i> list item even as the left pane is scrolled up and down.</p>
            </div>
        </div>
    </td></tr></table>

    <table class="showcase browser-demo-section no-next-arrow" data-section="why"><tr><td>
        <div class="section-scroll-copy">
            <div class="section-scroll-copy-inner">
                <p>Tether can keep your element positioned properly even in some tough situations.</p>
                <p>Tether handles all of the common pain points:</p>
                <ul>
                    <li>Automatically detect collisions with the edge of the page or edge of the scrollParent</li>
                    <li>Automatically reposition on browser resize, scroll, and other events,</li>
                    <li>Constrain the position to any bounding box,</li>
                </ul>
                <p>...and a lot more.</p>
            </div>
        </div>
    </td></tr></table>

    <table class="showcase browser-demo-section no-next-arrow" data-section="outro"><tr><td>
        <div class="section-scroll-copy">
            <div class="section-scroll-copy-inner">
                <p class="example-paragraph">Interact with this demo.</p>
                <p>&nbsp;</p>
                <p>To learn more, check out our <a href="/tether">documentation</a>.</p>
            </div>
        </div>
    </td></tr></table>

    <table class="showcase browser-demo-section no-next-arrow" data-section="__empty"><tr><td></td></tr></table>

    <div class="browser-demo-stop-point"></div>

    <table class="showcase projects-showcase no-next-arrow"><tr><td>
        <div class="showcase-inner">
            <h1>Tether Family</h1>
            <h2>These projects are all powered by Tether's positioning engine.</h2>
            <div class="projects-list">
                <a href="/drop/docs/welcome" class="project">
                    <h1>Drop</h1>
                    <span class="os-icon drop-icon"></span>
                    <p>Create dropdowns, popovers, and more.</p>
                </a>
                <a href="/tooltip/docs/welcome" class="project">
                    <h1>Tooltip</h1>
                    <span class="os-icon tooltip-icon"></span>
                    <p>Stylable tooltips built on Tether.</p>
                </a>
                <a href="/select/docs/welcome" class="project">
                    <h1>Select</h1>
                    <span class="os-icon select-icon"></span>
                    <p>Stylable select elements built on Tether.</p>
                </a>
                <a href="/shepherd/docs/welcome" class="project">
                    <h1>Shepherd</h1>
                    <span class="os-icon shepherd-icon"></span>
                    <p>Guide your users through a tour of your app.</p>
                </a>
            </div>
        </div>
    </td></tr></table>

    <table class="showcase last-showcase no-next-arrow share"><tr><td>
        <div class="showcase-inner">
            <h1>Share</h1>
            <h2>Help us spread the word.</h2>
            <!-- Share -->
            <style>
                .share-buttons {
                    margin: 4em auto;
                    text-align: center;
                }
                .share-button {
                    display: inline-block;
                }
                .retweet-button {
                    width: 100px;
                    margin-left: 20px;
                }
                .github-stars {
                    width: 100px;
                }
            </style>
            <div class="share-buttons">
                <div class="share-button retweet-button">
                    <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://github.hubspot.com/tether/docs/welcome" data-text="Tether.js - A positioning engine for JavaScript" data-count="horizontal" data-via="HubSpotDev">Tweet</a>
                    <script>
                        (function(){
                            var recommends, button;

                            if (Math.random() >= 0.5) {
                                recommends = ['hubspotdev', 'zackbloom', 'adamfschwartz'];
                            } else {
                                recommends = ['hubspotdev', 'adamfschwartz', 'zackbloom'];
                            }

                            button = document.querySelector('.twitter-share-button');

                            if (button) {
                                button.setAttribute('data-related', recommends.join(','));
                            }
                        })();
                    </script>
                    <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
                </div>
                <div class="share-button github-stars-button">
                    <iframe src="http://ghbtns.com/github-btn.html?user=HubSpot&amp;repo=tether&amp;type=watch&amp;count=true&amp;size=small" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe>
                </div>
            </p>
        </div>
    </td></tr></table>

    <!-- Tether javascript -->
    <script src="/tether/tether.min.js"></script>

    <!-- Welcome docs javascript -->
    <script src="/tether/docs/welcome/js/log.js"></script>
    <script src="/tether/docs/welcome/js/jquery.js"></script>
    <script src="/tether/docs/welcome/js/drop.js"></script>
    <script src="/tether/docs/welcome/js/welcome.js"></script>

    <!-- HubSpot analytics -->
    <script type="text/javascript">
        (function(d,s,i,r) {
            if (d.getElementById(i)){return;}
            var n=d.createElement(s),e=d.getElementsByTagName(s)[0];
            n.id=i;n.src='//js.hubspot.com/analytics/'+(Math.ceil(new Date()/r)*r)+'/51294.js';
            e.parentNode.insertBefore(n, e);
        })(document,"script","hs-analytics",300000);
    </script>

    <!-- Google analytics -->
    <script>
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

        ga('create', 'UA-45159009-1', 'auto');
        ga('send', 'pageview');
    </script>
</body>
</html>