Update JSON API
[src/app-framework-demo.git] / afm-client / bower_components / tether / docs / welcome / index.html
1 <!doctype html>
2 <head>
3     <meta charset="utf-8">
4     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
5     <title>Tether – Marrying elements for life</title>
6     <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).">
7     <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
8     <link rel="icon" href="http://static.hubspot.com/favicon.ico">
9
10     <script type="text/javascript" src="//use.typekit.net/ghy0wve.js"></script>
11     <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
12
13     <!-- Tether themes -->
14     <link rel="stylesheet" href="/tether/css/tether-theme-arrows-dark.css" />
15
16     <!-- Welcome docs styles -->
17     <link rel="stylesheet" href="/tether/docs/welcome/css/prism.css" />
18     <link rel="stylesheet" href="/tether/docs/welcome/css/welcome.css" />
19
20     <!-- OS icons -->
21     <link rel="stylesheet" href="http://github.hubspot.com/os-icons/os-icons.css" />
22 </head>
23 <body>
24     <div class="hero-wrap">
25         <table class="showcase hero"><tr><td>
26             <div class="showcase-inner">
27                 <div class="tether-target-demo">
28                     <h1>Tether</h1>
29                     <div class="mobile-copy">
30                         <h2>Marrying elements for life</h2>
31                         <p>
32                             <a class="button" href="http://github.com/HubSpot/tether">★ On Github</a>
33                         </p>
34                     </div>
35                 </div>
36             </div>
37         </td></tr></table>
38     </div>
39
40     <div class="browser-demo-start-point"></div>
41
42     <table class="showcase browser-demo"><tr><td>
43         <div class="showcase-inner">
44             <div class="section-copy" data-section="what">
45                 <h2>What is Tether?</h2>
46             </div>
47             <div class="section-copy" data-section="how">
48                 <h2>How Tether works.</h2>
49             </div>
50             <div class="section-copy" data-section="why">
51                 <h2>Tether is powerful.</h2>
52             </div>
53             <div class="section-copy" data-section="outro">
54                 <h2>Play with Tether</h2>
55             </div>
56             <div class="browser-demo-inner">
57                 <div class="browser-window">
58                     <div class="browser-titlebar">
59                         <div class="browser-dots"><b></b><b></b><b></b></div>
60                     </div>
61                     <div class="browser-frame">
62                         <iframe src="browser-demo.html"></iframe>
63                     </div>
64                 </div>
65             </div>
66         </div>
67     </td></tr></table>
68
69     <table class="showcase browser-demo-section no-next-arrow" data-section="what"><tr><td>
70         <div class="section-scroll-copy">
71             <div class="section-scroll-copy-inner">
72                 <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>
73                 <p>It can be used for dropdown menus, tooltips, popovers, tours, help information, scroll guides, autocompletes, etc. The possibilities are endless.</p>
74                 <p class="example-paragraph">In this example we're showing an action menu <em>tethered</em> to a list item.</p>
75             </div>
76         </div>
77     </td></tr></table>
78
79     <table class="showcase browser-demo-section no-next-arrow" data-section="how"><tr><td>
80         <div class="section-scroll-copy">
81             <div class="section-scroll-copy-inner">
82                 <p>Tether works by creating an absolutely positioned element and meticulously tracking the movements of a <i>target</i> which you specify.</p>
83                 <p>The <i>target</i> and <i>element</i> can be tethered together in a variety of different ways.</p>
84                 <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>
85             </div>
86         </div>
87     </td></tr></table>
88
89     <table class="showcase browser-demo-section no-next-arrow" data-section="why"><tr><td>
90         <div class="section-scroll-copy">
91             <div class="section-scroll-copy-inner">
92                 <p>Tether can keep your element positioned properly even in some tough situations.</p>
93                 <p>Tether handles all of the common pain points:</p>
94                 <ul>
95                     <li>Automatically detect collisions with the edge of the page or edge of the scrollParent</li>
96                     <li>Automatically reposition on browser resize, scroll, and other events,</li>
97                     <li>Constrain the position to any bounding box,</li>
98                 </ul>
99                 <p>...and a lot more.</p>
100             </div>
101         </div>
102     </td></tr></table>
103
104     <table class="showcase browser-demo-section no-next-arrow" data-section="outro"><tr><td>
105         <div class="section-scroll-copy">
106             <div class="section-scroll-copy-inner">
107                 <p class="example-paragraph">Interact with this demo.</p>
108                 <p>&nbsp;</p>
109                 <p>To learn more, check out our <a href="/tether">documentation</a>.</p>
110             </div>
111         </div>
112     </td></tr></table>
113
114     <table class="showcase browser-demo-section no-next-arrow" data-section="__empty"><tr><td></td></tr></table>
115
116     <div class="browser-demo-stop-point"></div>
117
118     <table class="showcase projects-showcase no-next-arrow"><tr><td>
119         <div class="showcase-inner">
120             <h1>Tether Family</h1>
121             <h2>These projects are all powered by Tether's positioning engine.</h2>
122             <div class="projects-list">
123                 <a href="/drop/docs/welcome" class="project">
124                     <h1>Drop</h1>
125                     <span class="os-icon drop-icon"></span>
126                     <p>Create dropdowns, popovers, and more.</p>
127                 </a>
128                 <a href="/tooltip/docs/welcome" class="project">
129                     <h1>Tooltip</h1>
130                     <span class="os-icon tooltip-icon"></span>
131                     <p>Stylable tooltips built on Tether.</p>
132                 </a>
133                 <a href="/select/docs/welcome" class="project">
134                     <h1>Select</h1>
135                     <span class="os-icon select-icon"></span>
136                     <p>Stylable select elements built on Tether.</p>
137                 </a>
138                 <a href="/shepherd/docs/welcome" class="project">
139                     <h1>Shepherd</h1>
140                     <span class="os-icon shepherd-icon"></span>
141                     <p>Guide your users through a tour of your app.</p>
142                 </a>
143             </div>
144         </div>
145     </td></tr></table>
146
147     <table class="showcase last-showcase no-next-arrow share"><tr><td>
148         <div class="showcase-inner">
149             <h1>Share</h1>
150             <h2>Help us spread the word.</h2>
151             <!-- Share -->
152             <style>
153                 .share-buttons {
154                     margin: 4em auto;
155                     text-align: center;
156                 }
157                 .share-button {
158                     display: inline-block;
159                 }
160                 .retweet-button {
161                     width: 100px;
162                     margin-left: 20px;
163                 }
164                 .github-stars {
165                     width: 100px;
166                 }
167             </style>
168             <div class="share-buttons">
169                 <div class="share-button retweet-button">
170                     <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>
171                     <script>
172                         (function(){
173                             var recommends, button;
174
175                             if (Math.random() >= 0.5) {
176                                 recommends = ['hubspotdev', 'zackbloom', 'adamfschwartz'];
177                             } else {
178                                 recommends = ['hubspotdev', 'adamfschwartz', 'zackbloom'];
179                             }
180
181                             button = document.querySelector('.twitter-share-button');
182
183                             if (button) {
184                                 button.setAttribute('data-related', recommends.join(','));
185                             }
186                         })();
187                     </script>
188                     <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
189                 </div>
190                 <div class="share-button github-stars-button">
191                     <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>
192                 </div>
193             </p>
194         </div>
195     </td></tr></table>
196
197     <!-- Tether javascript -->
198     <script src="/tether/tether.min.js"></script>
199
200     <!-- Welcome docs javascript -->
201     <script src="/tether/docs/welcome/js/log.js"></script>
202     <script src="/tether/docs/welcome/js/jquery.js"></script>
203     <script src="/tether/docs/welcome/js/drop.js"></script>
204     <script src="/tether/docs/welcome/js/welcome.js"></script>
205
206     <!-- HubSpot analytics -->
207     <script type="text/javascript">
208         (function(d,s,i,r) {
209             if (d.getElementById(i)){return;}
210             var n=d.createElement(s),e=d.getElementsByTagName(s)[0];
211             n.id=i;n.src='//js.hubspot.com/analytics/'+(Math.ceil(new Date()/r)*r)+'/51294.js';
212             e.parentNode.insertBefore(n, e);
213         })(document,"script","hs-analytics",300000);
214     </script>
215
216     <!-- Google analytics -->
217     <script>
218         (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
219         (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
220         m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
221         })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
222
223         ga('create', 'UA-45159009-1', 'auto');
224         ga('send', 'pageview');
225     </script>
226 </body>
227 </html>